]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add checks for some NIC hotplug related features added in qemu-0.10.0
authorMark McLoughlin <markmc@redhat.com>
Fri, 17 Jul 2009 21:08:33 +0000 (22:08 +0100)
committerMark McLoughlin <markmc@redhat.com>
Wed, 22 Jul 2009 10:34:06 +0000 (11:34 +0100)
commit948897687e982c4d54febec420ed4690d5b30df5
tree9f3dae9612dc92e5e5a90e7e38c200e3e820cff9
parent63e67ee013656479cccf6865e5e7a300ff129e8b
Add checks for some NIC hotplug related features added in qemu-0.10.0

Add QEMUD_CMD_FLAG_NET_NAME to indicate that '-net ...,name=foo' is
supported and QEMUD_CMD_FLAG_HOST_NET_ADD to indicate that the
'host_net_add' monitor command is available.

Set both these flags if the qemu version is greater than 0.10.0.
Checking via the '-help' output would not work for the monitor command
and even for the command line arg, it would be quite fragile.

* src/qemu_conf.h: add new flags as aliases of QEMUD_CMD_FLAG_0_10

* src/qemu_conf.c: set QEMUD_CMD_FLAG_0_10 for versions >= 0.10.0

* tests/qemuhelptest.c: set QEMUD_CMD_FLAG_0_10 for the appropriate
  qemu versions
src/qemu_conf.c
src/qemu_conf.h
tests/qemuhelptest.c