Skip to contentSkip to conversation

xen, usb: support pvUSB frontend driver

PATCH In review Juergen Gross 6 participants 20 messages Jun 23, 2015 – Mar 18, 2016

Subsystems (3)
lore
Share & tools
lore

Juergen Gross

author maintainer
#0 lore raw

v4 cover 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
author maintainer
#1 lore raw

PATCH v4 1/3 usb: Add Xen pvUSB protocol description

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Changes are:
- adapt to Linux style guide

---
 include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 252 insertions(+)
 create mode 100644 include/xen/interface/io/usbif.h
include/xen/interface/io/usbif.h new file +252 -0
new file mode 100644
index 0000000..4ce0b40
@@ -0,0 +1,252 @@
+/*
+ * usbif.h
+ *
+ * USB I/O interface for Xen guest OSes.
+ *
+ * Copyright (C) 2009, FUJITSU LABORATORIES LTD.
+ * Author: Noboru Iwamatsu <[email protected]>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ */
+
+#ifndef __XEN_PUBLIC_IO_USBIF_H__
+#define __XEN_PUBLIC_IO_USBIF_H__
+
+#include "ring.h"
+#include "../grant_table.h"
+
+/*
+ * Feature and Parameter Negotiation
+ * =================================
+ * The two halves of a Xen pvUSB driver utilize nodes within the XenStore to
+ * communicate capabilities and to negotiate operating parameters. This
+ * section enumerates these nodes which reside in the respective front and
+ * backend portions of the XenStore, following the XenBus convention.
+ *
+ * Any specified default value is in effect if the corresponding XenBus node
+ * is not present in the XenStore.
+ *
+ * XenStore nodes in sections marked "PRIVATE" are solely for use by the
+ * driver side whose XenBus tree contains them.
+ *
+ *****************************************************************************
+ *                            Backend XenBus Nodes
+ *****************************************************************************
+ *
+ *------------------ Backend Device Identification (PRIVATE) ------------------
+ *
+ * num-ports
+ *      Values:         unsigned [1...31]
+ *
+ *      Number of ports for this (virtual) USB host connector.
+ *
+ * usb-ver
+ *      Values:         unsigned [1...2]
+ *
+ *      USB version of this host connector: 1 = USB 1.1, 2 = USB 2.0.
+ *
+ * port/[1...31]
+ *      Values:         string
+ *
+ *      Physical USB device connected to the given port, e.g. "3-1.5".
+ *
+ *****************************************************************************
+ *                            Frontend XenBus Nodes
+ *****************************************************************************
+ *
+ *----------------------- Request Transport Parameters -----------------------
+ *
+ * event-channel
+ *      Values:         unsigned
+ *
+ *      The identifier of the Xen event channel used to signal activity
+ *      in the ring buffer.
+ *
+ * urb-ring-ref
+ *      Values:         unsigned
+ *
+ *      The Xen grant reference granting permission for the backend to map
+ *      the sole page in a single page sized ring buffer. This is the ring
+ *      buffer for urb requests.
+ *
+ * conn-ring-ref
+ *      Values:         unsigned
+ *
+ *      The Xen grant reference granting permission for the backend to map
+ *      the sole page in a single page sized ring buffer. This is the ring
+ *      buffer for connection/disconnection requests.
+ *
+ * protocol
+ *      Values:         string (XEN_IO_PROTO_ABI_*)
+ *      Default Value:  XEN_IO_PROTO_ABI_NATIVE
+ *
+ *      The machine ABI rules governing the format of all ring request and
+ *      response structures.
+ *
+ */
+
+enum xenusb_spec_version {
+	XENUSB_VER_UNKNOWN = 0,
+	XENUSB_VER_USB11,
+	XENUSB_VER_USB20,
+	XENUSB_VER_USB30,	/* not supported yet */
+};
+
+/*
+ *  USB pipe in xenusb_request
+ *
+ *  - port number:	bits 0-4
+ *				(USB_MAXCHILDREN is 31)
+ *
+ *  - operation flag:	bit 5
+ *				(0 = submit urb,
+ *				 1 = unlink urb)
+ *
+ *  - direction:	bit 7
+ *				(0 = Host-to-Device [Out]
+ *				 1 = Device-to-Host [In])
+ *
+ *  - device address:	bits 8-14
+ *
+ *  - endpoint:		bits 15-18
+ *
+ *  - pipe type:	bits 30-31
+ *				(00 = isochronous, 01 = interrupt,
+ *				 10 = control, 11 = bulk)
+ */
+
+#define XENUSB_PIPE_PORT_MASK	0x0000001f
+#define XENUSB_PIPE_UNLINK	0x00000020
+#define XENUSB_PIPE_DIR		0x00000080
+#define XENUSB_PIPE_DEV_MASK	0x0000007f
+#define XENUSB_PIPE_DEV_SHIFT	8
+#define XENUSB_PIPE_EP_MASK	0x0000000f
+#define XENUSB_PIPE_EP_SHIFT	15
+#define XENUSB_PIPE_TYPE_MASK	0x00000003
+#define XENUSB_PIPE_TYPE_SHIFT	30
+#define XENUSB_PIPE_TYPE_ISOC	0
+#define XENUSB_PIPE_TYPE_INT	1
+#define XENUSB_PIPE_TYPE_CTRL	2
+#define XENUSB_PIPE_TYPE_BULK	3
+
+#define xenusb_pipeportnum(pipe)		((pipe) & XENUSB_PIPE_PORT_MASK)
+#define xenusb_setportnum_pipe(pipe, portnum)	((pipe) | (portnum))
+
+#define xenusb_pipeunlink(pipe)			((pipe) & XENUSB_PIPE_UNLINK)
+#define xenusb_pipesubmit(pipe)			(!xenusb_pipeunlink(pipe))
+#define xenusb_setunlink_pipe(pipe)		((pipe) | XENUSB_PIPE_UNLINK)
+
+#define xenusb_pipein(pipe)			((pipe) & XENUSB_PIPE_DIR)
+#define xenusb_pipeout(pipe)			(!xenusb_pipein(pipe))
+
+#define xenusb_pipedevice(pipe)			\
+		(((pipe) >> XENUSB_PIPE_DEV_SHIFT) & XENUSB_PIPE_DEV_MASK)
+
+#define xenusb_pipeendpoint(pipe)		\
+		(((pipe) >> XENUSB_PIPE_EP_SHIFT) & XENUSB_PIPE_EP_MASK)
+
+#define xenusb_pipetype(pipe)			\
+		(((pipe) >> XENUSB_PIPE_TYPE_SHIFT) & XENUSB_PIPE_TYPE_MASK)
+#define xenusb_pipeisoc(pipe)	(xenusb_pipetype(pipe) == XENUSB_PIPE_TYPE_ISOC)
+#define xenusb_pipeint(pipe)	(xenusb_pipetype(pipe) == XENUSB_PIPE_TYPE_INT)
+#define xenusb_pipectrl(pipe)	(xenusb_pipetype(pipe) == XENUSB_PIPE_TYPE_CTRL)
+#define xenusb_pipebulk(pipe)	(xenusb_pipetype(pipe) == XENUSB_PIPE_TYPE_BULK)
+
+#define XENUSB_MAX_SEGMENTS_PER_REQUEST (16)
+#define XENUSB_MAX_PORTNR	31
+
+/*
+ * RING for transferring urbs.
+ */
+struct xenusb_request_segment {
+	grant_ref_t gref;
+	__u16 offset;
+	__u16 length;
+};
+
+struct xenusb_urb_request {
+	__u16 id;			/* request id */
+	__u16 nr_buffer_segs;	/* # of urb->transfer_buffer segments */
+
+	/* basic urb parameter */
+	__u32 pipe;
+	__u16 transfer_flags;
+	__u16 buffer_length;
+	union {
+		__u8 ctrl[8];			/* pipe type control */
+						/* setup packet */
+
+		struct {
+			__u16 interval;		/* max (1024*8) in usb core */
+			__u16 start_frame;		/* start frame */
+			__u16 number_of_packets;	/* # of ISO packets */
+			__u16 nr_frame_desc_segs;
+					/* # of iso_frame_desc segments */
+		} isoc;				/* pipe type isochronous */
+
+		struct {
+			__u16 interval;		/* max (1024*8) in usb core */
+			__u16 pad[3];
+		} intr;				/* pipe type interrupt */
+
+		struct {
+			__u16 unlink_id;	/* unlink request id */
+			__u16 pad[3];
+		} unlink;			/* pipe unlink */
+
+	} u;
+
+	/* urb data segments */
+	struct xenusb_request_segment seg[XENUSB_MAX_SEGMENTS_PER_REQUEST];
+};
+
+struct xenusb_urb_response {
+	__u16 id;		/* request id */
+	__u16 start_frame;	/* start frame (ISO) */
+	__s32 status;		/* status (non-ISO) */
+	__s32 actual_length;	/* actual transfer length */
+	__s32 error_count;	/* number of ISO errors */
+};
+
+DEFINE_RING_TYPES(xenusb_urb, struct xenusb_urb_request,
+		  struct xenusb_urb_response);
+#define XENUSB_URB_RING_SIZE __CONST_RING_SIZE(xenusb_urb, PAGE_SIZE)
+
+/*
+ * RING for notifying connect/disconnect events to frontend
+ */
+struct xenusb_conn_request {
+	__u16 id;
+};
+
+struct xenusb_conn_response {
+	__u16 id;		/* request id */
+	__u8 portnum;		/* port number */
+	__u8 speed;		/* usb device speed */
+#define XENUSB_SPEED_NONE	0
+#define XENUSB_SPEED_LOW	1
+#define XENUSB_SPEED_FULL	2
+#define XENUSB_SPEED_HIGH	3
+};
+
+DEFINE_RING_TYPES(xenusb_conn, struct xenusb_conn_request,
+		  struct xenusb_conn_response);
+#define XENUSB_CONN_RING_SIZE __CONST_RING_SIZE(xenusb_conn, PAGE_SIZE)
+
+#endif /* __XEN_PUBLIC_IO_USBIF_H__ */
Signature · 4 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
author maintainer
#13 lore raw

PATCH v4 2/3 usb: Introduce Xen pvUSB frontend (xen hcd)

In reply to Juergen Gross

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

---
 drivers/usb/host/Kconfig   |   11 +
 drivers/usb/host/Makefile  |    1 +
 drivers/usb/host/xen-hcd.c | 1594 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 1606 insertions(+)
 create mode 100644 drivers/usb/host/xen-hcd.c
drivers/usb/host/Kconfig +11 -0
index 197a6a3..3361b4b 100644
@@ -788,3 +788,14 @@ config USB_HCD_TEST_MODE
 	  This option is of interest only to developers who need to validate
 	  their USB hardware designs.  It is not needed for normal use.  If
 	  unsure, say N.
+
+config USB_XEN_HCD
+	tristate "Xen usb virtual host driver"
+	depends on XEN
+	select XEN_XENBUS_FRONTEND
+	help
+	  The Xen usb virtual host driver serves as a frontend driver enabling
+	  a Xen guest system to access USB Devices passed through to the guest
+	  by the Xen host (usually Dom0).
+	  Only needed if the kernel is running in a Xen guest and generic
+	  access to a USB device is needed.
drivers/usb/host/Makefile +1 -0
index 65b0b6a..3779696 100644
@@ -75,3 +75,4 @@ obj-$(CONFIG_USB_HCD_SSB)	+= ssb-hcd.o
 obj-$(CONFIG_USB_FUSBH200_HCD)	+= fusbh200-hcd.o
 obj-$(CONFIG_USB_FOTG210_HCD)	+= fotg210-hcd.o
 obj-$(CONFIG_USB_MAX3421_HCD)	+= max3421-hcd.o
+obj-$(CONFIG_USB_XEN_HCD)	+= xen-hcd.o
drivers/usb/host/xen-hcd.c new file +1594 -0

1,594 lines not on this page · raw message

Signature · 4 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
author maintainer
#15 lore raw

PATCH v4 3/3 xen: add Xen pvUSB maintainer

In reply to Juergen Gross

Add myself as maintainer for the Xen pvUSB stuff.

---
 MAINTAINERS | 8 ++++++++
 1 file changed, 8 insertions(+)
MAINTAINERS +8 -0
index d8afd29..8ef4e83 100644
@@ -10965,6 +10965,14 @@ F:	drivers/scsi/xen-scsifront.c
 F:	drivers/xen/xen-scsiback.c
 F:	include/xen/interface/io/vscsiif.h
 
+XEN PVUSB DRIVER
+M:	Juergen Gross <jgross-IBi9RG/[email protected]>
+L:	[email protected] (moderated for non-subscribers)
+L:	[email protected]
+S:	Supported
+F:	divers/usb/host/xen*
+F:	include/xen/interface/io/usbif.h
+
 XEN SWIOTLB SUBSYSTEM
 M:	Konrad Rzeszutek Wilk <[email protected]>
 L:	[email protected] (moderated for non-subscribers)
Signature · 4 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
author maintainer
#16 lore raw
In reply to Juergen Gross

Ping?

Quoted 39 lines · Juergen Gross

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

Quoted 9 lines
  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

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#2 lore raw

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

In reply to Juergen Gross
Quoted 6 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Quoted 6 lines

Changes are:
- adapt to Linux style guide

---
 include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers / maintainers agree with this interface and code? I need their sign-off before I can accept such a thing.

thanks,

greg k-h

author maintainer
#3 lore raw

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

Quoted 10 lines · Greg KH
Quoted 9 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Changes are:
- adapt to Linux style guide

Quoted 6 lines
Quoted 3 lines
---
  include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers /

The interface definition is living in the Xen git repository for several years now:

git://xenbits.xen.org/xen.git -> xen/include/public/io/usbif.h

It is used e.g. in SUSE's xen kernel since 2.6.18.

The differences between the Xen version and the one I've posted here are only style and name space related.

Quoted 2 lines

maintainers agree with this interface and code? I need their sign-off before I can accept such a thing.

Sure.

David, Konrad, Boris, could one of you please comment on the patches?

Juergen

maintainer
#4 lore raw

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

Quoted 15 lines · Juergen Gross
Quoted 14 lines · Greg KH
Quoted 12 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Changes are:
- adapt to Linux style guide

---
 include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++
Quoted 7 lines
Quoted 2 lines

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers /

The interface definition is living in the Xen git repository for several years now:

git://xenbits.xen.org/xen.git -> xen/include/public/io/usbif.h

That's header file, not a document describing the api here.

Quoted 1 line

It is used e.g. in SUSE's xen kernel since 2.6.18.

I am very aware of the amount of Xen crap in SuSE's kernel, don't use that as an excuse for me to merge it to mainline :)

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

author maintainer
#5 lore raw

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

Quoted 19 lines · Greg KH
Quoted 18 lines · Juergen Gross
Quoted 16 lines · Greg KH
Quoted 6 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Quoted 6 lines

Changes are:
- adapt to Linux style guide

---
  include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers /

Quoted 6 lines
Quoted 4 lines

The interface definition is living in the Xen git repository for several years now:

git://xenbits.xen.org/xen.git -> xen/include/public/io/usbif.h

That's header file, not a document describing the api here.

I suppose you want to tell me I should add something like:

Documentation/DocBook/usb/API-struct-urb.html

I can do this, of course.

Quoted 4 lines
Quoted 1 line

It is used e.g. in SUSE's xen kernel since 2.6.18.

I am very aware of the amount of Xen crap in SuSE's kernel, don't use that as an excuse for me to merge it to mainline :)

:-)

Wasn't meant as an excuse, just a hint why the interface can't be the same as for usbip. We have to ensure compatibility with those kernels and possibly other operating systems (BSD?, Windows?) which already might be using pvUSB with a Dom0 based on the SUSE xen kernel.

Juergen

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw

Re: [Xen-devel] [Patch V4 1/3] usb: Add Xen pvUSB protocol description

Quoted 23 lines · Juergen Gross
Quoted 22 lines · Greg KH
Quoted 21 lines · Juergen Gross
Quoted 19 lines · Greg KH
Quoted 8 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in
a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Quoted 7 lines

Changes are:
- adapt to Linux style guide

---
  include/xen/interface/io/usbif.h | 252

+++++++++++++++++++++++++++++++++++++++

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers /

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

The interface definition is living in the Xen git repository for several years now:

git://xenbits.xen.org/xen.git -> xen/include/public/io/usbif.h

That's header file, not a document describing the api here.

This is the format that Xen uses to document the interface to frontend drivers. This is also the style used for netfront, blkfront etc.

The documentation in the header could be expanded if necessary but...

Quoted 3 lines

I suppose you want to tell me I should add something like:

Documentation/DocBook/usb/API-struct-urb.html

... we certainly don't want a second location for the interface description in the Linux source.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v4 1/3
#12 lore raw

Re: [Xen-devel] [Patch V4 1/3] usb: Add Xen pvUSB protocol description

In reply to Juergen Gross
Quoted 8 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Changes are:
- adapt to Linux style guide

David
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#14 lore raw

Re: [Patch V4 2/3] usb: Introduce Xen pvUSB frontend (xen hcd)

In reply to Juergen Gross
Quoted 6 lines · Juergen Gross

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.

For the Xen-related parts:

David
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#7 lore raw

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

In reply to Juergen Gross
Quoted 23 lines · Juergen Gross
Quoted 22 lines · Greg KH
Quoted 21 lines · Juergen Gross
Quoted 10 lines · Greg KH
Quoted 9 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Changes are:
- adapt to Linux style guide

Quoted 6 lines
Quoted 3 lines
---
 include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers /

The interface definition is living in the Xen git repository for several years now:

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

git://xenbits.xen.org/xen.git -> xen/include/public/io/usbif.h

That's header file, not a document describing the api here.

I suppose you want to tell me I should add something like:

Documentation/DocBook/usb/API-struct-urb.html

Somewhere that people can refer to that describes this public-facing API that "must not ever be broken or changed". If you want to put it in a documentation file, or a .h file, I don't care.

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

It is used e.g. in SUSE's xen kernel since 2.6.18.

I am very aware of the amount of Xen crap in SuSE's kernel, don't use that as an excuse for me to merge it to mainline :)

:-)

Wasn't meant as an excuse, just a hint why the interface can't be the same as for usbip. We have to ensure compatibility with those kernels

This shouldn't be a kernel/kernel compability issue, as the api talks between Xen and the OS, not between different OSs, right?

Quoted 2 lines

and possibly other operating systems (BSD?, Windows?) which already might be using pvUSB with a Dom0 based on the SUSE xen kernel.

Are there other operating system drivers today that use this API? Is this an API in the Xen core today that we have to support?

Some more background / descriptions would be nice to have.

thanks,

greg k-h

#8 lore raw

Re: [Xen-devel] [Patch V4 1/3] usb: Add Xen pvUSB protocol description

Quoted 18 lines · Greg KH

Somewhere that people can refer to that describes this public-facing API that "must not ever be broken or changed". If you want to put it in a documentation file, or a .h file, I don't care.

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

It is used e.g. in SUSE's xen kernel since 2.6.18.

I am very aware of the amount of Xen crap in SuSE's kernel, don't use that as an excuse for me to merge it to mainline :)

:-)

Wasn't meant as an excuse, just a hint why the interface can't be the same as for usbip. We have to ensure compatibility with those kernels

This shouldn't be a kernel/kernel compability issue, as the api talks between Xen and the OS, not between different OSs, right?

Quoted 8 lines
Quoted 2 lines

and possibly other operating systems (BSD?, Windows?) which already might be using pvUSB with a Dom0 based on the SUSE xen kernel.

Are there other operating system drivers today that use this API? Is this an API in the Xen core today that we have to support?

Some more background / descriptions would be nice to have.

For example Xen "GPLPV" drivers for Windows do have PVUSB frontend driver..

-- Pasi

Quoted 4 lines

thanks,

greg k-h

author maintainer
#9 lore raw

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

In reply to Greg KH
Quoted 41 lines · Greg KH
Quoted 23 lines · Juergen Gross
Quoted 22 lines · Greg KH
Quoted 21 lines · Juergen Gross
Quoted 10 lines · Greg KH
Quoted 9 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Changes are:
- adapt to Linux style guide

Quoted 6 lines
Quoted 3 lines
---
  include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers /

The interface definition is living in the Xen git repository for several years now:

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

git://xenbits.xen.org/xen.git -> xen/include/public/io/usbif.h

That's header file, not a document describing the api here.

I suppose you want to tell me I should add something like:

Documentation/DocBook/usb/API-struct-urb.html

Somewhere that people can refer to that describes this public-facing API that "must not ever be broken or changed". If you want to put it in a documentation file, or a .h file, I don't care.

Quoted 5 lines
Quoted 4 lines
Quoted 1 line

It is used e.g. in SUSE's xen kernel since 2.6.18.

I am very aware of the amount of Xen crap in SuSE's kernel, don't use that as an excuse for me to merge it to mainline :)

Quoted 7 lines
Quoted 4 lines

:-)

Wasn't meant as an excuse, just a hint why the interface can't be the same as for usbip. We have to ensure compatibility with those kernels

This shouldn't be a kernel/kernel compability issue, as the api talks between Xen and the OS, not between different OSs, right?

Depends on where the backend is living. It's the backend the frontend is talking to.

There is a backend in SUSE's kernels up to SLE12. So compatibility is to be maintained to those kernels.

Looks as if in future there will be one in qemu.

Quoted 5 lines
Quoted 2 lines

and possibly other operating systems (BSD?, Windows?) which already might be using pvUSB with a Dom0 based on the SUSE xen kernel.

Are there other operating system drivers today that use this API? Is this an API in the Xen core today that we have to support?

Yes.

Quoted 1 line

Some more background / descriptions would be nice to have.

I guess a documentation file giving a brief explanation about the interfaces of Xen wouldn't be a bad idea. This could avoid discussions like this.

It shouldn't define each interface, but the classes of interfaces which are existing (between kernel and hypervisor, frontends and backends) and the stability requirements. Headers like the one we are discussing here could then refer to this document.

Juergen

maintainer
#10 lore raw

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

Quoted 47 lines · Juergen Gross
Quoted 46 lines · Greg KH
Quoted 23 lines · Juergen Gross
Quoted 22 lines · Greg KH
Quoted 21 lines · Juergen Gross
Quoted 10 lines · Greg KH
Quoted 9 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Changes are:
- adapt to Linux style guide

Quoted 6 lines
Quoted 3 lines
---
 include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers /

The interface definition is living in the Xen git repository for several years now:

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

git://xenbits.xen.org/xen.git -> xen/include/public/io/usbif.h

That's header file, not a document describing the api here.

I suppose you want to tell me I should add something like:

Documentation/DocBook/usb/API-struct-urb.html

Somewhere that people can refer to that describes this public-facing API that "must not ever be broken or changed". If you want to put it in a documentation file, or a .h file, I don't care.

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

It is used e.g. in SUSE's xen kernel since 2.6.18.

I am very aware of the amount of Xen crap in SuSE's kernel, don't use that as an excuse for me to merge it to mainline :)

:-)

Wasn't meant as an excuse, just a hint why the interface can't be the same as for usbip. We have to ensure compatibility with those kernels

Quoted 8 lines
Quoted 2 lines

This shouldn't be a kernel/kernel compability issue, as the api talks between Xen and the OS, not between different OSs, right?

Depends on where the backend is living. It's the backend the frontend is talking to.

There is a backend in SUSE's kernels up to SLE12. So compatibility is to be maintained to those kernels.

Note, just because a distro merged an out of tree patch, does not mean that mainline has to accept the same api as-is :)

Quoted 1 line

Looks as if in future there will be one in qemu.

So there's only one other backend talking to this, in one distro?

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

and possibly other operating systems (BSD?, Windows?) which already might be using pvUSB with a Dom0 based on the SUSE xen kernel.

Are there other operating system drivers today that use this API? Is this an API in the Xen core today that we have to support?

Yes.

Yes to both? Which other operating systems have such a driver?

Quoted 5 lines
Quoted 1 line

Some more background / descriptions would be nice to have.

I guess a documentation file giving a brief explanation about the interfaces of Xen wouldn't be a bad idea. This could avoid discussions like this.

Yes it would.

Quoted 4 lines

It shouldn't define each interface, but the classes of interfaces which are existing (between kernel and hypervisor, frontends and backends) and the stability requirements. Headers like the one we are discussing here could then refer to this document.

Why shouldn't the protocol be documented?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw

Re: [Patch V4 1/3] usb: Add Xen pvUSB protocol description

Quoted 57 lines · Greg KH
Quoted 47 lines · Juergen Gross
Quoted 46 lines · Greg KH
Quoted 23 lines · Juergen Gross
Quoted 22 lines · Greg KH
Quoted 21 lines · Juergen Gross
Quoted 10 lines · Greg KH
Quoted 9 lines · Juergen Gross

Add the definition of pvUSB protocol used between the pvUSB frontend in a Xen domU and the pvUSB backend in a Xen driver domain (usually Dom0).

This header was originally provided by Fujitsu for Xen based on Linux 2.6.18.

Changes are:
- adapt to Linux style guide

Quoted 6 lines
Quoted 3 lines
---
 include/xen/interface/io/usbif.h | 252 +++++++++++++++++++++++++++++++++++++++

Why is this a different interface than the existing ones we have today (i.e. usbip?) Where is it documented? Do the Xen developers /

The interface definition is living in the Xen git repository for several years now:

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

git://xenbits.xen.org/xen.git -> xen/include/public/io/usbif.h

That's header file, not a document describing the api here.

I suppose you want to tell me I should add something like:

Documentation/DocBook/usb/API-struct-urb.html

Somewhere that people can refer to that describes this public-facing API that "must not ever be broken or changed". If you want to put it in a documentation file, or a .h file, I don't care.

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

It is used e.g. in SUSE's xen kernel since 2.6.18.

I am very aware of the amount of Xen crap in SuSE's kernel, don't use that as an excuse for me to merge it to mainline :)

:-)

Wasn't meant as an excuse, just a hint why the interface can't be the same as for usbip. We have to ensure compatibility with those kernels

Quoted 8 lines
Quoted 2 lines

This shouldn't be a kernel/kernel compability issue, as the api talks between Xen and the OS, not between different OSs, right?

Depends on where the backend is living. It's the backend the frontend is talking to.

There is a backend in SUSE's kernels up to SLE12. So compatibility is to be maintained to those kernels.

Quoted 6 lines

Note, just because a distro merged an out of tree patch, does not mean that mainline has to accept the same api as-is :)

Quoted 1 line

Looks as if in future there will be one in qemu.

So there's only one other backend talking to this, in one distro?

No. All distros which use QEMU will have it.

Quoted 10 lines
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

and possibly other operating systems (BSD?, Windows?) which already might be using pvUSB with a Dom0 based on the SUSE xen kernel.

Are there other operating system drivers today that use this API? Is this an API in the Xen core today that we have to support?

Yes.

Yes to both? Which other operating systems have such a driver?

Windows XP, Windows 7, Windows 8, and so on using one of the Xen PV drivers.

The old RHEL5 PV kernels, SLES kernels, and NetBSD [edit: Only the header file, odd]

Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

Some more background / descriptions would be nice to have.

I guess a documentation file giving a brief explanation about the interfaces of Xen wouldn't be a bad idea. This could avoid discussions like this.

Quoted 8 lines

Yes it would.

Quoted 4 lines

It shouldn't define each interface, but the classes of interfaces which are existing (between kernel and hypervisor, frontends and backends) and the stability requirements. Headers like the one we are discussing here could then refer to this document.

Why shouldn't the protocol be documented?

I presume you mean the wire spec? Like what is in the memory and exchanged between the guests? Classes sounds like an C++ thing :-)

There is also the XenBus which does the negotiation of parameters (like the VirtioPCI spec) - that could be expanded to enumerate the USB drivers ones ?

Quoted 4 lines

thanks,

greg k-h

#17 lore raw
In reply to Juergen Gross

Hi Juergen, All.

I would like to apply PVUSB drivers for using in our platform while PVUSB stuff doesn't reach upstream.

Unfortunately, I couldn't find more recent version of "kernel based" backend driver in mailing list.
I have found it in v0 only.

[Xen-devel] [PATCH 0/4] xen, usb: support pvUSB drivers
<http://lists.xenproject.org/archives/html/xen-devel/2015-02/msg03245.html>

Can I use this frontend driver (v4) together with kernel based backend driver (v0)?
Are they fully compatible with each other?

Thank you.

Quoted 61 lines · Juergen Gross

Ping?

Quoted 46 lines · Juergen Gross

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(+)
Quoted 4 lines

create mode 100644 drivers/usb/host/xen-hcd.c create mode 100644 include/xen/interface/io/usbif.h

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Signature · 4 lines
Oleksandr Tyshchenko | Embedded Dev
GlobalLogic
www.globallogic.com
<http://www.globallogic.com/>

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

author maintainer
#18 lore raw

Hi Oleksandr,

Quoted 9 lines · Oleksandr Tyshchenko

Hi Juergen, All.

I would like to apply PVUSB drivers for using in our platform while PVUSB stuff doesn't reach upstream.

Unfortunately, I couldn't find more recent version of "kernel based" backend driver in mailing list.
I have found it in v0 only.

Quoted 6 lines

[Xen-devel] [PATCH 0/4] xen, usb: support pvUSB drivers
<http://lists.xenproject.org/archives/html/xen-devel/2015-02/msg03245.html>

Can I use this frontend driver (v4) together with kernel based backend driver (v0)?
Are they fully compatible with each other?

I didn't send any further version as it was regarded to be better to provide such a backend via qemu (patches are being reviewed right now, I sent them last week).

Regarding compatibility: should work. I've tested all possible combinations of frontends/backends with both my upstream variants you are referring to and the SUSE SLE variants which are kernel-xen specific and SUSE-only.

You should be aware, however, that there might be some bugs in the v0 backend driver. It was tested by me only.

Quoted 1 line

Thank you.

You're welcome. :-)

Juergen

Quoted 67 lines

On Mon, Jul 20, 2015 at 8:13 AM, Juergen Gross <jgross-IBi9RG/[email protected] <mailto:jgross-IBi9RG/[email protected]>> wrote:

Ping?

On 06/23/2015 08:53 AM, Juergen Gross wrote:

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

Quoted 14 lines

_______________________________________________
Xen-devel mailing list
[email protected] <mailto:[email protected]>
http://lists.xen.org/xen-devel

Signature · 4 lines
Oleksandr Tyshchenko | Embedded Dev
GlobalLogic
www.globallogic.com <http://www.globallogic.com/>
<http://www.globallogic.com/>

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#19 lore raw
Quoted 1 line · Juergen Gross

Hi Oleksandr,

Hi Juergen.
Thank you for the quick answer.

Quoted 15 lines · Oleksandr Tyshchenko
Quoted 11 lines

Hi Juergen, All.

I would like to apply PVUSB drivers for using in our platform while PVUSB stuff doesn't reach upstream.

Unfortunately, I couldn't find more recent version of "kernel based" backend driver in mailing list.
I have found it in v0 only.

[Xen-devel] [PATCH 0/4] xen, usb: support pvUSB drivers <

http://lists.xenproject.org/archives/html/xen-devel/2015-02/msg03245.html>

Quoted 1 line
Quoted 8 lines
Quoted 3 lines

Can I use this frontend driver (v4) together with kernel based backend driver (v0)?
Are they fully compatible with each other?

I didn't send any further version as it was regarded to be better to provide such a backend via qemu (patches are being reviewed right now, I sent them last week).

I got it. I have found patch series for "qemu based" backed driver but our target is a kernel based backend driver like blkback or netback.

Quoted 8 lines

Regarding compatibility: should work. I've tested all possible combinations of frontends/backends with both my upstream variants you are referring to and the SUSE SLE variants which are kernel-xen specific and SUSE-only.

You should be aware, however, that there might be some bugs in the v0 backend driver. It was tested by me only.

OK, I am going to test it. I will let you know if something doesn't work.

Quoted 95 lines
Quoted 2 lines

Thank you.

You're welcome. :-)

Juergen

Quoted 13 lines

On Mon, Jul 20, 2015 at 8:13 AM, Juergen Gross <[email protected] <mailto:[email protected]>> wrote:

Ping?

On 06/23/2015 08:53 AM, Juergen Gross wrote:

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

Quoted 5 lines

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,

Quoted 9 lines

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,

Quoted 1 line

2.0 and 3.0). The pvUSB backend for these tests was a SUSE SLES

Dom0

Quoted 10 lines

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

Quoted 43 lines

- 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

_______________________________________________
Xen-devel mailing list
[email protected] <mailto:[email protected]>
http://lists.xen.org/xen-devel

--

Oleksandr Tyshchenko | Embedded Dev
GlobalLogic
www.globallogic.com <http://www.globallogic.com/>
<http://www.globallogic.com/>

Signature · 4 lines
Oleksandr Tyshchenko | Embedded Dev
GlobalLogic
www.globallogic.com
<http://www.globallogic.com/>

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel