mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/libxl: fix setting altp2m param broken by 1e9bc407cf
The patch 1e9bc407cf mistakenly converted the altp2m config option to a
boolean. This is incorrect and breaks external-only usecases of altp2m that
is set with a value of 2.
Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
1 parent
51f9df5c19
commit
7582bbc14c
1 file changed
+1
-1
@@ -391,7 +391,7 @@ static int hvm_set_conf_params(libxl__gc *gc, uint32_t domid,
|
|||||||
libxl_ctx *ctx = libxl__gc_owner(gc);
|
libxl_ctx *ctx = libxl__gc_owner(gc);
|
||||||
xc_interface *xch = ctx->xch;
|
xc_interface *xch = ctx->xch;
|
||||||
int ret = ERROR_FAIL;
|
int ret = ERROR_FAIL;
|
||||||
bool altp2m = info->altp2m;
|
unsigned int altp2m = info->altp2m;
|
||||||
|
|
||||||
switch(info->type) {
|
switch(info->type) {
|
||||||
case LIBXL_DOMAIN_TYPE_HVM:
|
case LIBXL_DOMAIN_TYPE_HVM:
|
||||||
|
|||||||