[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] libs/light: Switch NetBSD to QEMU_XEN
From: Manuel Bouyer <bouyer@xxxxxxxxxx> Switch NetBSD to QEMU_XEN. All 3 versions of libxl__default_device_model() now return LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN, so remove it and just set b_info->device_model_version to LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN in libxl__domain_build_info_setdefault(). Signed-off-by: Manuel Bouyer <bouyer@xxxxxxxxxx> --- tools/libs/light/libxl_create.c | 2 +- tools/libs/light/libxl_freebsd.c | 5 ----- tools/libs/light/libxl_internal.h | 2 -- tools/libs/light/libxl_linux.c | 5 ----- tools/libs/light/libxl_netbsd.c | 5 ----- 5 files changed, 1 insertion(+), 18 deletions(-) diff --git a/tools/libs/light/libxl_create.c b/tools/libs/light/libxl_create.c index 7199a79778..9848d65f36 100644 --- a/tools/libs/light/libxl_create.c +++ b/tools/libs/light/libxl_create.c @@ -102,7 +102,7 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc, b_info->device_model_version = LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL; } else { - b_info->device_model_version = libxl__default_device_model(gc); + b_info->device_model_version = LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN; } } else { b_info->device_model_version = diff --git a/tools/libs/light/libxl_freebsd.c b/tools/libs/light/libxl_freebsd.c index f7ef4a8910..422c6b3b79 100644 --- a/tools/libs/light/libxl_freebsd.c +++ b/tools/libs/light/libxl_freebsd.c @@ -229,11 +229,6 @@ out: return rc; } -libxl_device_model_version libxl__default_device_model(libxl__gc *gc) -{ - return LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN; -} - int libxl__pci_numdevs(libxl__gc *gc) { return ERROR_NI; diff --git a/tools/libs/light/libxl_internal.h b/tools/libs/light/libxl_internal.h index c79523ba92..6c8b7d71a9 100644 --- a/tools/libs/light/libxl_internal.h +++ b/tools/libs/light/libxl_internal.h @@ -2309,8 +2309,6 @@ _hidden char *libxl__json_object_to_json(libxl__gc *gc, /* Based on /local/domain/$domid/dm-version xenstore key * default is qemu xen traditional */ _hidden int libxl__device_model_version_running(libxl__gc *gc, uint32_t domid); - /* Return the system-wide default device model */ -_hidden libxl_device_model_version libxl__default_device_model(libxl__gc *gc); static inline bool libxl__stubdomain_is_linux_running(libxl__gc *gc, uint32_t domid) diff --git a/tools/libs/light/libxl_linux.c b/tools/libs/light/libxl_linux.c index 873b0271af..8d62dfd255 100644 --- a/tools/libs/light/libxl_linux.c +++ b/tools/libs/light/libxl_linux.c @@ -241,11 +241,6 @@ out: return rc; } -libxl_device_model_version libxl__default_device_model(libxl__gc *gc) -{ - return LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN; -} - int libxl__pci_numdevs(libxl__gc *gc) { DIR *dir; diff --git a/tools/libs/light/libxl_netbsd.c b/tools/libs/light/libxl_netbsd.c index e66a393d7f..6ad4ed34c2 100644 --- a/tools/libs/light/libxl_netbsd.c +++ b/tools/libs/light/libxl_netbsd.c @@ -108,11 +108,6 @@ out: return rc; } -libxl_device_model_version libxl__default_device_model(libxl__gc *gc) -{ - return LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL; -} - int libxl__pci_numdevs(libxl__gc *gc) { return ERROR_NI; -- 2.29.2
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |