]> xenbits.xensource.com Git - libvirt.git/commit
libxl: Add function to determine device model type
authorJim Fehlig <jfehlig@suse.com>
Fri, 19 Sep 2014 16:32:43 +0000 (10:32 -0600)
committerJim Fehlig <jfehlig@suse.com>
Fri, 10 Oct 2014 21:08:40 +0000 (15:08 -0600)
commitc5a003508f43ffcdc1f2fcf2b9fd2440f53c4bbf
tree9fd4fa6e359812f3b27d238e719ab6aadd84a16b
parent9320c3ff194da90ac6c402e449a2bd57dc4c5bb5
libxl: Add function to determine device model type

This patch introduces a function to detect whether the specified
emulator is QEMU_XEN or QEMU_XEN_TRADITIONAL.  Detection is based on the
string "Options specific to the Xen version:" in '$qemu -help' output.
AFAIK, the only qemu containing that string in help output is the
old Xen fork (aka qemu-dm).

Note:
QEMU_XEN means a qemu that contains support for Xen.

QEMU_XEN_TRADITIONAL means Xen's old forked qemu 0.10.2

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_conf.c
src/libxl/libxl_conf.h