Re: [PATCH v7 2/3] usb: Introduce Xen pvUSB frontend (xen hcd)
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2021-12-03 12:49:31
Also in:
lkml, xen-devel
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2021-12-03 12:49:31
Also in:
lkml, xen-devel
On Tue, Nov 23, 2021 at 02:20:47PM +0100, Juergen Gross wrote:
Introduces the Xen pvUSB frontend. With pvUSB it is possible for a Xen domU to communicate with a USB device assigned to that domU. The communication is all done via the pvUSB backend in a driver domain (usually Dom0) which is owner of the physical device. The pvUSB frontend is a USB hcd for a virtual USB host connector. The code is taken from the pvUSB implementation in Xen done by Fujitsu based on Linux kernel 2.6.18. Changes from the original version are: - port to upstream kernel - put all code in just one source file - move module to appropriate location in kernel tree - adapt to Linux style guide - minor code modifications to increase readability Signed-off-by: Juergen Gross <jgross@suse.com> --- drivers/usb/host/Kconfig | 11 + drivers/usb/host/Makefile | 1 + drivers/usb/host/xen-hcd.c | 1606 ++++++++++++++++++++++++++++++++++++ 3 files changed, 1618 insertions(+) create mode 100644 drivers/usb/host/xen-hcd.c
This looks sane to me, but I don't know the HCD interface as well as others on linux-usb do, like Alan Stern. What tree do you want this to be merged through, my USB one? thanks, greg k-h