Add a vkbd frontend/backend pair for HVM guests
PATCH 1/1 Add a vkbd frontend/backend pair for HVM guests
Linux PV on HVM guests can use vkbd, so add a vkbd frontend/backend pair for HVM guests by default.
It is useful because it doesn't require frequent qemu wakeups as the usb keyboard/mouse does.
Signed-off-by Stefano Stabellini <[email protected]>
tools/libxl/libxl_create.c +7 -0
@@ -507,6 +507,7 @@ static int do_domain_create(libxl__gc *gcase LIBXL_DOMAIN_TYPE_HVM : {libxl_device_console console; +libxl_device_vkb vkb; ret =init_console_info (&console,0 );if ( ret )
@@ -514,6 +515,12 @@ static int do_domain_create(libxl__gc *glibxl__device_console_add (gc, domid, &console, &state);libxl_device_console_dispose (&console); + ret =libxl_device_vkb_init (ctx, &vkb); +if ( ret ) + goto error_out; +libxl_device_vkb_add (ctx, domid, &vkb); +libxl_device_vkb_dispose (&vkb); + dm_info->domid = domid; ret = libxl__create_device_model(gc, dm_info, d_config->disks, d_config->num_disks,
Stefano Stabellini writes ("[Xen-devel] [PATCH] Add a vkbd frontend/backend pair for HVM guests"):
Quoted 6 lines
Linux PV on HVM guests can use vkbd, so add a vkbd frontend/backend pair for HVM guests by default.
It is useful because it doesn't require frequent qemu wakeups as the usb keyboard/mouse does.Signed-off-by Stefano Stabellini <[email protected]>
Committed-by Ian Jackson <[email protected]>