1. 06 4月, 2013 2 次提交
    • S
      block: fix I/O throttling accounting blind spot · 5905fbc9
      Stefan Hajnoczi 提交于
      I/O throttling relies on bdrv_acct_done() which is called when a request
      completes.  This leaves a blind spot since we only charge for completed
      requests, not submitted requests.
      
      For example, if there is 1 operation remaining in this time slice the
      guest could submit 3 operations and they will all be submitted
      successfully since they don't actually get accounted for until they
      complete.
      
      Originally we probably thought this is okay since the requests will be
      accounted when the time slice is extended.  In practice it causes
      fluctuations since the guest can exceed its I/O limit and it will be
      punished for this later on.
      
      Account for I/O upon submission so that I/O limits are enforced
      properly.
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      Tested-By: NBenoit Canet <benoit@irqsave.net>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      5905fbc9
    • K
      usb-storage: Forward serial number to scsi-disk · 76534da7
      Kevin Wolf 提交于
      usb-storage takes care to fetch the USB serial number from -drive
      options, but it neglected to pass its own 'serial' property to the
      scsi-disk it creates. With this patch, the 'serial' qdev property and
      the 'serial' option in -drive behave the same and correctly apply the
      serial number on both USB and SCSI level.
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      Acked-by: NGerd Hoffmann <kraxel@redhat.com>
      76534da7
  2. 05 4月, 2013 14 次提交
  3. 04 4月, 2013 8 次提交
  4. 03 4月, 2013 4 次提交
  5. 02 4月, 2013 12 次提交