[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: Add a vkbd frontend/backend pair for HVM guests
# HG changeset patch # User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> # Date 1321978788 0 # Node ID b21b6c91c1f4f44523c0d401100a8cd9498fa514 # Parent 99a567be1978823ba630ba8bd4f5927a857b9599 libxl: 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 <stefano.stabellini@xxxxxxxxxxxxx> Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- diff -r 99a567be1978 -r b21b6c91c1f4 tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c Tue Nov 22 16:19:11 2011 +0000 +++ b/tools/libxl/libxl_create.c Tue Nov 22 16:19:48 2011 +0000 @@ -545,6 +545,7 @@ case LIBXL_DOMAIN_TYPE_HVM: { libxl_device_console console; + libxl_device_vkb vkb; ret = init_console_info(&console, 0); if ( ret ) @@ -552,6 +553,12 @@ libxl__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, _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |