[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2013-11-05 Thread Jens Frederich
Is there any workaround?

We're currently evaluating different RTOS systems. One is Linux RT with
KVM/QEMU with Windows 7. This bug breaks the latency measurement setup
and Linux RT is out of race. It there anyway to fix the issue?

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/685096

Title:
  USB Passthrough not working for Windows 7 guest

Status in QEMU:
  Confirmed
Status in “qemu-kvm” package in Ubuntu:
  Confirmed

Bug description:
  USB Passthrough from host to guest is not working for a 32-bit Windows
  7 guest, while it works perfectly for a 32-bit Windows XP guest.

  The device appears in the device manager of Windows 7, but with Error
  code 10: device cannot start. I have tried this with numerous USB
  thumbdrives and a USB wireless NIC, all with the same result. The
  device name and functionality is recognized, so at least some USB
  negotiation is taking place.

  I am trying this with the latest git-pull of QEMU-KVM.

  The command line to launch qemu-kvm for win7 is:
  sudo /home/user/local_install/bin/qemu-system-x86_64 -cpu core2duo -m 1024 
-smp 2 -vga std -hda ./disk_images/win7.qcow -vnc :1 -boot c -usb -usbdevice 
tablet -usbdevice host:0781:5150

  The command line to launch qemu-kvm for winxp is:
  sudo /home/user/local_install/bin/qemu-system-x86_64 -cpu core2duo -m 1024 
-smp 2 -usb -vga std -hda ./winxpsp3.qcow -vnc :0 -boot c -usbdevice tablet 
-usbdevice host:0781:5150

  Any help is appreciated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/685096/+subscriptions



[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2013-11-05 Thread Jens Frederich
Hi Serge,

for your information. I sent a mail to the devel mailing list. See
below.

I've tried to passthrough special Vector automotive usb in house devices.
Look here: http://vector.com/vi_vn1600_en.html.

What do you mean with what commands you've tried?

I've tried three QEMU versions:

1. Ubuntu 13.04 64-bit prebuild qemu-kvm package (qemu 1.4.0)
2. Ubuntu 13.10 64-bit prebuild qemu-kvm package (qemu 1.5.0)
3. Hand builded QEMU 1.6.1 with standard configure call
$ ./configure --prefix=/opt/kvm  make -j

Next, I want to build qemu from git?

I use virt-manager or virsh to start/stop my guest. The QEMU command
line is:

qemu-system-x86_64 -machine accel=kvm:tcg -name VRTP1_win -S -M pc-
i440fx-1.4 -cpu SandyBridge -m 3072 -smp 2,sockets=1,cores=2,threads=1
-uuid 8ee5add7-f1a9-d697-9c18-2c1b4967c00e -no-user-config -nodefaults
-chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/VRTP1_win.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
-no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
-device ahci,id=ahci0,bus=pci.0,addr=0x6 -drive
file=/var/lib/libvirt/images/VN8912_Development_0.9.2.bin,if=none,id
=drive-sata0-0-0,format=raw -device ide-hd,bus=ahci0.0,drive=drive-
sata0-0-0,id=sata0-0-0,bootindex=1 -netdev
tap,fd=27,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-
pci,netdev=hostnet0,id=net0,mac=52:54:00:71:f5:45,bus=pci.0,addr=0x3
-chardev pty,id=charserial0 -device isa-
serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc
127.0.0.1:0 -vga std -device intel-hda,id=sound0,bus=pci.0,addr=0x4
-device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device usb-
host,hostbus=3,hostaddr=18,id=hostdev0 -device virtio-balloon-
pci,id=balloon0,bus=pci.0,addr=0x5


Mail to devel list:

Hi all,

we're currently evaluating different RTOS systems (Windows CE, Intime, RTX, 
etc.).
One system is Linux RT + KVM/QEMU with a Windows 7 guest. Up to now all
works fine, Linux RT has good latency and KVM/Qemu setup was easy. But one QEMU 
bug
breaks my measurement setup and evaluation.

I've some usb devices for the Windows 7 guest. I configure them as USB 
passthrough.
The devices appears in the device manager of Windows 7, but with
Error code 10: device cannot start. The Windows driver fails on USB set 
configuration.
The driver creates a IRP and send it via IOCTRL to lower layer. The IOCTRL 
fails with
invalid parameter.

driver log:
0009  0.65470564  vnCDrvUsbControlRequestSetConfiguration, 
WdfUsbTargetDeviceSelectConfig single interface failed 0xc00d  
0010  0.65472370  vnCDrvUsbIFPrepareHardwareState, 
vnCDrvUsbControlRequestSetConfiguration failed: 0xc00d 
0011  0.65473646  vnCDrvDevConPrepareHardware, 
vnCDrvUsbIFPrepareHardwareState failed 0xc00d  
0012  0.65474838  vnCDrvEvtDevicePrepareHardware, 
vnCDrvDevConPrepareHardware failed 0xc001 
0013  0.6547

This bug breaks my latency measurement setup and Linux RT is out of the 
evaluationg
race. Windows CE should not win :-), it there anyway workaround or hack to fix 
the issue?

My setup:

Ubuntu 64-bit
Windows 7 Embedded Guest
Linux Kernel: 3.10.10-rt7
QEMU: 1.4.0, 1.6.1

thanks,
Jens

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/685096

Title:
  USB Passthrough not working for Windows 7 guest

Status in QEMU:
  Confirmed
Status in “qemu-kvm” package in Ubuntu:
  Confirmed

Bug description:
  USB Passthrough from host to guest is not working for a 32-bit Windows
  7 guest, while it works perfectly for a 32-bit Windows XP guest.

  The device appears in the device manager of Windows 7, but with Error
  code 10: device cannot start. I have tried this with numerous USB
  thumbdrives and a USB wireless NIC, all with the same result. The
  device name and functionality is recognized, so at least some USB
  negotiation is taking place.

  I am trying this with the latest git-pull of QEMU-KVM.

  The command line to launch qemu-kvm for win7 is:
  sudo /home/user/local_install/bin/qemu-system-x86_64 -cpu core2duo -m 1024 
-smp 2 -vga std -hda ./disk_images/win7.qcow -vnc :1 -boot c -usb -usbdevice 
tablet -usbdevice host:0781:5150

  The command line to launch qemu-kvm for winxp is:
  sudo /home/user/local_install/bin/qemu-system-x86_64 -cpu core2duo -m 1024 
-smp 2 -usb -vga std -hda ./winxpsp3.qcow -vnc :0 -boot c -usbdevice tablet 
-usbdevice host:0781:5150

  Any help is appreciated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/685096/+subscriptions



[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2013-11-05 Thread Jens Frederich
All devices work on other hypervisors like VMware Workstation etc...

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/685096

Title:
  USB Passthrough not working for Windows 7 guest

Status in QEMU:
  Confirmed
Status in “qemu-kvm” package in Ubuntu:
  Confirmed

Bug description:
  USB Passthrough from host to guest is not working for a 32-bit Windows
  7 guest, while it works perfectly for a 32-bit Windows XP guest.

  The device appears in the device manager of Windows 7, but with Error
  code 10: device cannot start. I have tried this with numerous USB
  thumbdrives and a USB wireless NIC, all with the same result. The
  device name and functionality is recognized, so at least some USB
  negotiation is taking place.

  I am trying this with the latest git-pull of QEMU-KVM.

  The command line to launch qemu-kvm for win7 is:
  sudo /home/user/local_install/bin/qemu-system-x86_64 -cpu core2duo -m 1024 
-smp 2 -vga std -hda ./disk_images/win7.qcow -vnc :1 -boot c -usb -usbdevice 
tablet -usbdevice host:0781:5150

  The command line to launch qemu-kvm for winxp is:
  sudo /home/user/local_install/bin/qemu-system-x86_64 -cpu core2duo -m 1024 
-smp 2 -usb -vga std -hda ./winxpsp3.qcow -vnc :0 -boot c -usbdevice tablet 
-usbdevice host:0781:5150

  Any help is appreciated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/685096/+subscriptions



Re: [Qemu-devel] USB Passthrough not working for Windows 7 guest

2013-11-05 Thread Jens Frederich
On 2013-11-05 17:01, Frederich, Jens wrote:
 Hi all,

 we're currently evaluating different RTOS systems (Windows CE, Intime, RTX,
 etc.).
 One system is Linux RT + KVM/QEMU with a Windows 7 guest. Up to now all
 works fine, Linux RT has good latency and KVM/Qemu setup was easy. But one
 QEMU bug
 breaks my measurement setup and evaluation.

 I've some usb devices for the Windows 7 guest. I configure them as USB
 passthrough.
 The devices appears in the device manager of Windows 7, but with
 Error code 10: device cannot start. The Windows driver fails on USB set
 configuration.
 The driver creates a IRP and send it via IOCTRL to lower layer. The IOCTRL
 fails with
 invalid parameter.

 driver log:
 0009  0.65470564  vnCDrvUsbControlRequestSetConfiguration,
 WdfUsbTargetDeviceSelectConfig single interface failed 0xc00d
 0010  0.65472370  vnCDrvUsbIFPrepareHardwareState,
 vnCDrvUsbControlRequestSetConfiguration failed: 0xc00d
 0011  0.65473646  vnCDrvDevConPrepareHardware,
 vnCDrvUsbIFPrepareHardwareState failed 0xc00d
 0012  0.65474838  vnCDrvEvtDevicePrepareHardware,
 vnCDrvDevConPrepareHardware failed 0xc001
 0013  0.6547

 This bug breaks my latency measurement setup and Linux RT is out of the
 evaluationg
 race. Windows CE should not win :-), it there anyway workaround or hack to
 fix the issue?

Workaround: Pass-through one of the (typically) many USB host
controllers to the Windows guest (vfio or classic pci-assign). I did
this back then when *HCI emulation was still pretty immature.

But USB device pass-through should also work. Do you happen to pass a
USB 2.0 device via an emulated UHCI? Or are you already using the EHCI
emulation?

I'm not sure which mode it has been. I've used the virt-manager to configure
the device. A usb controller is already configured in mode 'default'.
My steps on virt-manager:

1. add hardware
2. select usb host device
3. I can see my usb device, I select it
4. start guest and open Windows device manager

I don't know is this UHCI or EHCI? On the usb host device list are
some controller listed e.q. xhci, ehci and so on. Should I map these
controller to Windows 7 as well?

thanks,
Jens



[Qemu-devel] [Bug 1247796] [NEW] USB Passthrough not working for Windows 7 Embedded guest

2013-11-04 Thread Jens Frederich
Public bug reported:

USB Passthrough from host to guest is not working for a 32-bit Windows 7
guest.

The device appears in the device manager of Windows 7, but with Error
code 10: device cannot start. I have tried this with numerous USB
thumbdrives and a USB wireless NIC, all with the same result. The device
name and functionality is recognized, so at least some USB negotiation
is taking place.

qemu-system-x86_64 -machine accel=kvm:tcg -name VRTP1_win -S -M pc-
i440fx-1.4 -cpu SandyBridge -m 3072 -smp 2,sockets=1,cores=2,threads=1
-uuid 8ee5add7-f1a9-d697-9c18-2c1b4967c00e -no-user-config -nodefaults
-chardev
socket,id=charmonitor,path=/var/lib/libvirt/qemu/VRTP1_win.monitor,server,nowait
-mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
-no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
-device ahci,id=ahci0,bus=pci.0,addr=0x6 -drive
file=/var/lib/libvirt/images/VN8912_Development_0.9.2.bin,if=none,id
=drive-sata0-0-0,format=raw -device ide-hd,bus=ahci0.0,drive=drive-
sata0-0-0,id=sata0-0-0,bootindex=1 -netdev
tap,fd=27,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-
pci,netdev=hostnet0,id=net0,mac=52:54:00:71:f5:45,bus=pci.0,addr=0x3
-chardev pty,id=charserial0 -device isa-
serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0 -vnc
127.0.0.1:0 -vga std -device intel-hda,id=sound0,bus=pci.0,addr=0x4
-device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device usb-
host,hostbus=3,hostaddr=18,id=hostdev0 -device virtio-balloon-
pci,id=balloon0,bus=pci.0,addr=0x5

** Affects: qemu
 Importance: Undecided
 Status: New


** Tags: 13.04

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1247796

Title:
  USB Passthrough not working for Windows 7 Embedded guest

Status in QEMU:
  New

Bug description:
  USB Passthrough from host to guest is not working for a 32-bit Windows
  7 guest.

  The device appears in the device manager of Windows 7, but with Error
  code 10: device cannot start. I have tried this with numerous USB
  thumbdrives and a USB wireless NIC, all with the same result. The
  device name and functionality is recognized, so at least some USB
  negotiation is taking place.

  qemu-system-x86_64 -machine accel=kvm:tcg -name VRTP1_win -S -M pc-
  i440fx-1.4 -cpu SandyBridge -m 3072 -smp 2,sockets=1,cores=2,threads=1
  -uuid 8ee5add7-f1a9-d697-9c18-2c1b4967c00e -no-user-config -nodefaults
  -chardev
  
socket,id=charmonitor,path=/var/lib/libvirt/qemu/VRTP1_win.monitor,server,nowait
  -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
  -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
  -device ahci,id=ahci0,bus=pci.0,addr=0x6 -drive
  file=/var/lib/libvirt/images/VN8912_Development_0.9.2.bin,if=none,id
  =drive-sata0-0-0,format=raw -device ide-hd,bus=ahci0.0,drive=drive-
  sata0-0-0,id=sata0-0-0,bootindex=1 -netdev
  tap,fd=27,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-
  pci,netdev=hostnet0,id=net0,mac=52:54:00:71:f5:45,bus=pci.0,addr=0x3
  -chardev pty,id=charserial0 -device isa-
  serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0
  -vnc 127.0.0.1:0 -vga std -device intel-
  hda,id=sound0,bus=pci.0,addr=0x4 -device hda-
  duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device usb-
  host,hostbus=3,hostaddr=18,id=hostdev0 -device virtio-balloon-
  pci,id=balloon0,bus=pci.0,addr=0x5

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1247796/+subscriptions



[Qemu-devel] [Bug 1247796] Re: USB Passthrough not working for Windows 7 Embedded guest

2013-11-04 Thread Jens Frederich
The bug occured on Ubuntu 13.04

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1247796

Title:
  USB Passthrough not working for Windows 7 Embedded guest

Status in QEMU:
  New

Bug description:
  USB Passthrough from host to guest is not working for a 32-bit Windows
  7 guest.

  The device appears in the device manager of Windows 7, but with Error
  code 10: device cannot start. I have tried this with numerous USB
  thumbdrives and a USB wireless NIC, all with the same result. The
  device name and functionality is recognized, so at least some USB
  negotiation is taking place.

  qemu-system-x86_64 -machine accel=kvm:tcg -name VRTP1_win -S -M pc-
  i440fx-1.4 -cpu SandyBridge -m 3072 -smp 2,sockets=1,cores=2,threads=1
  -uuid 8ee5add7-f1a9-d697-9c18-2c1b4967c00e -no-user-config -nodefaults
  -chardev
  
socket,id=charmonitor,path=/var/lib/libvirt/qemu/VRTP1_win.monitor,server,nowait
  -mon chardev=charmonitor,id=monitor,mode=control -rtc base=localtime
  -no-shutdown -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2
  -device ahci,id=ahci0,bus=pci.0,addr=0x6 -drive
  file=/var/lib/libvirt/images/VN8912_Development_0.9.2.bin,if=none,id
  =drive-sata0-0-0,format=raw -device ide-hd,bus=ahci0.0,drive=drive-
  sata0-0-0,id=sata0-0-0,bootindex=1 -netdev
  tap,fd=27,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-
  pci,netdev=hostnet0,id=net0,mac=52:54:00:71:f5:45,bus=pci.0,addr=0x3
  -chardev pty,id=charserial0 -device isa-
  serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0
  -vnc 127.0.0.1:0 -vga std -device intel-
  hda,id=sound0,bus=pci.0,addr=0x4 -device hda-
  duplex,id=sound0-codec0,bus=sound0.0,cad=0 -device usb-
  host,hostbus=3,hostaddr=18,id=hostdev0 -device virtio-balloon-
  pci,id=balloon0,bus=pci.0,addr=0x5

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1247796/+subscriptions