1. 14 8月, 2012 7 次提交
  2. 05 6月, 2012 1 次提交
  3. 11 5月, 2012 1 次提交
  4. 05 4月, 2012 1 次提交
    • S
      qdev: add blocksize property type · 02fda01c
      Stefan Hajnoczi 提交于
      Storage interfaces like virtio-blk can be configured with block size
      information so that the guest can take advantage of efficient I/O
      request sizes.
      
      According to the SCSI Block Commands (SBC) standard a device's block
      size is "almost always greater than one byte and may be a multiple of
      512 bytes".  QEMU currently has a 512 byte minimum block size because
      the block layer functions work at that granularity.  Furthermore, the
      block size should be a power of 2 because QEMU calculates bitmasks from
      the value.
      
      Introduce a "blocksize" property type so devices can enforce these
      constraints on block size values.  If the constraints are relaxed in the
      future then this property can be updated.
      
      Introduce the new PropertyValueNotPowerOf2 QError so QMP clients know
      exactly why a block size value was rejected.
      Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
      Reviewed-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NKevin Wolf <kwolf@redhat.com>
      02fda01c
  5. 15 3月, 2012 1 次提交
  6. 15 2月, 2012 1 次提交
  7. 07 2月, 2012 1 次提交
    • P
      qom: use object_resolve_path_type for links · 11e35bfd
      Paolo Bonzini 提交于
      This allows to restrict partial matches to objects of the expected
      type.  It will let people use bare names to reference drives
      even though their name might be the same as a device's (e.g.
      -drive id=hd0,if=none,... -device ...,drive=hd0,id=hd0).
      
      As a useful byproduct, this fixes a problem with links of interface
      type.  When a link property's type is an interface, the code expects
      the implementation object (not the parent object) to be stored in the
      variable.  The parent object does not contain the right vtable.
      Reviewed-by: NAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      11e35bfd
  8. 26 1月, 2012 2 次提交
  9. 18 1月, 2012 4 次提交
  10. 20 12月, 2011 1 次提交
  11. 15 12月, 2011 1 次提交
  12. 13 12月, 2011 1 次提交
  13. 06 12月, 2011 1 次提交
  14. 05 12月, 2011 2 次提交
  15. 22 11月, 2011 2 次提交
  16. 04 10月, 2011 1 次提交
  17. 16 9月, 2011 1 次提交
    • L
      Monitor/QMP: Don't allow cont on bad VM state · 6667b23f
      Luiz Capitulino 提交于
      We have two states where issuing cont before system_reset can
      cause problems: RSTATE_SHUTDOWN (when -no-shutdown is used) and
      RSTATE_PANICKED (which only happens with kvm).
      
      This commit fixes that by doing the following when state is
      RSTATE_SHUTDOWN or RSTATE_PANICKED:
      
       1. returning an error to the user/client if cont is issued
       2. automatically transition to RSTATE_PAUSED during system_reset
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      6667b23f
  18. 24 7月, 2011 1 次提交
    • D
      Introduce a 'client_add' monitor command accepting an open FD · 13661089
      Daniel P. Berrange 提交于
      Allow client connections for VNC and socket based character
      devices to be passed in over the monitor using SCM_RIGHTS.
      
      One intended usage scenario is to start QEMU with VNC on a
      UNIX domain socket. An unprivileged user which cannot access
      the UNIX domain socket, can then connect to QEMU's VNC server
      by passing an open FD to libvirt, which passes it onto QEMU.
      
       { "execute": "get_fd", "arguments": { "fdname": "myclient" } }
       { "return": {} }
       { "execute": "add_client", "arguments": { "protocol": "vnc",
                                                 "fdname": "myclient",
                                                 "skipauth": true } }
       { "return": {} }
      
      In this case 'protocol' can be 'vnc' or 'spice', or the name
      of a character device (eg from -chardev id=XXXX)
      
      The 'skipauth' parameter can be used to skip any configured
      VNC authentication scheme, which is useful if the mgmt layer
      talking to the monitor has already authenticated the client
      in another way.
      
      * console.h: Define 'vnc_display_add_client' method
      * monitor.c: Implement 'client_add' command
      * qemu-char.c, qemu-char.h: Add 'qemu_char_add_client' method
      * qerror.c, qerror.h: Add QERR_ADD_CLIENT_FAILED
      * qmp-commands.hx: Declare 'client_add' command
      * ui/vnc.c: Implement 'vnc_display_add_client' method
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      13661089
  19. 22 7月, 2011 2 次提交
    • M
      guest agent: add guest agent RPCs/commands · e3d4d252
      Michael Roth 提交于
      This adds the initial set of QMP/QAPI commands provided by the guest
      agent:
      
      guest-sync
      guest-ping
      guest-info
      guest-shutdown
      guest-file-open
      guest-file-read
      guest-file-write
      guest-file-seek
      guest-file-flush
      guest-file-close
      guest-fsfreeze-freeze
      guest-fsfreeze-thaw
      guest-fsfreeze-status
      
      The input/output specification for these commands are documented in the
      schema.
      
      Example usage:
      
        host:
          qemu -device virtio-serial \
               -chardev socket,path=/tmp/vs0.sock,server,nowait,id=qga0 \
               -device virtserialport,chardev=qga0,name=org.qemu.quest_agent.0
               ...
      
          echo "{'execute':'guest-info'}" | socat stdio unix-connect:/tmp/qga0.sock
      
        guest:
          qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 \
                  -p /var/run/qemu-guest-agent.pid -d
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@gmail.com>
      e3d4d252
    • M
      qapi: add QMP input visitor · c40cc0a0
      Michael Roth 提交于
      A type of Visiter class that is used to walk a qobject's
      structure and assign each entry to the corresponding native C type.
      Command marshaling function will use this to pull out QMP command
      parameters recieved over the wire and pass them as native arguments
      to the corresponding C functions.
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@gmail.com>
      c40cc0a0
  20. 08 6月, 2011 2 次提交
  21. 01 6月, 2011 1 次提交
  22. 22 3月, 2011 1 次提交
  23. 10 2月, 2011 1 次提交
  24. 10 1月, 2011 1 次提交
  25. 03 10月, 2010 2 次提交