[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH RFC 2/3] libxl: upstream Qemu as PV backend for IOEMU stubdom
Process xl.cfg file setting for PV device model version. Valid values are qemu-xen and qemu-xen-traditional. Signed-off-by: Simon Waterman <watermansrdev@xxxxxxxxx> --- tools/xl/xl_parse.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c index 856a304..48cbb18 100644 --- a/tools/xl/xl_parse.c +++ b/tools/xl/xl_parse.c @@ -1883,6 +1883,25 @@ skip_usbdev: xlu_cfg_replace_string(config, "device_model_user", &b_info->device_model_user, 0); + if (!xlu_cfg_get_string (config, "device_model_pv_version", &buf, 0)) { + if (!libxl_defbool_val(b_info->device_model_stubdomain)) { + fprintf(stderr, "WARNING: device_model_pv_version specified but no stub domain\n"); + } + if (!strcmp(buf, "qemu-xen-traditional")) { + b_info->device_model_pv_version + = LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL; + } else if (!strcmp(buf, "qemu-xen")) { + b_info->device_model_pv_version + = LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN; + } else { + fprintf(stderr, + "Unknown device_model_pv_version \"%s\" specified\n", buf); + exit(1); + } + } else + b_info->device_model_pv_version + = LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL; + #define parse_extra_args(type) \ e = xlu_cfg_get_list_as_string_list(config, "device_model_args"#type, \ &b_info->extra##type, 0); \ -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |