aboutsummaryrefslogtreecommitdiff
path: root/xen-all.c
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2011-06-24 17:36:11 +0100
committerAlexander Graf <agraf@suse.de>2011-07-17 01:54:25 +0200
commit37cdfcf194825d03334542297bee3a3a4723e6e3 (patch)
tree95a61f09170e10dfcd4485936a2eee9c4ea2782d /xen-all.c
parent5e6b701aba8689a336297dda047bf760ffc05291 (diff)
xen: add vkbd support for PV on HVM guests
Register the vkbd backend even when running as device emulator for HVM guests: it is useful because it doesn't need a frequent timer like usb. Check whether the XenInput DisplayState has been set in the initialise state, rather than the input state. In case the DisplayState hasn't been set and there is no vfb for this domain, then set the XenInput DisplayState to the default one. Changed in v2: - use qemu_free instead of free; Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'xen-all.c')
-rw-r--r--xen-all.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen-all.c b/xen-all.c
index 3d40ab0ece..fb9bcc8f72 100644
--- a/xen-all.c
+++ b/xen-all.c
@@ -868,6 +868,7 @@ int xen_hvm_init(void)
exit(1);
}
xen_be_register("console", &xen_console_ops);
+ xen_be_register("vkbd", &xen_kbdmouse_ops);
xen_be_register("qdisk", &xen_blkdev_ops);
return 0;