Message ID | 20210112181242.1570-13-bouyer@antioche.eu.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | libs/light: Switch NetBSD to QEMU_XEN | expand |
On Tue, Jan 12, 2021 at 07:12:33PM +0100, Manuel Bouyer wrote: > From: Manuel Bouyer <bouyer@netbsd.org> > > 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@netbsd.org> Reviewed-by: Roger Pau Monné <roger.pau@citrix.com> Thanks, Roger.
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;