1. 24 8月, 2009 1 次提交
    • J
      QEMU set irq0override in fw_cfg · 6b35e7bf
      Jes Sorensen 提交于
      Hi,
      
      After discussing the issue with Avi, Gleb and a couple others on irq,
      we came to the conclusion that it is preferred to have QEMU request
      features from the BIOS, rather than notifying the BIOS that it is
      running on QEMU or KVM. This way memory ranges can change etc. and
      an older BIOS will continue to work on newer QEMU if it receives the
      info as a fw_cfg value.
      
      This one also matches what qemu-kvm does for irq0override, except I
      haven't made it configurable. I leave that as an exercise for whoever
      would be interested in switching off irq0override.
      
      Thanks,
      Jes
      
      Set irq0 override in fw_cfg, informing the BIOS that QEMU expects
      override on irq0. This matches qemu-kvm, and will help sharing a
      single BIOS binary.
      Signed-off-by: NJes Sorensen <jes@sgi.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6b35e7bf
  2. 11 8月, 2009 2 次提交
    • G
      qdev/isa: make pc use qdev for i8042 setup. · b3999638
      Gerd Hoffmann 提交于
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      Message-Id: 
      b3999638
    • G
      qdev-ify virtio-blk. · d176c495
      Gerd Hoffmann 提交于
      First user of the new drive property.  With this patch applied host
      and guest config can be specified separately, like this:
      
        -drive if=none,id=disk1,file=/path/to/disk.img
        -device virtio-blk-pci,drive=disk1
      
      You can set any property for virtio-blk-pci now.  You can set the pci
      address via addr=.  You can switch the device into 0.10 compat mode
      using class=0x0180.  As this is per device you can have one 0.10 and one
      0.11 virtio block device in a single virtual machine.
      
      Old syntax continues to work.  Internally it does the same as the two
      lines above though.  One side effect this has is a different
      initialization order, which might result in a different pci address
      being assigned by default.
      
      Long term plan here is to have this working for all block devices, i.e.
      once all scsi is properly qdev-ified you will be able to do something
      like this:
      
        -drive if=none,id=sda,file=/path/to/disk.img
        -device lsi,id=lsi,addr=<pciaddr>
        -device scsi-disk,drive=sda,bus=lsi.0,lun=<n>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      Message-Id: 
      d176c495
  3. 30 7月, 2009 1 次提交
  4. 28 7月, 2009 1 次提交
    • G
      kill drives_table · 751c6a17
      Gerd Hoffmann 提交于
      First step cleaning up the drives handling.  This one does nothing but
      removing drives_table[], still it became seriously big.
      
      drive_get_index() is gone and is replaced by drives_get() which hands
      out DriveInfo pointers instead of a table index.  This needs adaption in
      *tons* of places all over.
      
      The drives are now maintained as linked list.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      751c6a17
  5. 27 7月, 2009 1 次提交
  6. 17 7月, 2009 6 次提交
  7. 16 7月, 2009 1 次提交
  8. 30 6月, 2009 6 次提交
  9. 22 6月, 2009 5 次提交
  10. 14 6月, 2009 3 次提交
  11. 30 5月, 2009 1 次提交
  12. 23 5月, 2009 1 次提交
    • P
      Add common BusState · 02e2da45
      Paul Brook 提交于
      Implement and use a common device bus state.  The main side-effect is
      that creating a bus and attaching it to a parent device are no longer
      separate operations.  For legacy code we allow a NULL parent, but that
      should go away eventually.
      
      Also tweak creation code to veriry theat a device in on the right bus.
      Signed-off-by: NPaul Brook <paul@codesourcery.com>
      02e2da45
  13. 22 5月, 2009 2 次提交
    • J
      Introduce reset notifier order · 8217606e
      Jan Kiszka 提交于
      Add the parameter 'order' to qemu_register_reset and sort callbacks on
      registration. On system reset, callbacks with lower order will be
      invoked before those with higher order. Update all existing users to the
      standard order 0.
      
      Note: At least for x86, the existing users seem to assume that handlers
      are called in their registration order. Therefore, the patch preserves
      this property. If someone feels bored, (s)he could try to identify this
      dependency and express it properly on callback registration.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      8217606e
    • A
      Introduce is_default field for QEMUMachine · 0c257437
      Anthony Liguori 提交于
      f80f9ec9 changed the order that machines are registered which had the effect of
      changing the default machine.  This changeset introduces a new is_default field
      so that machine types can declare that they are the default for an architecture.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      0c257437
  14. 21 5月, 2009 1 次提交
  15. 20 5月, 2009 3 次提交
  16. 19 5月, 2009 2 次提交
  17. 15 5月, 2009 3 次提交