|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Revert "xl: Default guest mode changed from PV to PVH with PV shim"
This breaks ARM. It should be protected by some x86 #if. For now,
revert it, as it's not critical (and it isn't included in the
comet/vixen security patch branches published via XSA-254).
This reverts commit 63080b704351022cb7badb73339d47646fb465bd.
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
CC: Wei Liu <wei.liu2@xxxxxxxxxx>
CC: Julien Grall <julien.grall@xxxxxxxxxx>
---
tools/xl/xl_parse.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c
index 2a53ac0..fdfe693 100644
--- a/tools/xl/xl_parse.c
+++ b/tools/xl/xl_parse.c
@@ -939,12 +939,8 @@ void parse_config_data(const char *config_source,
c_info->type = builder_type;
}
- static bool pvshim_default_enable = 0;
-
- if (c_info->type == LIBXL_DOMAIN_TYPE_INVALID) {
- c_info->type = LIBXL_DOMAIN_TYPE_PVH;
- pvshim_default_enable = 1;
- }
+ if (c_info->type == LIBXL_DOMAIN_TYPE_INVALID)
+ c_info->type = LIBXL_DOMAIN_TYPE_PV;
xlu_cfg_get_defbool(config, "hap", &c_info->hap, 0);
@@ -970,10 +966,7 @@ void parse_config_data(const char *config_source,
libxl_domain_build_info_init_type(b_info, c_info->type);
if (b_info->type == LIBXL_DOMAIN_TYPE_PVH) {
- if (xlu_cfg_get_defbool(config, "pvshim", &b_info->u.pvh.pvshim, 0)
- && pvshim_default_enable)
- libxl_defbool_set(&b_info->u.pvh.pvshim, 1);
-
+ xlu_cfg_get_defbool(config, "pvshim", &b_info->u.pvh.pvshim, 0);
if (!xlu_cfg_get_string(config, "pvshim_path", &buf, 0))
xlu_cfg_replace_string(config, "pvshim_path",
&b_info->u.pvh.pvshim_path, 0);
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |