1. 29 9月, 2012 3 次提交
  2. 14 9月, 2012 1 次提交
  3. 12 9月, 2012 1 次提交
  4. 06 9月, 2012 3 次提交
  5. 05 9月, 2012 1 次提交
  6. 22 8月, 2012 2 次提交
  7. 15 8月, 2012 1 次提交
    • C
      qapi: Introduce add-fd, remove-fd, query-fdsets · ba1c048a
      Corey Bryant 提交于
      This patch adds support that enables passing of file descriptors
      to the QEMU monitor where they will be stored in specified file
      descriptor sets.
      
      A file descriptor set can be used by a client like libvirt to
      store file descriptors for the same file.  This allows the
      client to open a file with different access modes (O_RDWR,
      O_WRONLY, O_RDONLY) and add/remove the passed fds to/from an fd
      set as needed.  This will allow QEMU to (in a later patch in this
      series) "open" and "reopen" the same file by dup()ing the fd in
      the fd set that corresponds to the file, where the fd has the
      matching access mode flag that QEMU requests.
      
      The new QMP commands are:
        add-fd: Add a file descriptor to an fd set
        remove-fd: Remove a file descriptor from an fd set
        query-fdsets: Return information describing all fd sets
      
      Note: These commands are not compatible with the existing getfd
      and closefd QMP commands.
      Signed-off-by: NCorey Bryant <coreyb@linux.vnet.ibm.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      ba1c048a
  8. 14 8月, 2012 7 次提交
  9. 08 8月, 2012 6 次提交
  10. 07 8月, 2012 1 次提交
  11. 03 8月, 2012 1 次提交
  12. 01 8月, 2012 1 次提交
  13. 23 7月, 2012 2 次提交
  14. 14 7月, 2012 2 次提交
  15. 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
  16. 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
  17. 09 5月, 2012 2 次提交
  18. 03 5月, 2012 1 次提交