1. 24 10月, 2012 3 次提交
  2. 18 10月, 2012 2 次提交
  3. 03 10月, 2012 1 次提交
  4. 29 9月, 2012 3 次提交
  5. 26 9月, 2012 1 次提交
    • L
      qapi: convert add_client · b224e5e2
      Luiz Capitulino 提交于
      Also fixes a few issues while there:
      
       1. The fd returned by monitor_get_fd() leaks in most error conditions
       2. monitor_get_fd() return value is not checked. Best case we get
          an error that is not correctly reported, worse case one of the
          functions using the fd (with value of -1) will explode
       3. A few error conditions aren't reported
       4. We now "use up" @fdname always.  Before, it was left alone for
          invalid @protocol
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Reviewed-by: NMarkus Armbruster <armbru@redhat.com>
      b224e5e2
  6. 06 9月, 2012 2 次提交
  7. 22 8月, 2012 2 次提交
  8. 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
  9. 14 8月, 2012 4 次提交
  10. 08 8月, 2012 6 次提交
  11. 03 8月, 2012 1 次提交
  12. 14 7月, 2012 1 次提交
  13. 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
  14. 10 5月, 2012 1 次提交
  15. 27 4月, 2012 2 次提交
  16. 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
  17. 10 4月, 2012 1 次提交
  18. 27 3月, 2012 1 次提交
  19. 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
  20. 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
  21. 12 3月, 2012 1 次提交