1. 16 1月, 2013 1 次提交
  2. 19 12月, 2012 7 次提交
  3. 15 11月, 2012 1 次提交
    • A
      qdev: Split up header so it can be used in cpu.h · 074a86fc
      Anthony Liguori 提交于
      Header file dependency is a frickin' nightmare right now.  cpu.h tends
      to get included in our 'include everything' header files but qdev also
      needs to include those headers mainly for qdev-properties since it knows
      about CharDriverState and friends.
      
      We can solve this for now by splitting out qdev.h along the same lines
      that we previously split the C file.  Then cpu.h just needs to include
      qdev-core.h.
      
      hw/qdev.h is split into following new headers:
          hw/qdev-core.h
          hw/qdev-properties.h
          hw/qdev-monitor.h
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      
      [ehabkost: re-add DEFINE_PROP_PCI_HOST_DEVADDR, that was removed on the
       original patch (by mistake, I guess)]
      [ehabkost: kill qdev_prop_set_vlan() declaration]
      [ehabkost: moved get_fw_dev_path() comment to the original location
       (I don't know why it was moved)]
      [ehabkost: removed qdev_exists() declaration]
      [ehabkost: keep using 'QemuOpts' instead of 'struct QemuOpts', as
       qdev-core.h includes qemu-option.h]
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      074a86fc
  4. 01 8月, 2012 3 次提交
  5. 18 7月, 2012 1 次提交
  6. 17 7月, 2012 3 次提交
  7. 22 6月, 2012 1 次提交
  8. 18 6月, 2012 3 次提交
  9. 08 6月, 2012 3 次提交
  10. 22 5月, 2012 1 次提交
  11. 03 5月, 2012 1 次提交
  12. 05 4月, 2012 1 次提交
    • S
      qdev: add blocksize property type · 02fda01c
      Stefan Hajnoczi 提交于
      Storage interfaces like virtio-blk can be configured with block size
      information so that the guest can take advantage of efficient I/O
      request sizes.
      
      According to the SCSI Block Commands (SBC) standard a device's block
      size is "almost always greater than one byte and may be a multiple of
      512 bytes".  QEMU currently has a 512 byte minimum block size because
      the block layer functions work at that granularity.  Furthermore, the
      block size should be a power of 2 because QEMU calculates bitmasks from
      the value.
      
      Introduce a "blocksize" property type so devices can enforce these
      constraints on block size values.  If the constraints are relaxed in the
      future then this property can be updated.
      
      Introduce the new PropertyValueNotPowerOf2 QError so QMP clients know
      exactly why a block size value was rejected.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      02fda01c
  13. 13 3月, 2012 1 次提交
  14. 22 2月, 2012 4 次提交
  15. 15 2月, 2012 2 次提交
  16. 07 2月, 2012 7 次提交