1. 07 10月, 2009 1 次提交
    • M
      New qdev_init_nofail() · e23a1b33
      Markus Armbruster 提交于
      Like qdev_init(), but terminate program via hw_error() instead of
      returning an error value.
      
      Use it instead of qdev_init() where terminating the program on failure
      is okay, either because it's during machine construction, or because
      we know that failure can't happen.
      
      Because relying in the latter is somewhat unclean, and the former is
      not always obvious, it would be nice to go back to qdev_init() in the
      not-so-obvious cases, only with proper error handling.  I'm leaving
      that for another day, because it involves making sure that error
      values are properly checked by all callers.
      
      Patchworks-ID: 35168
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      e23a1b33
  2. 05 10月, 2009 4 次提交
  3. 02 10月, 2009 2 次提交
  4. 12 9月, 2009 1 次提交
  5. 11 9月, 2009 1 次提交
  6. 10 9月, 2009 2 次提交
  7. 28 8月, 2009 3 次提交
  8. 26 8月, 2009 1 次提交
  9. 11 8月, 2009 1 次提交
  10. 20 7月, 2009 1 次提交
  11. 17 7月, 2009 2 次提交
    • B
      Sparc32: fix fdc io_base · e8133762
      Blue Swirl 提交于
      On some Sparc32 machines, fdc is located above 4G limit, so uint32_t is not
      appropriate type for io_base.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      e8133762
    • G
      qdev: rework device properties. · ee6847d1
      Gerd Hoffmann 提交于
      This patch is a major overhaul of the device properties.  The properties
      are saved directly in the device state struct now, the linked list of
      property values is gone.
      
      Advantages:
        * We don't have to maintain the list with the property values.
        * The value in the property list and the value actually used by
          the device can't go out of sync any more (used to happen for
          the pci.devfn == -1 case) because there is only one place where
          the value is stored.
        * A record describing the property is required now, you can't set
          random properties any more.
      
      There are bus-specific and device-specific properties.  The former
      should be used for properties common to all bus drivers.  Typical
      use case is bus addressing, i.e. pci.devfn and i2c.address.
      
      Properties have a PropertyInfo struct attached with name, size and
      function pointers to parse and print properties.  A few common property
      types have PropertyInfos defined in qdev-properties.c.  Drivers are free
      to implement their own very special property parsers if needed.
      
      Properties can have default values.  If unset they are zero-filled.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ee6847d1
  12. 15 7月, 2009 1 次提交
  13. 30 6月, 2009 1 次提交
  14. 17 6月, 2009 1 次提交
  15. 22 5月, 2009 1 次提交
    • 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
  16. 14 5月, 2009 1 次提交
  17. 06 2月, 2009 1 次提交
  18. 24 1月, 2009 1 次提交
    • B
      Floppy: Properly handle Sense Interrupt Status after FDC Reset · f2d81b33
      blueswir1 提交于
      Original text below.
      
      Attached is a patch that changes how the emulated floppy controller replies to Sense Interrupt Status commands immediately after a controller reset. The specs state that after a Reset the 82078 goes into polling mode which needs four Sense Interrupt Status commands to be issued afterwards to clear the status of each drive. Currently we always respond to Sense Interrupt Status with a SEEK END instead of POLLING. This causes a problem with the SCO Openserver installer which is expects a POLLING state after reset. This patch returns a POLLING status for four Sense Interrupt Status requests immediately after a controller reset. This approach mirrors the way Bochs handles this situation. With the attached patch applied Openserver gets further when trying to load storage drivers from the floppy disk (blocked by another issue, patch on its way). I have successfully tested the floppy drive on the following OSs after applying this patch: Windows 98, Windows XP SP2, Linux x86 (SysRescCD 1.1.3 and Ubuntu 8.10).
      
      Justin
      
      Changelog:
      
      Properly handle Sense Interrupt Status after FDC Reset
      Signed-off-by: NJustin Chevrier <theburner1@yahoo.com>
      
      
      git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6416 c046a42c-6fe2-441c-8c8c-71466251a162
      f2d81b33
  19. 23 12月, 2008 1 次提交
  20. 03 12月, 2008 1 次提交
  21. 02 5月, 2008 2 次提交
  22. 30 4月, 2008 10 次提交