1. 21 7月, 2009 1 次提交
  2. 17 7月, 2009 2 次提交
    • C
      qemu: Try multiple times to open unix monitor socket · 3b541768
      Cole Robinson 提交于
      Unlike the pty monitor (which we know exists since we scrape its path from
      stdout), we have no way of knowing that the unix monitor socket should exist/
      be initialized. As a result, some of my KVM guests randomly fail to start on
      F10 host.
      
      Try to open the unix socket in a 3 second timeout loop. Ignore EACCES (path
      does not exist if a first time run) and ECONNREFUSED (leftover socket from
      a previous run hasn't been removed yet). Fixes things for me.
      3b541768
    • D
      Run QEMU guests as an unprivileged user · 0714b2ba
      Daniel P. Berrange 提交于
      * configure.in: Add --with-qemu-user and --with-qemu-group args
      * libvirt.spec.in: use 'qemu' for user/group for Fedora >= 12
      * qemud/libvirtd_qemu.arg, qemud/test_libvirtd_qemu.aug,
        src/qemu.conf: Add 'user' and 'group' args for configuration
      * src/Makefile.am: Create %localstatedir/cache/libvirt/qemu
      * src/qemu_conf.c, src/qemu_conf.h: Load user/group from config
      * src/qemu_driver.c: Change user ID/group ID when launching QEMU
        guests. Change user/group ownership on disks/usb/pci devs.
        Put memory dumps in %localstatedir/cache/libvirt/qemu
      * src/util.c, src/util.h: Add convenient APIs for converting
        username/groupname to user ID / group ID
      0714b2ba
  3. 16 7月, 2009 4 次提交
  4. 11 7月, 2009 1 次提交
  5. 10 7月, 2009 4 次提交
    • M
      Switch to using a unix socket for the qemu monitor · 62455ed8
      Mark McLoughlin 提交于
      We keep support for the pty based monitor so that we can re-connect
      to VMs started by older versions of libvirtd.
      
      * src/domain_conf.c: handle formatting and parsing unix monitors
      
      * src/qemu_driver.c: add qemudOpenMonitorUnix(), remove the monitor
        pty path searching from qemudFindCharDevicePTYs(), switch
        qemudStartVMDaemon() and qemuDomainXMLToNative() to using a unix
        monitor
      
      * tests/qemuxml2argvtest.c: switch to using a unix monitor
      
      * tests/qemuxml2argvdata/qemuxml2argv-*.args: update test data
      62455ed8
    • M
      Add the monitor type to the domain state XML · 05d377bd
      Mark McLoughlin 提交于
      There are no functional changes in this patch apart from adding the
      monitor type to the state XML.
      
      The patch mostly consists of switching to use virDomainChrDef every
      where to describe the monitor.
      
      * src/domain_conf.h: replace monitorpath with monitor_chr
      
      * src/domain_conf.c: handle parsing the monitor type and initializing
        monitor chr
      
      * src/qemu_conf.[ch]: make qemudBuildCommandLine take a
        virDomainChrDefPtr and use that to build the -monitor parameter
      
      * src/qemu_driver.c: split pty specific and common code from
        qemudOpenMonitor, have qemudStartVMDaemon() initialize monitor_chr
      
      * tests/qemuxml2argvtest.c: update for qemudBuildCommandLine() change
      05d377bd
    • M
      Minor qemu monitor coding style fixes · 1f4ec305
      Mark McLoughlin 提交于
      * src/qemu_driver.c: use a consistent coding style for function
        definitions
      1f4ec305
    • M
      Don't leak vm->monitorpath on re-connect · 8a52daa2
      Mark McLoughlin 提交于
      * src/qemu_driver.c: vm->monitorpath is already initialized in the case
        of re-connect, so move the initialization for the normal startup case
        out of the common code
      8a52daa2
  6. 30 6月, 2009 1 次提交
  7. 29 6月, 2009 1 次提交
  8. 25 6月, 2009 2 次提交
  9. 23 6月, 2009 1 次提交
  10. 16 6月, 2009 1 次提交
  11. 12 6月, 2009 3 次提交
  12. 03 6月, 2009 1 次提交
  13. 02 6月, 2009 1 次提交
    • D
      NPIV implementation for node device create and destroy · 81d0ffbc
      Daniel Veillard 提交于
      * src/Makefile.am src/node_device.[ch] src/node_device_conf.[ch]
        src/node_device_hal.[ch] src/node_device_hal_linux.c
        src/qemu_driver.c src/remote_internal.c src/storage_backend.c
        src/virsh.c src/xen_unified.c tests/nodedevxml2xmltest.c
        po/POTFILES.in: implementation for node device create and destroy
        in NPIV support, patch by David Allan
      Daniel
      81d0ffbc
  14. 29 5月, 2009 2 次提交
  15. 28 5月, 2009 1 次提交
  16. 21 5月, 2009 3 次提交
  17. 19 5月, 2009 1 次提交
  18. 15 5月, 2009 1 次提交
  19. 11 5月, 2009 5 次提交
  20. 08 5月, 2009 2 次提交
  21. 07 5月, 2009 1 次提交
    • D
      Changes needed for multiple graphics adapters · 7ee54d83
      Daniel Veillard 提交于
      * src/domain_conf.c src/domain_conf.h: parse and save multiple
        graphics elements instead of one, patch by Pritesh Kothari
      * src/qemu_conf.c src/qemu_driver.c: adapt the qemu/kvm driver for
        the new structures, patch by Pritesh Kothari
      * src/xend_internal.c src/xm_internal.c: same thing for Xen drivers
      Daniel
      7ee54d83
  22. 06 5月, 2009 1 次提交
    • M
      Fix qemu driver's interpretation of <hostdev managed='yes'/> · 1d6c713b
      Mark McLoughlin 提交于
      This change:
      
        Tue Mar  3 08:55:13 GMT 2009 Daniel P. Berrange <berrange@redhat.com>
      
             Don't try to detach & reset PCI devices while running test
             suite for XML-> ARGV conversion.
             * src/qemu_driver.c: Add qemuPrepareHostDevices() helper to
             detach and reset PCI devices.
             * src/qemu_conf.c: Don't detach & reset PCI devices while
             building the command line argv
      
      accidentally did this:
      
      -            if (hostdev->managed) {
      +        if (!hostdev->managed) {
      
      Which results in managed='yes' not causing the device to be
      detached when the guest is starting.
      Signed-off-by: NMark McLoughlin <markmc@redhat.com>
      1d6c713b