mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
libxl: remove uuid from device model info.
This should be managed by libxl and need not be exposed to the user. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
This commit is contained in:
1 parent
316024b431
commit
e08baad6ae
3 files changed
+1
-6
No files matched your search
@@ -131,8 +131,6 @@ int libxl_init_dm_info(libxl_ctx *ctx,
|
||||
{
|
||||
memset(dm_info, '\0', sizeof(*dm_info));
|
||||
|
||||
libxl_uuid_generate(&dm_info->uuid);
|
||||
|
||||
dm_info->device_model_version = LIBXL_DEVICE_MODEL_VERSION_QEMU_XEN_TRADITIONAL;
|
||||
dm_info->device_model_stubdomain = false;
|
||||
dm_info->device_model = NULL;
|
||||
|
||||
@@ -697,7 +697,7 @@ static int libxl__create_stubdom(libxl__gc *gc,
|
||||
dm_config.c_info.type = LIBXL_DOMAIN_TYPE_PV;
|
||||
dm_config.c_info.name = libxl__sprintf(gc, "%s-dm", libxl__domid_to_name(gc, info->domid));
|
||||
|
||||
libxl_uuid_copy(&dm_config.c_info.uuid, &info->uuid);
|
||||
libxl_uuid_generate(&dm_config.c_info.uuid);
|
||||
|
||||
memset(&dm_config.b_info, 0x00, sizeof(libxl_domain_build_info));
|
||||
dm_config.b_info.type = dm_config.c_info.type;
|
||||
|
||||
@@ -253,9 +253,6 @@ libxl_domain_build_info = Struct("domain_build_info",[
|
||||
libxl_device_model_info = Struct("device_model_info",[
|
||||
("domid", libxl_domid),
|
||||
|
||||
# uuid is used only with stubdom, and must be different from the
|
||||
# domain uuid
|
||||
("uuid", libxl_uuid),
|
||||
("device_model_version", libxl_device_model_version),
|
||||
("device_model_stubdomain", bool),
|
||||
# you set device_model you must set device_model_version too
|
||||
|
||||