1. 30 4月, 2012 2 次提交
    • M
      qemu-ga: add a whitelist for fsfreeze-safe commands · f22d85e9
      Michael Roth 提交于
      Currently we rely on fsfreeze/thaw commands disabling/enabling logging
      then having other commands check whether logging is disabled to avoid
      executing if they aren't safe for running while a filesystem is frozen.
      
      Instead, have an explicit whitelist of fsfreeze-safe commands, and
      consolidate logging and command enablement/disablement into a pair
      of helper functions: ga_set_frozen()/ga_unset_frozen()
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      f22d85e9
    • M
      qemu-ga: improve recovery options for fsfreeze · 9e8aded4
      Michael Roth 提交于
      guest-fsfreeze-thaw relies on state information obtained from
      guest-fsfreeze-freeze to determine what filesystems to unfreeze.
      This is unreliable due to the fact that that state does not account
      for FIFREEZE being issued by other processes, or previous instances
      of qemu-ga. This means in certain situations we cannot thaw
      filesystems even with a responsive qemu-ga instance at our disposal.
      
      This patch allows guest-fsfreeze-thaw to be issued unconditionally.
      It also adds some additional logic to allow us to thaw filesystems
      regardless of how many times the filesystem's "frozen" refcount has
      been incremented by any guest processes.
      
      Also, guest-fsfreeze-freeze now operates atomically: on success all
      freezable filesystems are frozen, and on error all filesystems are
      thawed. The ambiguous "GUEST_FSFREEZE_STATUS_ERROR" state is no
      longer entered.
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      9e8aded4
  2. 28 4月, 2012 1 次提交
    • A
      Merge remote-tracking branch 'qmp/queue/qmp' into staging · a8b69b8e
      Anthony Liguori 提交于
      * qmp/queue/qmp:
        qapi: fix qmp_balloon() conversion
        qemu-iotests: add block-stream speed value test case
        block: add 'speed' optional parameter to block-stream
        block: change block-job-set-speed argument from 'value' to 'speed'
        block: use Error mechanism instead of -errno for block_job_set_speed()
        block: use Error mechanism instead of -errno for block_job_create()
      a8b69b8e
  3. 27 4月, 2012 22 次提交
  4. 26 4月, 2012 15 次提交