Skip to content

xen, usb: support pvUSB frontend driver

Juergen Gross lkml xen-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 16 repliesIn review
  2. v33 patches 4 repliesSuperseded
  3. v23 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches17 repliesSuperseded

Changes in v4 from the cover letter

- remove sysfs file from frontend, as it violated the "one value per file" rule and didn't serve any real purpose.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3usb: Add Xen pvUSB protocol descriptioninclude/xen/interface/io/usbif.h+252 -011 replies
2/3usb: Introduce Xen pvUSB frontend (xen hcd)drivers/usb/host/Kconfig drivers/usb/host/Makefile drivers/usb/host/xen-hcd.c+1606 -01 reply
3/3xen: add Xen pvUSB maintainerMAINTAINERS+8 -00 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchKonrad Rzeszutek WilkDavid Vrabel
1/3A-b
2/3Reveiwed-by
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Patch V4 0/3] xen, usb: support pvUSB frontend driver

This series adds XEN guest pvUSB support. With pvUSB it is possible to use physical USB devices from a XEN domain.

The support consists of a frontend in form of a virtual hcd driver in the unprivileged domU passing I/O-requests to the backend in a driver domain (usually Dom0). The backend is not part of this patch series, as it will be supported via qemu.

The code is taken (and adapted) from the original pvUSB implementation done for Linux 2.6 in 2008 by Fujitsu.

Normal operation of USB devices by adding and removing them dynamically to/from a domain has been tested using various USB devices (USB 1.1, 2.0 and 3.0). The pvUSB backend for these tests was a SUSE SLES Dom0 with a kernel based backend driver.

Changes in V4:
- remove sysfs file from frontend, as it violated the "one value per file" rule and didn't serve any real purpose.

Changes in V3:
- move frontend to drivers/usb/host and rename it to xen-hcd.
- changed name prefixes in patch 1 to "xenusb" as requested by Greg
- use __u<n> types rather than uint<n>_t as requested by Greg

Changes in V2:
- removed backend, as it can be implemented in user land
- added some access macros and definitions to the pvUSB interface description to make it independant from linux kernel USB internals
- adapted frontend to newer kernel version and use new pvUSB interface macros
- set port status in one chunk as suggested by Oliver Neukum

Juergen Gross (3):
usb: Add Xen pvUSB protocol description
usb: Introduce Xen pvUSB frontend (xen hcd)
xen: add Xen pvUSB maintainer

 MAINTAINERS                      |    8 +
 drivers/usb/host/Kconfig         |   11 +
 drivers/usb/host/Makefile        |    1 +
 drivers/usb/host/xen-hcd.c       | 1594 ++++++++++++++++++++++++++++++++++++++
 include/xen/interface/io/usbif.h |  252 ++++++
 5 files changed, 1866 insertions(+)
 create mode 100644 drivers/usb/host/xen-hcd.c
 create mode 100644 include/xen/interface/io/usbif.h
Signature · 1 line
2.1.4