1. 27 4月, 2012 1 次提交
  2. 24 4月, 2012 1 次提交
    • S
      qmp: make block job command naming consistent · db58f9c0
      Stefan Hajnoczi 提交于
      The block streaming and job commands used '_' instead of '-' for reasons
      of compatibility with libvirt, which already included support for the
      '_' naming.  However, the semantics of block_job_cancel have changed and
      libvirt now needs to handle the new semantics.
      
      Since the old semantics were never in a QEMU release we can still rename
      the commands to use '-' instead of '_'.  Libvirt is also happy because
      the new name can be used to distinguish QEMU binaries that support the
      latest block-job-cancel semantics from those that include a downstream
      block_job_cancel command.
      
      Therefore, let's apply the QAPI/QMP naming rules to the block streaming
      and job commands.  QEMU 1.1 will be the first release with these
      commands so no upstream users can break.
      
      Note that HMP commands are left with '_' because that is the convention
      there.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      db58f9c0
  3. 10 4月, 2012 1 次提交
  4. 20 3月, 2012 1 次提交
    • S
      Introduce "xen-save-devices-state" · a7ae8355
      Stefano Stabellini 提交于
      - add an "is_ram" flag to SaveStateEntry;
      
      - register_savevm_live sets is_ram for live_savevm devices;
      
      - introduce a "xen-save-devices-state" QAPI command that can be used to save
      the state of all devices, but not the RAM or the block devices of the
      VM.
      
      Changes in v8:
      
      - rename save-devices-state to xen-save-devices-state.
      
      Changes in v7:
      
      - rename save_devices to save-devices-state.
      
      Changes in v6:
      
      - remove the is_ram parameter from register_savevm_live and sets is_ram
      if the device is a live_savevm device;
      
      - introduce save_devices as a QAPI command, write a better description
      for it;
      
      - fix CODING_STYLE;
      
      - introduce a new doc to explain the save format used by save_devices.
      Signed-off-by: NStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Reviewed-by: NAnthony Liguori <aliguori@us.ibm.com>
      Acked-by: NLuiz Capitulino <lcapitulino@redhat.com>
      a7ae8355
  5. 15 3月, 2012 1 次提交
    • L
      qapi: Convert migrate · e1c37d0e
      Luiz Capitulino 提交于
      The migrate command is one of those commands where HMP and QMP completely
      mix up together. This made the conversion to the QAPI (which separates the
      command into QMP and HMP parts) a bit difficult.
      
      The first important change to be noticed is that this commit completes the
      removal of the Monitor object from migration code, started by the previous
      commit.
      
      Another important and tricky change is about supporting the non-detached
      mode. That is, if the user doesn't pass '-d' the migrate command will lock
      the monitor and will only release it when migration is finished.
      
      To support this in the new HMP command (hmp_migrate()), it is necessary
      to create a timer which runs every second and checks if the migration is
      still active. If it is, the timer callback will re-schedule itself to run
      one second in the future. If the migration has already finished, the
      monitor lock is released and the user can use it normally.
      
      All these changes should be transparent to the user.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      e1c37d0e
  6. 12 3月, 2012 3 次提交
  7. 10 3月, 2012 2 次提交
  8. 29 2月, 2012 1 次提交
    • J
      qapi: Introduce blockdev-group-snapshot-sync command · 8802d1fd
      Jeff Cody 提交于
      This is a QAPI/QMP only command to take a snapshot of a group of
      devices. This is similar to the blockdev-snapshot-sync command, except
      blockdev-group-snapshot-sync accepts a list devices, filenames, and
      formats.
      
      It is attempted to keep the snapshot of the group atomic; if the
      creation or open of any of the new snapshots fails, then all of
      the new snapshots are abandoned, and the name of the snapshot image
      that failed is returned.  The failure case should not interrupt
      any operations.
      
      Rather than use bdrv_close() along with a subsequent bdrv_open() to
      perform the pivot, the original image is never closed and the new
      image is placed 'in front' of the original image via manipulation
      of the BlockDriverState fields.  Thus, once the new snapshot image
      has been successfully created, there are no more failure points
      before pivoting to the new snapshot.
      
      This allows the group of disks to remain consistent with each other,
      even across snapshot failures.
      Signed-off-by: NJeff Cody <jcody@redhat.com>
      Acked-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      8802d1fd
  9. 25 2月, 2012 1 次提交
  10. 04 2月, 2012 2 次提交
    • A
      qom: move properties from qdev to object · 57c9fafe
      Anthony Liguori 提交于
      This is mostly code movement although not entirely.  This makes properties part
      of the Object base class which means that we can now start using Object in a
      meaningful way outside of qdev.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      57c9fafe
    • A
      qom: add new command to search for types · 5eeee3fa
      Anthony Liguori 提交于
      This adds a command that allows searching for types that implement a property.
      This allows you to do things like search for all available PCIDevices.  In the
      future, we'll also have a standard interface for things with a BlockDriverState
      property that a PCIDevice could implement.
      
      This will enable search queries like, "any type that implements the BlockDevice
      interface" which would allow management tools to present available block devices
      without having to hard code device names.  Since an object can implement
      multiple interfaces, one device could act both as a BlockDevice and a
      NetworkDevice.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      5eeee3fa
  11. 26 1月, 2012 5 次提交
  12. 18 1月, 2012 7 次提交
  13. 15 12月, 2011 2 次提交
  14. 06 12月, 2011 12 次提交