From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Cao Subject: Re: [PATCH v0 RFC 0/2] xl/libxl support for PVUSB Date: Sun, 16 Nov 2014 10:36:28 +0800 Message-ID: References: <1407702234-22309-1-git-send-email-caobosimon@gmail.com> <5460E9D80200006600078038@soto.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6960418408066348711==" Return-path: In-Reply-To: <5460E9D80200006600078038@soto.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Chun Yan Liu Cc: George Dunlap , Ian Jackson , "xen-devel@lists.xensource.com" , Ian Campbell , Lars Kurth List-Id: xen-devel@lists.xenproject.org --===============6960418408066348711== Content-Type: multipart/alternative; boundary=001a11c35664a639860507f0ba96 --001a11c35664a639860507f0ba96 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I was working on the work. But I was busing preparing some job interviews in the last three months, sorry for this long delay. I will update my progress in a few days. Thanks! Bo Cao On Mon, Nov 10, 2014 at 4:37 PM, Chun Yan Liu wrote: > Is there any progress on this work? I didn't see new version after this. > Anyone knows the status? > > Thanks, > Chunyan > > >>> On 8/11/2014 at 04:23 AM, in message > <1407702234-22309-1-git-send-email-caobosimon@gmail.com>, Bo Cao > wrote: > > Finally I have a workable version xl/libxl support for PVUSB. Most of > > its commands work property now, but there are still some probelm to be > > solved. > > Please take a loot and give me some advices. > > > > =3D=3D What have been implemented ? =3D=3D > > I have implemented libxl functions for PVUSB in libxl_usb.c. It mainly > > consists of two part: > > usbctrl_add/remove/list and usb_add/remove/list in which usbctrl denote > usb > > controller in which > > usd device can be plugged in. I don't use "ao_dev" in > > libxl_deivce_usbctrl_add since we don't need to > > execute hotplug script for usbctrl and without "ao_dev", adding default > > usbctrl for usb device > > would be easier. > > > > For the cammands to manipulate usb device such as "xl usb-attach" and "= xl > > usb-detach", this patch now only > > support to specify usb devices by their interface in sysfs. Using this > > interface, we can read usb device > > information through sysfs and bind/unbind usb device. (The support for > > mapping the "lsusb" bus:addr to the > > sysfs usb interface will come later). > > > > =3D=3D What needs to do next ? =3D=3D > > There are two main problems to be solved. > > > > 1. PVUSB Options in VM Guest's Configuration File > > The interface in VM Guest's configuration file to add usb device is= : > > "usb=3D[interface=3D"1-1"]". > > But the problem is now is that after the default usbctrl is added, the > state > > of usbctrl is "2", e,g, "XenbusStateInitWait", > > waiting for xen-usbfront to connect. The xen-usbfront in VM Guest isn't > > loaded. Therefore, "sysfs_intf_write" > > will report error. Does anyone have any clue how to solve this? > > > > 2. sysfs_intf_write > > In the process of "xl usb-attach domid intf=3D1-1", after writing > "1-1" to > > Xenstore entry, we need to > > bind the controller of this usb device to usbback driver so that it can > be > > used by VM Guest. For exampele, > > for usb device "1-1", it's controller interface maybe "1-1:1.0", and we > > write this value to "/sys/bus/usb/driver/usbback/bind". > > But for some devices, they have two controllers, for example "1-1:1.0" > and > > "1-1:1.1". I think this means it has two functions, > > such as usbhid and usb-storage. So in this case, we bind the two > controller > > to usbback? > > > > =3D=3D=3D=3D=3D=3D=3D=3D > > There maybe some errors or bugs in the codes. Feel free to tell me. > > > > Cheers, > > > > - Simon > > > > --- > > CC: George Dunlap > > CC: Ian Jackson > > CC: Ian Campbell > > CC: Pasi K=C3=A4rkk=C3=A4inen > > CC: Lars Kurth > > > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xen.org > > http://lists.xen.org/xen-devel > > > > --001a11c35664a639860507f0ba96 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I was working on the work. But= I was busing preparing some job interviews in the last three months, sorry= for this long delay. I will update my progress in a few days.

Than= ks!

Bo Cao

On Mon, Nov 10, 2014 at 4:37 PM, Chun Yan Liu <cyliu@suse.co= m> wrote:
Is there any prog= ress on this work? I didn't see new version after this.
Anyone knows the status?

Thanks,
Chunyan

>>> On 8/11/2014 at 04:23 AM, in message
<1407702234-22309-1-git-send-email-caobosimon@gmail.com>, Bo Cao
<caobosim= on@gmail.com> wrote:
> Finally I have a workable version xl/libxl support for PVUSB. Most of<= br> > its commands work property now, but there are still some probelm to be=
> solved.
> Please take a loot and give me some advices.
>
> =3D=3D What have been implemented ? =3D=3D
> I have implemented libxl functions for PVUSB in libxl_usb.c. It mainly=
> consists of two part:
> usbctrl_add/remove/list and usb_add/remove/list in which usbctrl denot= e usb
> controller in which
> usd device can be plugged in. I don't use "ao_dev" in > libxl_deivce_usbctrl_add since we don't need to
> execute hotplug script for usbctrl and without "ao_dev", add= ing default
> usbctrl for usb device
> would be easier.
>
> For the cammands to manipulate usb device such as "xl usb-attach&= quot; and "xl
> usb-detach", this patch now only
> support to specify usb devices by their interface in sysfs. Using this=
> interface, we can read usb device
> information through sysfs and bind/unbind usb device. (The support for=
> mapping the "lsusb" bus:addr to the
> sysfs usb interface will come later).
>
> =3D=3D What needs to do next ? =3D=3D
> There are two main problems to be solved.
>
> 1.=C2=A0 PVUSB Options in VM Guest's Configuration File
>=C2=A0 =C2=A0 =C2=A0The interface in VM Guest's configuration file = to add usb device is:
> "usb=3D[interface=3D"1-1"]".
> But the problem is now is that after the default usbctrl is added, the= state
> of usbctrl is "2", e,g, "XenbusStateInitWait",
> waiting for xen-usbfront to connect. The xen-usbfront in VM Guest isn&= #39;t
> loaded. Therefore, "sysfs_intf_write"
> will report error. Does anyone have any clue how to solve this?
>
> 2. sysfs_intf_write
>=C2=A0 =C2=A0 =C2=A0In the process of "xl usb-attach domid intf=3D= 1-1", after writing "1-1" to
> Xenstore entry, we need to
> bind the controller of this usb device to usbback driver so that it ca= n be
> used by VM Guest. For exampele,
> for usb device "1-1", it's controller interface maybe &q= uot;1-1:1.0", and we
> write this value to "/sys/bus/usb/driver/usbback/bind".
> But for some devices, they have two controllers, for example "1-1= :1.0" and
> "1-1:1.1". I think this means it has two functions,
> such as usbhid and usb-storage. So in this case, we bind the two contr= oller
> to usbback?
>
> =3D=3D=3D=3D=3D=3D=3D=3D
> There maybe some errors or bugs in the codes. Feel free to tell me. >
> Cheers,
>
> - Simon
>
> ---
> CC: George Dunlap <g= eorge.dunlap@eu.citrix.com>
> CC: Ian Jackson <ian.jack= son@citrix.com>
> CC: Ian Campbell <ian.ca= mpbell@citrix.com>
> CC: Pasi K=C3=A4rkk=C3=A4inen <pasi= k@iki.fi>
> CC: Lars Kurth <lars.kurth= @citrix.com>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org=
> http://li= sts.xen.org/xen-devel
>


--001a11c35664a639860507f0ba96-- --===============6960418408066348711== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============6960418408066348711==--