Skip to content

Commit

Permalink
libxl: Edit patch to enable vkb's for HVM guests.
Browse files Browse the repository at this point in the history
Edit libxl-xenmgr-support.patch to create vkb devices for HVM guests
when vkb=1 in the xl config.

Signed-off-by: Troy Crosley <[email protected]>
  • Loading branch information
troyc authored and Eric Chanudet committed Dec 18, 2020
1 parent 0fd85bb commit 4f925c4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions recipes-extended/xen/files/libxl-xenmgr-support.patch
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,16 @@ PATCHES
xs_write(ctx->xsh, t, GCSPRINTF("%s/control/platform-feature-multiprocessor-suspend", dom_path), "1", 1);
xs_write(ctx->xsh, t, GCSPRINTF("%s/control/platform-feature-xs_reset_watches", dom_path), "1", 1);

@@ -1435,17 +1440,12 @@ static void domcreate_launch_dm(libxl__e
@@ -1435,17 +1440,17 @@ static void domcreate_launch_dm(libxl__e
{
libxl__device_console console;
libxl__device device;
- libxl_device_vkb vkb;
+
+ for (i = 0; i < d_config->num_vkbs; i++) {
+ libxl__device_add(gc, domid, &libxl__vkb_devtype,
+ &d_config->vkbs[i]);
+ }

init_console_info(gc, &console, 0);
console.backend_domid = state->console_domid;
Expand All @@ -76,7 +81,7 @@ PATCHES
dcs->sdss.dm.guest_domid = domid;
if (libxl_defbool_val(d_config->b_info.device_model_stubdomain))
libxl__spawn_stub_dm(egc, &dcs->sdss);
@@ -1485,23 +1485,17 @@ static void domcreate_launch_dm(libxl__e
@@ -1485,23 +1490,17 @@ static void domcreate_launch_dm(libxl__e
libxl__device_console_dispose(&vuart);
}

Expand Down Expand Up @@ -108,7 +113,7 @@ PATCHES
ret = ERROR_INVAL;
--- a/tools/libxl/libxl_dm.c
+++ b/tools/libxl/libxl_dm.c
@@ -2353,6 +2353,24 @@ retry_transaction:
@@ -2349,6 +2349,24 @@ retry_transaction:
libxl__xs_printf(gc, XBT_NULL,
DEVICE_MODEL_XS_PATH(gc, dm_domid, guest_domid, "/xen_extended_power_mgmt"), "2");

Expand Down

0 comments on commit 4f925c4

Please sign in to comment.