]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix handling of Xen(ner) detection
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 25 Aug 2009 13:17:29 +0000 (14:17 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 22 Sep 2009 15:13:33 +0000 (16:13 +0100)
commitb81a7ece97e24dacd9a1ce458ea02e58725e5e98
tree2d892619820165b05670fad206907e7550e7218a
parent12c542a42123a708961c91644691224c9eb2291b
Fix handling of Xen(ner) detection

Latest upstream QEMU can be built with Xen support, which introduces
a -xen-domid argument. This was  mistakenly detected as -domid due
to old Xenner support. Adapt to cope with both syntax. Also only
set domid if the virt type is xen, or the guest type is xen

* src/qemu_conf.c, src/qemu_conf.h: Detect new -xen-domid flag in
  preference to -domid.
* tests/qemuxml2argvdata/qemuxml2argv-bootloader.args,
  tests/qemuxml2argvdata/qemuxml2argv-input-xen.args: Add missing
  -domid param
* tests/qemuxml2argvdata/qemuxml2argv-misc-uuid.args: Remove bogus
  -boot param.
* tests/qemuxml2argvtest.c: Add missing QEMUD_CMD_FLAG_DOMID params
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h
tests/qemuxml2argvdata/qemuxml2argv-bootloader.args
tests/qemuxml2argvdata/qemuxml2argv-input-xen.args
tests/qemuxml2argvdata/qemuxml2argv-misc-uuid.args
tests/qemuxml2argvtest.c