1. 31 7月, 2009 3 次提交
  2. 30 7月, 2009 8 次提交
  3. 29 7月, 2009 19 次提交
  4. 28 7月, 2009 2 次提交
  5. 27 7月, 2009 8 次提交
    • D
      Fix crashes in Xen capabilities code · dd6cd7dd
      Daniel P. Berrange 提交于
      * src/xen_internal.c: Don't free memory now owned by the virCapsPtr
         structure
      * tests/testutilsxen.c: Fix up for change in internal API
      dd6cd7dd
    • D
      Fix typo in xen capabilities code · f055724b
      Daniel P. Berrange 提交于
      f055724b
    • D
      Fill in vCPU <-> pCPU current mapping, and vCPU cpuTime for QEMU · c4a04dc0
      Daniel P. Berrange 提交于
      * src/qemu_driver.c: implement missing features in qemudDomainGetVcpus
        for 'cpu' and 'cpuTime' fields
      c4a04dc0
    • M
      Add support for attaching network/bridge NICs in QEMU driver · 85453c42
      Mark McLoughlin 提交于
      In order to hotplug a network/bridge backed NIC, we need to first create
      the tap file descriptor, add the tap interface to the bridge and then
      pass the file descriptor to the qemu process using the 'getfd' monitor
      command.
      
      Once the tapfd has been accepted, we create the network backend using
      host_net_add, supplying the name assigned to the tapfd. If this fails,
      we need to close the tapfd in qemu using the 'closefd' monitor command.
      
      If the version of qemu does not support the getfd/closefd monitor
      commands we detect "unknown command" in the getfd reply and fail the
      attach operation.
      
      * src/qemu_driver.c: add support for tapfd based hotplug in
        qemudDomainAttachNetDevice()
      85453c42
    • M
      Add SCM_RIGHTS support to QEMU monitor code · 1daaebfa
      Mark McLoughlin 提交于
      Add qemudMonitorCommandWithFd() which allows a file descriptor to be
      sent to qemu over a unix monitor socket using SCM_RIGHTS. See the
      unix(7) and cmsg(3) man pages.
      
      * src/qemu_conf.c: add a scm_fd param to qemudMonitorCommandExtra(),
        add qemudMonitorCommandWithFd(), implement SCM_RIGHTS support in
        qemudMonitorSendUnix()
      1daaebfa
    • M
      Use sendmsg() on QEMU monitor socket · 7d9576ed
      Mark McLoughlin 提交于
      Switch from using write() to using sendmsg() on QEMU's monitor socket
      so that we can add support for SCM_RIGHTS.
      
      * src/qemu_driver.c: add sendmsg() based qemudMonitorSendUnix() and use
        it when the monitor fd is a unix socket
      7d9576ed
    • M
      Factor qemudMonitorSend() out of qemudMonitorCommandExtra() · 9de2972c
      Mark McLoughlin 提交于
      Add a little helper function to write the monitor command followed by
      carriage return in a single write.
      
      This doesn't make any real difference, but allows us to more easily
      switch to using sendmsg() when using the monitor over a unix socket.
      
      * src/qemu_conf.c: split qemudMonitorSend() out
      9de2972c
    • M
      Clean up error handling in qemudDomainAttachNetDevice() · be44cabd
      Mark McLoughlin 提交于
      In subsequent patches we're going to have a file descriptor to close
      too, so centralize the error handling cleanups to make things easier.
      
      * src/qemu_conf.c: in qemudDomainAttachNetDevice() consolidate the
        error handling cleanups together
      be44cabd