1. 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
  2. 13 3月, 2012 1 次提交
  3. 22 2月, 2012 4 次提交
  4. 15 2月, 2012 2 次提交
  5. 07 2月, 2012 12 次提交
  6. 04 2月, 2012 2 次提交
  7. 02 2月, 2012 1 次提交
    • J
      qdev: Introduce lost tick policy property · 4e4fa398
      Jan Kiszka 提交于
      Potentially tick-generating timer devices will gain a common property:
      lock_tick_policy. It allows to encode 4 different ways how to deal with
      tick events the guest did not process in time:
      
      discard - ignore lost ticks (e.g. if the guest compensates for them
                already)
      delay   - replay all lost ticks in a row once the guest accepts them
                again
      merge   - if multiple ticks are lost, all of them are merged into one
                which is replayed once the guest accepts it again
      slew    - lost ticks are gradually replayed at a higher frequency than
                the original tick
      
      Not all timer device will need to support all modes. However, all need
      to accept the configuration via this common property.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      4e4fa398
  8. 28 1月, 2012 2 次提交
  9. 27 1月, 2012 1 次提交
  10. 14 1月, 2012 1 次提交
  11. 20 12月, 2011 3 次提交
  12. 16 10月, 2011 1 次提交
  13. 23 9月, 2011 1 次提交
    • D
      pci-devfn: check that device/slot number is within range · ffe3ce11
      Donald Dutile 提交于
      Need to check that guest slot/device number is not > 31 or walk off
      the devfn table when checking if a devfn is available or not in a guest.
      
      before this fix, passing in an addr=abc  or addr=34,
      can crash qemu, sometimes fail gracefully if data past end
      of devfn table fails the availability test.
      
      with this fix, get clean error:
      Property 'pci-assign.addr' doesn't take value '34'
      
      also tested when no addr= param passed for guest (pcicfg) address,
      and that worked as well.
      Signed-off-by: NDon Dutile <ddutile@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      ffe3ce11
  14. 06 9月, 2011 1 次提交
  15. 21 8月, 2011 1 次提交
  16. 28 4月, 2011 1 次提交
  17. 21 3月, 2011 1 次提交
  18. 21 2月, 2011 1 次提交
  19. 24 8月, 2010 1 次提交
    • B
      Rearrange block headers · 2446333c
      Blue Swirl 提交于
      Changing block.h or blockdev.h resulted in recompiling most objects.
      
      Move DriveInfo typedef and BlockInterfaceType enum definitions
      to qemu-common.h and rearrange blockdev.h use to decrease churn.
      Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
      2446333c
  20. 23 8月, 2010 1 次提交
  21. 12 7月, 2010 1 次提交