summary refs log tree commit diff stats
path: root/hw/xenpv/xen_machine_pv.c
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2016-05-12 16:13:41 +0200
committerGerd Hoffmann <kraxel@redhat.com>2016-05-23 13:30:03 +0200
commit816ac92ef769f9ffc534e49a1bb6177bddce7aa2 (patch)
treed0b2a6b858cdf65db0a3d199c5847ae80e14b66d /hw/xenpv/xen_machine_pv.c
parent637c53ffcb891ce8876183e6b593b8f0c3763ab1 (diff)
downloadfocaccia-qemu-816ac92ef769f9ffc534e49a1bb6177bddce7aa2.tar.gz
focaccia-qemu-816ac92ef769f9ffc534e49a1bb6177bddce7aa2.zip
xen: add pvUSB backend
Add a backend for para-virtualized USB devices for xen domains.

The backend is using host-libusb to forward USB requests from a
domain via libusb to the real device(s) passed through.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Message-id: 1463062421-613-4-git-send-email-jgross@suse.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/xenpv/xen_machine_pv.c')
-rw-r--r--hw/xenpv/xen_machine_pv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xenpv/xen_machine_pv.c b/hw/xenpv/xen_machine_pv.c
index 48d5bc6047..f68cf48a29 100644
--- a/hw/xenpv/xen_machine_pv.c
+++ b/hw/xenpv/xen_machine_pv.c
@@ -80,6 +80,9 @@ static void xen_init_pv(MachineState *machine)
     xen_be_register("vfb", &xen_framebuffer_ops);
     xen_be_register("qdisk", &xen_blkdev_ops);
     xen_be_register("qnic", &xen_netdev_ops);
+#ifdef CONFIG_USB_LIBUSB
+    xen_be_register("qusb", &xen_usb_ops);
+#endif
 
     /* configure framebuffer */
     if (xenfb_enabled) {