All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug] PVUSB, Ubuntu 12.04, Xen 4.1.2
@ 2013-05-29 13:11 Erwan PILLET
  2013-05-29 13:25 ` George Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Erwan PILLET @ 2013-05-29 13:11 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 3277 bytes --]

Hi everyone,

I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2 .
I wanted to use pvusb which I understand was functional on this version to
pass an USB hard drive to my DomU, but I only manage to get this error
trying to attach the device to a domain.

It may also be worth mentionning that "xm usb-hc-destroy mydomu 0" doesn't
have any effect, so it doesn't give back any error (I get one if I try on
an unregistered devId) but don't remove the host controller.

So should pvusb be fonctionnal on this version of xen/xm ? If yes, any help
would be highly appreciated.

Thanks,

Erwan

root@xenprob:/home/xenprob# xm usb-list-assignable
2-1.3        : ID 154b:005b PNY Technologies USB 2.0 FD
2-1.6        : ID 413c:2107 DELL Dell USB Entry Keyboard
2-1.8        : ID 046d:c077 Logitech USB Optical Mous
root@xenprob:/home/xenprob# xm usb-list mydomu
Idx BE  state usb-ver  BE-path
0   0   1     USB2.0  /local/domain/0/backend/vusb/2/0
port 1:
port 2:


root@xenprob:/home/xenprob# xm usb-attach mydomu 0 1 2-1.3
Unexpected error: <class 'xen.util.vusb_util.UsbDeviceParseError'>

Please report to xen-devel@lists.xensource.com
Traceback (most recent call last):
  File "/usr/lib/xen-4.1/bin/xm", line 8, in <module>
    main.main(sys.argv)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 3983, in
main
    _, rc = _run_cmd(cmd, cmd_name, args)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 4007, in
_run_cmd
    return True, cmd(args)
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/xm/main.py", line 3046, in
xm_usb_attach
    if vusb_util.bus_is_assigned(bus):
  File "/usr/lib/xen-4.1/bin/../lib/python/xen/util/vusb_util.py", line
275, in bus_is_assigned
    raise UsbDeviceParseError("Can't get assignment status: (%s)." % bus)
xen.util.vusb_util.UsbDeviceParseError: vusb: Error parsing USB device
info: Can't get assignment status: (2-1.3).


root@xenprob:/home/xenprob# xm info
host                   : xenprob
release                : 3.2.0-44-generic
version                : #69-Ubuntu SMP Thu May 16 17:35:01 UTC 2013
machine                : x86_64
nr_cpus                : 12
nr_nodes               : 1
cores_per_socket       : 6
threads_per_core       : 2
cpu_mhz                : 1995
hw_caps                :
bfebfbff:2c100800:00000000:00003f40:13bee3ff:00000000:00000001:00000000
virt_caps              : hvm
total_memory           : 16309
free_memory            : 458
free_cpus              : 0
xen_major              : 4
xen_minor              : 1
xen_extra              : .2
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : unavailable
xen_commandline        : placeholder
cc_compiler            : gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
cc_compile_by          : stefan.bader
cc_compile_domain      : canonical.com
cc_compile_date        : Mon Apr 29 19:04:55 UTC 2013
xend_config_format     : 4



-- 
Erwan PILLET
Élève ingénieur Telecom Bretagne
+33 6 52 45 44 56
erwan.pillet@telecom-bretagne.eu

[-- Attachment #1.2: Type: text/html, Size: 4430 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bug] PVUSB, Ubuntu 12.04, Xen 4.1.2
  2013-05-29 13:11 [Bug] PVUSB, Ubuntu 12.04, Xen 4.1.2 Erwan PILLET
@ 2013-05-29 13:25 ` George Dunlap
  2013-05-29 15:08   ` Erwan PILLET
  0 siblings, 1 reply; 5+ messages in thread
From: George Dunlap @ 2013-05-29 13:25 UTC (permalink / raw)
  To: Erwan PILLET; +Cc: xen-devel

On Wed, May 29, 2013 at 2:11 PM, Erwan PILLET
<erwan.pillet@telecom-bretagne.eu> wrote:
> Hi everyone,
>
> I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2 .
> I wanted to use pvusb which I understand was functional on this version to
> pass an USB hard drive to my DomU, but I only manage to get this error
> trying to attach the device to a domain.
>
> It may also be worth mentionning that "xm usb-hc-destroy mydomu 0" doesn't
> have any effect, so it doesn't give back any error (I get one if I try on an
> unregistered devId) but don't remove the host controller.
>
> So should pvusb be fonctionnal on this version of xen/xm ? If yes, any help
> would be highly appreciated.

PVUSB requires support both from the toolstack and from the dom0
kernel.  I believe PVUSB is only available in "classic Xen" kernels
such as those supported by SuSE; I'm pretty sure that Ubuntu does not
have one.

To see if usbback is present, you can do the following:

ls /sys/bus/usb/drivers/usbback

If it gives you an error, then the problem is that your Ubuntu dom0
kernel doesn't have PVUSB support.

 -George

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bug] PVUSB, Ubuntu 12.04, Xen 4.1.2
  2013-05-29 13:25 ` George Dunlap
@ 2013-05-29 15:08   ` Erwan PILLET
  2013-05-29 16:14     ` George Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Erwan PILLET @ 2013-05-29 15:08 UTC (permalink / raw)
  To: xen-devel; +Cc: Erwan PILLET


[-- Attachment #1.1: Type: text/plain, Size: 1474 bytes --]

On 29 May 2013 15:25, George Dunlap <George.Dunlap@eu.citrix.com> wrote:

> On Wed, May 29, 2013 at 2:11 PM, Erwan PILLET
> <erwan.pillet@telecom-bretagne.eu> wrote:
> > Hi everyone,
> >
> > I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2
> .
> > I wanted to use pvusb which I understand was functional on this version
> to
> > pass an USB hard drive to my DomU, but I only manage to get this error
> > trying to attach the device to a domain.
> >
> > It may also be worth mentionning that "xm usb-hc-destroy mydomu 0"
> doesn't
> > have any effect, so it doesn't give back any error (I get one if I try
> on an
> > unregistered devId) but don't remove the host controller.
> >
> > So should pvusb be fonctionnal on this version of xen/xm ? If yes, any
> help
> > would be highly appreciated.
>
> PVUSB requires support both from the toolstack and from the dom0
> kernel.  I believe PVUSB is only available in "classic Xen" kernels
> such as those supported by SuSE; I'm pretty sure that Ubuntu does not
> have one.
>
> To see if usbback is present, you can do the following:
>
> ls /sys/bus/usb/drivers/usbback
>
> If it gives you an error, then the problem is that your Ubuntu dom0
> kernel doesn't have PVUSB support.
>
>  -George
>


First, thanks for your help !
Indeed, there is no such file on my hypervisor, so I guess this kernel
doesn't support PVUSB.
Do you know if there is a way to patch the kernel to include this feature ?

-- 
Erwan

[-- Attachment #1.2: Type: text/html, Size: 2102 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bug] PVUSB, Ubuntu 12.04, Xen 4.1.2
  2013-05-29 15:08   ` Erwan PILLET
@ 2013-05-29 16:14     ` George Dunlap
  2013-05-29 18:00       ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 5+ messages in thread
From: George Dunlap @ 2013-05-29 16:14 UTC (permalink / raw)
  To: Erwan PILLET, Konrad Rzeszutek Wilk; +Cc: xen-devel

On Wed, May 29, 2013 at 4:08 PM, Erwan PILLET
<erwan.pillet@telecom-bretagne.eu> wrote:
> On 29 May 2013 15:25, George Dunlap <George.Dunlap@eu.citrix.com> wrote:
>>
>> On Wed, May 29, 2013 at 2:11 PM, Erwan PILLET
>> <erwan.pillet@telecom-bretagne.eu> wrote:
>> > Hi everyone,
>> >
>> > I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2
>> > .
>> > I wanted to use pvusb which I understand was functional on this version
>> > to
>> > pass an USB hard drive to my DomU, but I only manage to get this error
>> > trying to attach the device to a domain.
>> >
>> > It may also be worth mentionning that "xm usb-hc-destroy mydomu 0"
>> > doesn't
>> > have any effect, so it doesn't give back any error (I get one if I try
>> > on an
>> > unregistered devId) but don't remove the host controller.
>> >
>> > So should pvusb be fonctionnal on this version of xen/xm ? If yes, any
>> > help
>> > would be highly appreciated.
>>
>> PVUSB requires support both from the toolstack and from the dom0
>> kernel.  I believe PVUSB is only available in "classic Xen" kernels
>> such as those supported by SuSE; I'm pretty sure that Ubuntu does not
>> have one.
>>
>> To see if usbback is present, you can do the following:
>>
>> ls /sys/bus/usb/drivers/usbback
>>
>> If it gives you an error, then the problem is that your Ubuntu dom0
>> kernel doesn't have PVUSB support.
>>
>>  -George
>
>
>
> First, thanks for your help !
> Indeed, there is no such file on my hypervisor, so I guess this kernel
> doesn't support PVUSB.
> Do you know if there is a way to patch the kernel to include this feature ?

I think there are some trees with PVUSB, but I don't think it's very
reliable.  Konrad will know more.

 -George

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Bug] PVUSB, Ubuntu 12.04, Xen 4.1.2
  2013-05-29 16:14     ` George Dunlap
@ 2013-05-29 18:00       ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2013-05-29 18:00 UTC (permalink / raw)
  To: George Dunlap; +Cc: xen-devel, Erwan PILLET

On Wed, May 29, 2013 at 05:14:08PM +0100, George Dunlap wrote:
> On Wed, May 29, 2013 at 4:08 PM, Erwan PILLET
> <erwan.pillet@telecom-bretagne.eu> wrote:
> > On 29 May 2013 15:25, George Dunlap <George.Dunlap@eu.citrix.com> wrote:
> >>
> >> On Wed, May 29, 2013 at 2:11 PM, Erwan PILLET
> >> <erwan.pillet@telecom-bretagne.eu> wrote:
> >> > Hi everyone,
> >> >
> >> > I installed xen from packages on Ubuntu 12.04, getting the version 4.1.2
> >> > .
> >> > I wanted to use pvusb which I understand was functional on this version
> >> > to
> >> > pass an USB hard drive to my DomU, but I only manage to get this error
> >> > trying to attach the device to a domain.
> >> >
> >> > It may also be worth mentionning that "xm usb-hc-destroy mydomu 0"
> >> > doesn't
> >> > have any effect, so it doesn't give back any error (I get one if I try
> >> > on an
> >> > unregistered devId) but don't remove the host controller.
> >> >
> >> > So should pvusb be fonctionnal on this version of xen/xm ? If yes, any
> >> > help
> >> > would be highly appreciated.
> >>
> >> PVUSB requires support both from the toolstack and from the dom0
> >> kernel.  I believe PVUSB is only available in "classic Xen" kernels
> >> such as those supported by SuSE; I'm pretty sure that Ubuntu does not
> >> have one.
> >>
> >> To see if usbback is present, you can do the following:
> >>
> >> ls /sys/bus/usb/drivers/usbback
> >>
> >> If it gives you an error, then the problem is that your Ubuntu dom0
> >> kernel doesn't have PVUSB support.
> >>
> >>  -George
> >
> >
> >
> > First, thanks for your help !
> > Indeed, there is no such file on my hypervisor, so I guess this kernel
> > doesn't support PVUSB.
> > Do you know if there is a way to patch the kernel to include this feature ?
> 
> I think there are some trees with PVUSB, but I don't think it's very
> reliable.  Konrad will know more.

There is devel/xen-usb.v1.1 in  git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git
but it is so old that I fear it has many bugs in it.

> 
>  -George

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-29 18:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 13:11 [Bug] PVUSB, Ubuntu 12.04, Xen 4.1.2 Erwan PILLET
2013-05-29 13:25 ` George Dunlap
2013-05-29 15:08   ` Erwan PILLET
2013-05-29 16:14     ` George Dunlap
2013-05-29 18:00       ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.