1. 09 7月, 2012 1 次提交
  2. 02 7月, 2012 1 次提交
  3. 29 6月, 2012 1 次提交
  4. 20 6月, 2012 1 次提交
  5. 16 6月, 2012 1 次提交
    • D
      Add rate limiting of RTC_CHANGE, BALLOON_CHANGE & WATCHDOG events · afeecec2
      Daniel P. Berrange 提交于
      Allow certain event types to be rate limited to avoid flooding
      monitor clients. The monitor_protocol_event() method is changed
      such that instead of immediately emitting the event to Monitor
      instances, it will call a new monitor_protocol_event_queue()
      method.
      
      This will check to see if the rate limit for the event has been
      exceeded, and if so schedule a timer to wakeup at the end of the
      rate limit period. If further events arrive before the timer fires,
      the previously queued event will be discarded in favour of the new
      event. The event will eventually be emitted when the timer fires.
      
      This logic is applied to RTC_CHANGE, BALLOON_CHANGE & WATCHDOG
      events, since the data associated with these events is stateless
      
       * monitor.c: Add support for rate limiting
       * monitor.h: Define monitor_global_init for one-time setup tasks
       * vl.c: Invoke monitor_global_init
       * trace-events: Add hooks for monitor event tracing
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Acked-by: NAmit Shah <amit.shah@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      afeecec2
  6. 07 6月, 2012 10 次提交
  7. 28 5月, 2012 1 次提交
  8. 18 4月, 2012 1 次提交
  9. 17 4月, 2012 5 次提交
  10. 05 4月, 2012 1 次提交
  11. 26 3月, 2012 1 次提交
  12. 19 3月, 2012 2 次提交
  13. 13 3月, 2012 3 次提交
  14. 12 3月, 2012 4 次提交
  15. 27 2月, 2012 1 次提交
  16. 22 2月, 2012 1 次提交
  17. 09 2月, 2012 2 次提交
    • S
      qed: replace is_write with flags field · 6e4f59bd
      Stefan Hajnoczi 提交于
      Per-request attributes like read/write are currently implemented as bool
      fields in the QEDAIOCB struct.  This becomes unwiedly as the number of
      attributes grows.  For example, the qed_aio_setup() function would have
      to take multiple bool arguments and at call sites it would be hard to
      distinguish the meaning of each bool.
      
      Instead use a flags field with bitmask constants.  This will be used
      when zero write support is added.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      6e4f59bd
    • S
      block: add .bdrv_co_write_zeroes() interface · f08f2dda
      Stefan Hajnoczi 提交于
      The ability to zero regions of an image file is a useful primitive for
      higher-level features such as image streaming or zero write detection.
      
      Image formats may support an optimized metadata representation instead
      of writing zeroes into the image file.  This allows zero writes to be
      potentially faster than regular write operations and also preserve
      sparseness of the image file.
      
      The .bdrv_co_write_zeroes() interface should be implemented by block
      drivers that wish to provide efficient zeroing.
      
      Note that this operation is different from the discard operation, which
      may leave the contents of the region indeterminate.  That means
      discarded blocks are not guaranteed to contain zeroes and may contain
      junk data instead.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      f08f2dda
  18. 31 1月, 2012 1 次提交
  19. 26 1月, 2012 2 次提交