Re: [Qemu-devel] QEMU only support USB endpoint 02(output)and 81(input)?

2007-03-29 Thread Shaddy Baddah

Hi,

On 3/29/2007 2:52 PM, Yu, Xiaoyang wrote:
I used QEMU 0.9.0 to do the testing. All the seven USB disks can work properly in host OS (Linux 2.6), so the USB devices and its interaction with the kernel drivers should be okay. So the problem must be in QEMU USB code. 


As far as I know, QEMU does not have any of its own special USB 
handling. It has USB emulation. But this does not influence how it 
handles disk images... even if they are on a USB device.


Perhaps you can demonstrate some QEMU command-lines to indicate how you 
are testing these disks?


Regards,
Shaddy






[Qemu-devel] QEMU only support USB endpoint 02(output) and 81(input)?

2007-03-28 Thread Yu, Xiaoyang
Hi guys,

 

I found that some USB disks do not work in QEMU. 

 

I collected seven types of USB disks, and tested them in QEMU. Four of
them can work properly, but other three do not work. I compared their
information in /proc/bus/usb/devices, and found that the four good
disks all use endpoint 02 as output endpoint, and use endpoint 81 as
input endpoint, while other three are not. 

 

So, is QEMU only support USB endpoint 02(output) and 81(input)?

 

I put the USB information of the seven disks below. The first four disks
can work with QEMU, and the last three disks do not work with QEMU.

 

 

USB disks work with QEMU:

===

Baitangping: 

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=1043 ProdID=8006 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=Flash Disk

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

Chuan:

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  4 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=1043 ProdID=8006 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=Flash Disk

S:  SerialNumber=200506211217

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

Meng:

T:  Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=1043 ProdID=8006 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=Flash Disk

S:  SerialNumber=200510172115

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)

E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

Kingston:

T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  6 Spd=480 MxCh= 0

D:  Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=0930 ProdID=6533 Rev= 1.00

S:  Manufacturer=Kingston

S:  Product=DataTraveler 2.0

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=31875us

E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=64ms

 

 

USB disks do not work with QEMU



CNDATA:

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=0ed1 ProdID=6680 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=Mass Storage Device

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 50mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

TH:

T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  4 Spd=480 MxCh= 0

D:  Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=0204 ProdID=6025 Rev= 1.00

S:  Manufacturer=USB0612

S:  Product=Flash Disk

S:  SerialNumber=335657409262

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

 

Intel:

T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  7 Spd=480 MxCh= 0

D:  Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=0204 ProdID=6025 Rev= 1.00

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

 

 

Thanks
Xiaoyang



[Qemu-devel] QEMU only support USB endpoint 02(output) and 81(input)?

2007-03-28 Thread Yu, Xiaoyang
Hi guys,

 

I found that some USB disks do not work in QEMU. 

 

I collected seven types of USB disks, and tested them in QEMU. Four of
them can work properly, but other three do not work. I compared their
information in /proc/bus/usb/devices, and found that the four good
disks all use endpoint 02 as output endpoint, and use endpoint 81 as
input endpoint, while other three are not. 

 

So, is QEMU only support USB endpoint 02(output) and 81(input)?

 

I put the USB information of the seven disks below. The first four disks
can work with QEMU, and the last three disks do not work with QEMU.

 

 

USB disks work with QEMU:

===

Baitangping: 

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=1043 ProdID=8006 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=Flash Disk

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

Chuan:

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  4 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=1043 ProdID=8006 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=Flash Disk

S:  SerialNumber=200506211217

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

Meng:

T:  Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  7 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=1043 ProdID=8006 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=Flash Disk

S:  SerialNumber=200510172115

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)

E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

Kingston:

T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  6 Spd=480 MxCh= 0

D:  Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=0930 ProdID=6533 Rev= 1.00

S:  Manufacturer=Kingston

S:  Product=DataTraveler 2.0

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=31875us

E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=64ms

 

 

USB disks do not work with QEMU



CNDATA:

T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=12  MxCh= 0

D:  Ver= 1.10 Cls=00(ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1

P:  Vendor=0ed1 ProdID=6680 Rev= 1.00

S:  Manufacturer=Generic

S:  Product=Mass Storage Device

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 50mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

 

TH:

T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  4 Spd=480 MxCh= 0

D:  Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=0204 ProdID=6025 Rev= 1.00

S:  Manufacturer=USB0612

S:  Product=Flash Disk

S:  SerialNumber=335657409262

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

 

Intel:

T:  Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#=  7 Spd=480 MxCh= 0

D:  Ver= 2.00 Cls=00(ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=0204 ProdID=6025 Rev= 1.00

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA

I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50
Driver=usb-storage

E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

 

 

Thanks
Xiaoyang



Re: [Qemu-devel] QEMU only support USB endpoint 02(output) and 81(input)?

2007-03-28 Thread Shaddy Baddah

Hi,

On 3/29/2007 11:49 AM, Yu, Xiaoyang wrote:

I found that some USB disks do not work in QEMU.


I don't quite understand. In which way? As I understand it, QEMU just 
uses the I/O layer provided by the host operating system. In my 
experience, if there has been any USB problem, it is either with the USB 
device and its interaction with the kernel drivers.



Regards,
Shaddy





RE: [Qemu-devel] QEMU only support USB endpoint 02(output)and 81(input)?

2007-03-28 Thread Yu, Xiaoyang
I used QEMU 0.9.0 to do the testing. All the seven USB disks can work properly 
in host OS (Linux 2.6), so the USB devices and its interaction with the kernel 
drivers should be okay. So the problem must be in QEMU USB code. 

Thanks
Xiaoyang
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shaddy Baddah
Sent: 2007年3月29日 12:18
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] QEMU only support USB endpoint 02(output)and 
81(input)?

Hi,

On 3/29/2007 11:49 AM, Yu, Xiaoyang wrote:
 I found that some USB disks do not work in QEMU.

I don't quite understand. In which way? As I understand it, QEMU just 
uses the I/O layer provided by the host operating system. In my 
experience, if there has been any USB problem, it is either with the USB 
device and its interaction with the kernel drivers.

Regards,
Shaddy