1. 29 1月, 2015 1 次提交
  2. 22 1月, 2015 1 次提交
  3. 15 10月, 2014 1 次提交
    • G
      qmp: Print descriptions of object properties · 07d09c58
      Gonglei 提交于
      Add a new "description" field to DevicePropertyInfo.
      The descriptions can serve as documentation in the code,
      and they can be used to provide better help. For example:
      
      $./qemu-system-x86_64 -device virtio-blk-pci,?
      
      Before this patch:
      
      virtio-blk-pci.iothread=link<iothread>
      virtio-blk-pci.x-data-plane=bool
      virtio-blk-pci.scsi=bool
      virtio-blk-pci.config-wce=bool
      virtio-blk-pci.serial=str
      virtio-blk-pci.secs=uint32
      virtio-blk-pci.heads=uint32
      virtio-blk-pci.cyls=uint32
      virtio-blk-pci.discard_granularity=uint32
      virtio-blk-pci.bootindex=int32
      virtio-blk-pci.opt_io_size=uint32
      virtio-blk-pci.min_io_size=uint16
      virtio-blk-pci.physical_block_size=uint16
      virtio-blk-pci.logical_block_size=uint16
      virtio-blk-pci.drive=str
      virtio-blk-pci.virtio-backend=child<virtio-blk-device>
      virtio-blk-pci.command_serr_enable=on/off
      virtio-blk-pci.multifunction=on/off
      virtio-blk-pci.rombar=uint32
      virtio-blk-pci.romfile=str
      virtio-blk-pci.addr=pci-devfn
      virtio-blk-pci.event_idx=on/off
      virtio-blk-pci.indirect_desc=on/off
      virtio-blk-pci.vectors=uint32
      virtio-blk-pci.ioeventfd=on/off
      virtio-blk-pci.class=uint32
      
      After:
      
      virtio-blk-pci.iothread=link<iothread>
      virtio-blk-pci.x-data-plane=bool (on/off)
      virtio-blk-pci.scsi=bool (on/off)
      virtio-blk-pci.config-wce=bool (on/off)
      virtio-blk-pci.serial=str
      virtio-blk-pci.secs=uint32
      virtio-blk-pci.heads=uint32
      virtio-blk-pci.cyls=uint32
      virtio-blk-pci.discard_granularity=uint32
      virtio-blk-pci.bootindex=int32
      virtio-blk-pci.opt_io_size=uint32
      virtio-blk-pci.min_io_size=uint16
      virtio-blk-pci.physical_block_size=uint16 (A power of two between 512 and 32768)
      virtio-blk-pci.logical_block_size=uint16 (A power of two between 512 and 32768)
      virtio-blk-pci.drive=str (ID of a drive to use as a backend)
      virtio-blk-pci.virtio-backend=child<virtio-blk-device>
      virtio-blk-pci.command_serr_enable=bool (on/off)
      virtio-blk-pci.multifunction=bool (on/off)
      virtio-blk-pci.rombar=uint32
      virtio-blk-pci.romfile=str
      virtio-blk-pci.addr=int32 (Slot and optional function number, example: 06.0 or 06)
      virtio-blk-pci.event_idx=bool (on/off)
      virtio-blk-pci.indirect_desc=bool (on/off)
      virtio-blk-pci.vectors=uint32
      virtio-blk-pci.ioeventfd=bool (on/off)
      virtio-blk-pci.class=uint32
      
      Cc: Markus Armbruster <armbru@redhat.com>
      Signed-off-by: NGonglei <arei.gonglei@huawei.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
      Reviewed-by: NEric Blake <eblake@redhat.com>
      Signed-off-by: NAndreas Färber <afaerber@suse.de>
      07d09c58
  4. 15 8月, 2014 1 次提交
  5. 07 7月, 2014 1 次提交
    • S
      qmp: show QOM properties in device-list-properties · f4eb32b5
      Stefan Hajnoczi 提交于
      Devices can use a mix of qdev and QOM properties.  Currently only the
      qdev properties are displayed by device-list-properties.
      
      This patch extends the property enumeration algorithm to also display
      QOM properties (excluding the implicit "type", "realized",
      "hotpluggable", and "parent_bus" properties).
      
      When a qdev property exists, use the qdev type name to preserve
      backwards compatibility.  QOM type names can be different for bool (qdev
      on/off) and str (used by qdev pointers).
      Signed-off-by: NStefan Hajnoczi <stefanha@redhat.com>
      f4eb32b5
  6. 19 6月, 2014 4 次提交
  7. 09 5月, 2014 2 次提交
  8. 08 5月, 2014 1 次提交
  9. 06 5月, 2014 1 次提交
  10. 25 4月, 2014 2 次提交
  11. 13 3月, 2014 1 次提交
  12. 02 3月, 2014 1 次提交
  13. 29 1月, 2014 2 次提交
  14. 07 1月, 2014 2 次提交
  15. 16 12月, 2013 1 次提交
  16. 01 5月, 2013 1 次提交
  17. 30 4月, 2013 1 次提交
  18. 16 4月, 2013 1 次提交
  19. 19 12月, 2012 4 次提交
  20. 19 11月, 2012 1 次提交
  21. 03 11月, 2012 1 次提交
  22. 30 10月, 2012 1 次提交
  23. 24 10月, 2012 1 次提交
    • P
      qmp: handle stop/cont in INMIGRATE state · 1e998146
      Paolo Bonzini 提交于
      Right now, stop followed by an incoming migration will let the
      virtual machine start.  cont before an incoming migration instead
      will fail.
      
      This is bad because the actual behavior is not predictable; it is
      racy with respect to the start of the incoming migration.  That's
      because incoming migration is blocking, and thus will delay the
      processing of stop/cont until the end of the migration.
      
      In addition, there's nothing that really prevents the user from
      typing the block device's passwords before incoming migration is
      done, so returning the DeviceEncrypted error is also helpful in
      the QMP case.
      
      Both things can be fixed by just toggling the autostart variable when
      stop/cont are called in INMIGRATE state.
      
      Note that libvirt is currently working around the race by looping
      if the MigrationExpected answer is returned.  After this patch, the
      command will return right away without ever raising an error.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      1e998146
  24. 23 10月, 2012 1 次提交
  25. 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
  26. 16 8月, 2012 1 次提交
  27. 14 8月, 2012 2 次提交
  28. 09 5月, 2012 1 次提交
    • L
      runstate: introduce suspended state · ad02b96a
      Luiz Capitulino 提交于
      QEMU enters in this state when the guest suspends to ram (S3).
      
      This is important so that HMP users and QMP clients can know that
      the guest is suspended. QMP also has an event for this, but events
      are not reliable and are limited (ie. a client can connect to QEMU
      after the event has been emitted).
      
      Having a different state for S3 brings a new issue, though. Every
      device that doesn't run when the VM is stopped but wants to run
      when the VM is suspended has to check for RUN_STATE_SUSPENDED
      explicitly. This is the case for the keyboard and mouse devices,
      for example.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Acked-by: NGerd Hoffmann <kraxel@redhat.com>
      ad02b96a
  29. 25 2月, 2012 1 次提交