1. 08 8月, 2012 3 次提交
  2. 07 8月, 2012 1 次提交
  3. 03 8月, 2012 1 次提交
  4. 01 8月, 2012 1 次提交
  5. 23 7月, 2012 2 次提交
  6. 14 7月, 2012 2 次提交
  7. 29 6月, 2012 1 次提交
    • J
      Add spent time for migration · d5f8a570
      Juan Quintela 提交于
      We add time spent for migration to the output of "info migrate"
      command.  'total_time' means time since the start fo migration if
      migration is 'active', and total time of migration if migration is
      completed.  As we are also interested in transferred ram when
      migration completes, adding all ram statistics
      Signed-off-by: NJuan Quintela <quintela@redhat.com>
      d5f8a570
  8. 05 6月, 2012 4 次提交
    • D
      Add 'query-events' command to QMP to query async events · 4860853d
      Daniel P. Berrange 提交于
      Sometimes it is neccessary for an application to determine
      whether a particular QMP event is available, so they can
      decide whether to use compatibility code instead. This
      introduces a new 'query-events' command to QMP to do just
      that
      
       { "execute": "query-events" }
       {"return": [{"name": "WAKEUP"},
                   {"name": "SUSPEND"},
                   {"name": "DEVICE_TRAY_MOVED"},
                   {"name": "BLOCK_JOB_CANCELLED"},
                   {"name": "BLOCK_JOB_COMPLETED"},
                   ...snip...
                   {"name": "SHUTDOWN"}]}
      
      * monitor.c: Turn MonitorEvent -> string conversion
        into a lookup from a static table of constant strings.
        Add impl of qmp_query_events monitor command handler
      * qapi-schema.json, qmp-commands.hx: Define contract of
        query-events command
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      4860853d
    • L
      qapi: convert netdev_del · 5f964155
      Luiz Capitulino 提交于
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Reviewed-By: NLaszlo Ersek <lersek@redhat.com>
      5f964155
    • L
      qapi: convert netdev_add · 928059a3
      Luiz Capitulino 提交于
      This is not a full QAPI conversion, but an intermediate step.
      
      In essence, do_netdev_add() is split into three functions:
      
       1. netdev_add(): performs the actual work. This function is fully
          converted to Error (thus, it's "qapi-friendly")
      
       2. qmp_netdev_add(): the QMP front-end for netdev_add(). This is
          coded by hand and not auto-generated (gen=no in the schema). The
          reason for this it's a lot easier and simpler to with QemuOpts
          this way
      
       3. hmp_netdev_add(): HMP front-end.
      
      This design was suggested by Paolo Bonzini.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Reviewed-By: NLaszlo Ersek <lersek@redhat.com>
      928059a3
    • W
      introduce a new monitor command 'dump-guest-memory' to dump guest's memory · 783e9b48
      Wen Congyang 提交于
      The command's usage:
         dump-guest-memory [-p] protocol [begin] [length]
      The supported protocol can be file or fd:
      1. file: the protocol starts with "file:", and the following string is
         the file's path.
      2. fd: the protocol starts with "fd:", and the following string is the
         fd's name.
      
      Note:
        1. If you want to use gdb to process the core, please specify -p option.
           The reason why the -p option is not default is:
             a. guest machine in a catastrophic state can have corrupted memory,
                which we cannot trust.
             b. The guest machine can be in read-mode even if paging is enabled.
                For example: the guest machine uses ACPI to sleep, and ACPI sleep
                state goes in real-mode.
        2. If you don't want to dump all guest's memory, please specify the start
           physical address and the length.
      Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      783e9b48
  9. 09 5月, 2012 2 次提交
  10. 03 5月, 2012 1 次提交
  11. 27 4月, 2012 3 次提交
  12. 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
  13. 10 4月, 2012 1 次提交
  14. 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
  15. 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
  16. 12 3月, 2012 3 次提交
  17. 10 3月, 2012 2 次提交
  18. 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
  19. 25 2月, 2012 1 次提交
  20. 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
  21. 26 1月, 2012 5 次提交
  22. 18 1月, 2012 1 次提交