1. 01 5月, 2013 2 次提交
  2. 30 4月, 2013 1 次提交
  3. 25 4月, 2013 1 次提交
    • M
      pc: Kill the "use flash device for BIOS unless KVM" misfeature · 9953f882
      Markus Armbruster 提交于
      Use of a flash memory device for the BIOS was added in series "[PATCH
      v10 0/8] PC system flash support", commit 4732dcaf..1b89fafe, v1.1.
      
      Flash vs. ROM is a guest-visible difference.  Thus, flash use had to
      be suppressed for machine types pc-1.0 and older.  This was
      accomplished by adding a dummy device "pc-sysfw" with property
      "rom_only":
      
      * Non-zero rom_only means "use ROM".  Default for pc-1.0 and older.
      * Zero rom_only means "maybe use flash".  Default for newer machines.
      
      Not only is the dummy device ugly, it was also retroactively added to
      the older machine types!  Fortunately, it's not guest-visible (thus no
      immediate guest ABI breakage), and has no vmstate (thus no immediate
      migration breakage).  Breakage occurs only if the user unwisely
      enables flash by setting rom_only to zero.  Patch review FAIL #1.
      
      Why "maybe use flash"?  Flash didn't (and still doesn't) work with
      KVM.  Therefore, rom_only=0 really means "use flash, except when KVM
      is enabled, use ROM".  This is a Bad Idea, because it makes enabling/
      disabling KVM guest-visible.  Patch review FAIL #2.
      
      Aside: it also precludes migrating between KVM on and off, but that's
      not possible for other reasons anyway.
      
      Fix as follows:
      
      1. Change the meaning of rom_only=0 to mean "use flash, no ifs, buts,
      or maybes" for pc-i440fx-1.5 and pc-q35-1.5.  Don't change anything
      for older machines (to remain bug-compatible).
      
      2. Change the default value from 0 to 1 for these machines.
      Necessary, because 0 doesn't work with KVM.  Once it does, we can flip
      the default back to 0.
      
      3. Don't revert the retroactive addition of device "pc-sysfw" to older
      machine types.  Seems not worth the trouble.
      
      4. Add a TODO comment asking for device "pc-sysfw" to be dropped once
      flash works with KVM.
      
      Net effect is that you get a BIOS ROM again even when KVM is disabled,
      just like for machines predating the introduction of flash.
      
      To get flash instead, use "--global pc-sysfw.rom_only=0".
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Message-id: 1365780303-26398-4-git-send-email-armbru@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      9953f882
  4. 15 4月, 2013 1 次提交
  5. 09 4月, 2013 1 次提交
    • P
      hw: move headers to include/ · 0d09e41a
      Paolo Bonzini 提交于
      Many of these should be cleaned up with proper qdev-/QOM-ification.
      Right now there are many catch-all headers in include/hw/ARCH depending
      on cpu.h, and this makes it necessary to compile these files per-target.
      However, fixing this does not belong in these patches.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      0d09e41a
  6. 05 4月, 2013 3 次提交
  7. 18 3月, 2013 1 次提交
    • G
      Switch to efi-enabled nic roms by default · c45e5b5b
      Gerd Hoffmann 提交于
      All PCI nics are switched to EFI-enabled roms by default.  They are
      composed from three images (legacy, efi ia32 & efi x86), so classic
      pxe booting will continue to work.
      
      Exception: eepro100 is not switched, it uses a single rom for all
      emulated eepro100 variants, then goes patch the rom header on the
      fly with the correct PCI IDs.  I doubt that will work as-is with
      the efi roms.
      
      Keep old roms for 1.4+older machine types via compat properties,
      needed because the efi-enabled roms are larger so the pci rom bar
      size would change.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      c45e5b5b
  8. 01 3月, 2013 1 次提交
    • P
      hw: include hw header files with full paths · 83c9f4ca
      Paolo Bonzini 提交于
      Done with this script:
      
      cd hw
      for i in `find . -name '*.h' | sed 's/^..//'`; do
        echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
      done | sed -i -f - `find . -type f`
      
      This is so that paths remain valid as files are moved.
      
      Instead, files in hw/dataplane are referenced with the relative path.
      We know they are not going to move to include/, and they are the only
      include files that are in subdirectories _and_ move.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      83c9f4ca
  9. 27 2月, 2013 1 次提交
  10. 23 2月, 2013 1 次提交
  11. 17 1月, 2013 1 次提交
  12. 04 1月, 2013 1 次提交
  13. 19 12月, 2012 2 次提交
  14. 26 11月, 2012 2 次提交
  15. 23 10月, 2012 2 次提交
    • A
      Rename target_phys_addr_t to hwaddr · a8170e5e
      Avi Kivity 提交于
      target_phys_addr_t is unwieldly, violates the C standard (_t suffixes are
      reserved) and its purpose doesn't match the name (most target_phys_addr_t
      addresses are not target specific).  Replace it with a finger-friendly,
      standards conformant hwaddr.
      
      Outstanding patchsets can be fixed up with the command
      
        git rebase -i --exec 'find -name "*.[ch]"
                              | xargs s/target_phys_addr_t/hwaddr/g' origin
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      a8170e5e
    • G
      serial: split serial.c · 488cb996
      Gerd Hoffmann 提交于
      Split serial.c into serial.c, serial.h and serial-isa.c.  While being at
      creating a serial.h header file move the serial prototypes from pc.h to
      the new serial.h.  The latter leads to s/pc.h/serial.h/ in tons of
      boards which just want the serial bits from pc.h
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      488cb996
  16. 07 10月, 2012 2 次提交
  17. 27 8月, 2012 1 次提交
  18. 24 8月, 2012 1 次提交
    • M
      vga: add some optional CGA compatibility hacks · 482f7bf8
      Matthew Ogilvie 提交于
      This patch adds some optional compatibility hacks (default
      disabled) to allow Microport UNIX to function under qemu.
      
      I've tried to structure it to be easy to add more hacks for other
      old CGA programs, if anyone ever needs them.
      
      Microport UNIX System V/386 v 2.1 (ca 1987) tries to program
      the CGA registers directly with neither the assistance of BIOS, nor
      with proper handling of EGA/VGA-only registers.  Note that it didn't
      work on real VGA hardware, either (although in that case, the most
      obvious problems seemed to be out-of-range hsync and/or vsync
      signalling, rather than the issues in this patch).
      
      Eventually real MDA and/or CGA support might provide an alternative to
      this patch, although a hybrid approach like this patch might still
      be useful in marginal cases.
      Signed-off-by: NMatthew Ogilvie <mmogilvi_qemu@miniinfo.net>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      482f7bf8
  19. 16 8月, 2012 1 次提交
  20. 20 6月, 2012 1 次提交
    • G
      Add PIIX4 properties to control PM system states. · 459ae5ea
      Gleb Natapov 提交于
      This patch adds two things. First it allows QEMU to distinguish between
      regular powerdown and S4 powerdown. Later separate QMP notification will
      be added for S4 powerdown. Second it allows S3/S4 states to be disabled
      from QEMU command line. Some guests known to be broken with regards to
      power management, but allow to use it anyway. Using new properties
      management will be able to disable S3/S4 for such guests.
      
      Supported system state are passed to a firmware using new fw_cfg file.
      The file contains  6 byte array. Each byte represents one system
      state. If byte at offset X has its MSB set it means that system state
      X is supported and to enter it guest should use the value from lowest 3
      bits.
      Signed-off-by: NGleb Natapov <gleb@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      459ae5ea
  21. 25 2月, 2012 1 次提交
    • G
      suspend: switch acpi s3 to new infrastructure. · da98c8eb
      Gerd Hoffmann 提交于
      This patch switches pc s3 suspend over to the new infrastructure.
      The cmos_s3 qemu_irq is killed, the new notifier is used instead.
      The xen hack goes away with that too, the hypercall can simply be
      done in a notifier function now.
      
      This patch also makes the guest actually stay suspended instead
      of leaving suspend instantly, so it is useful for more than just
      testing whenever the suspend/resume cycle actually works.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      da98c8eb
  22. 22 2月, 2012 1 次提交
  23. 17 2月, 2012 2 次提交
  24. 22 1月, 2012 1 次提交
  25. 19 1月, 2012 2 次提交
    • J
      kvm: x86: Add user space part for in-kernel i8259 · 10b61882
      Jan Kiszka 提交于
      Introduce the alternative 'kvm-i8259' device model that exploits KVM
      in-kernel acceleration.
      
      The PIIX3 initialization code is furthermore extended by KVM specific
      IRQ route setup. GSI injection differs in KVM mode from the user space
      model. As we can dispatch ISA-range IRQs to both IOAPIC and PIC inside
      the kernel, we do not need to inject them separately. This is reflected
      by a KVM-specific GSI handler.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      10b61882
    • J
      i8259: Completely privatize PicState · 9aa78c42
      Jan Kiszka 提交于
      Use DeviceState instead of PicState in the public i8259 API. This is
      cleaner and allows to reorganize the PIC data structures for KVM reuse.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      9aa78c42
  26. 21 12月, 2011 4 次提交
  27. 15 12月, 2011 1 次提交
  28. 25 11月, 2011 1 次提交