Switch to using a unix socket for the qemu monitor
authorMark McLoughlin <markmc@redhat.com>
Thu, 9 Jul 2009 17:33:40 +0000 (18:33 +0100)
committerMark McLoughlin <markmc@redhat.com>
Thu, 9 Jul 2009 19:04:09 +0000 (20:04 +0100)
commit62455ed872d3e1c6e96a09f7d968e7cbcf27b731
treecc479e007c55b7713fac2e1756d090ad4705e55b
parent05d377bdd25670c14359b7f0b4e9be545fa14ed0
Switch to using a unix socket for the qemu monitor

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
60 files changed:
src/domain_conf.c
src/qemu_driver.c
tests/qemuxml2argvdata/qemuxml2argv-boot-cdrom.args
tests/qemuxml2argvdata/qemuxml2argv-boot-floppy.args
tests/qemuxml2argvdata/qemuxml2argv-boot-network.args
tests/qemuxml2argvdata/qemuxml2argv-bootloader.args
tests/qemuxml2argvdata/qemuxml2argv-clock-localtime.args
tests/qemuxml2argvdata/qemuxml2argv-clock-utc.args
tests/qemuxml2argvdata/qemuxml2argv-console-compat.args
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom-empty.args
tests/qemuxml2argvdata/qemuxml2argv-disk-cdrom.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-boot-cdrom.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-boot-disk.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v1-none.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v1-wb.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v1-wt.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v2-none.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v2-wb.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-cache-v2-wt.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-fmt-qcow.args
tests/qemuxml2argvdata/qemuxml2argv-disk-drive-shared.args
tests/qemuxml2argvdata/qemuxml2argv-disk-floppy.args
tests/qemuxml2argvdata/qemuxml2argv-disk-many.args
tests/qemuxml2argvdata/qemuxml2argv-disk-usb.args
tests/qemuxml2argvdata/qemuxml2argv-disk-virtio.args
tests/qemuxml2argvdata/qemuxml2argv-disk-xenvbd.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl-fullscreen.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-sdl.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.args
tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-pci-address.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-address.args
tests/qemuxml2argvdata/qemuxml2argv-hostdev-usb-product.args
tests/qemuxml2argvdata/qemuxml2argv-input-usbmouse.args
tests/qemuxml2argvdata/qemuxml2argv-input-usbtablet.args
tests/qemuxml2argvdata/qemuxml2argv-input-xen.args
tests/qemuxml2argvdata/qemuxml2argv-migrate.args
tests/qemuxml2argvdata/qemuxml2argv-minimal.args
tests/qemuxml2argvdata/qemuxml2argv-misc-acpi.args
tests/qemuxml2argvdata/qemuxml2argv-misc-no-reboot.args
tests/qemuxml2argvdata/qemuxml2argv-misc-uuid.args
tests/qemuxml2argvdata/qemuxml2argv-net-eth-ifname.args
tests/qemuxml2argvdata/qemuxml2argv-net-eth.args
tests/qemuxml2argvdata/qemuxml2argv-net-user.args
tests/qemuxml2argvdata/qemuxml2argv-net-virtio.args
tests/qemuxml2argvdata/qemuxml2argv-parallel-tcp.args
tests/qemuxml2argvdata/qemuxml2argv-restore-v1.args
tests/qemuxml2argvdata/qemuxml2argv-restore-v2.args
tests/qemuxml2argvdata/qemuxml2argv-serial-dev.args
tests/qemuxml2argvdata/qemuxml2argv-serial-file.args
tests/qemuxml2argvdata/qemuxml2argv-serial-many.args
tests/qemuxml2argvdata/qemuxml2argv-serial-pty.args
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp-telnet.args
tests/qemuxml2argvdata/qemuxml2argv-serial-tcp.args
tests/qemuxml2argvdata/qemuxml2argv-serial-udp.args
tests/qemuxml2argvdata/qemuxml2argv-serial-unix.args
tests/qemuxml2argvdata/qemuxml2argv-serial-vc.args
tests/qemuxml2argvdata/qemuxml2argv-sound.args
tests/qemuxml2argvtest.c