Re: [Bug 1033727] Re: USB passthrough doesn't work anymore with qemu-kvm 1.1.1

2013-01-13 Thread Peter Schaefer
Hello Michael,

Am 1/12/2013 1:24 PM, Michael Tokarev wrote:

 Peter, are you able to run git bisect or something like that, to try to
 pinpoint either the commit which introduced this issue or which fixed
 it?

Well, i'm no expert at git, but i made some progress, see below.

 Besides, what are the sympthoms of the device non-working?  Does it
 happen with linux guest too?  Have you tried re-running the guest again
 when the problem occur, using the same problematic version of qemu - I
 mean, is it 100% reproducible or happens at random?

In my case it's the SmartCard-Reader that's not working, i.e. the DATEV 
Software called Sicherheitspaket does not 
work. The background process called SiPaHost.exe just hangs; any client 
program trying to display SmartCard 
information does also just hang forever. That behaviour is 100% reproducible 
and persists over reboots of the Linux host 
and/or the Windows guest (Windows XP SP3). I did not try Linux guests.

Yesterday, i used git to checkout all qemu-kvm versions from kernel.org and 
build Debian packets from it (source kept 
vanilla, i just applied the two patches that rename paths from 'qemuXXX' to 
'kvmXXX').

The findings were:

- v1.0   - ok
- v1.0.1 - ok
- v1.1.0 - not ok
- v1.1.1 - not ok
- v1.1.2 - not ok
- v1.2.0 - not ok

So far, this is consistent with the findings in this bug report.

BUT: The latest HEAD from kernel.org (called v1.2.50) also does work
again!

So, i'm now learning about git bisect (however, today i won't have time
for this).

Regards,
Peter

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1033727

Title:
  USB passthrough doesn't work anymore with qemu-kvm 1.1.1

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1033727] Re: USB passthrough doesn't work anymore with qemu-kvm 1.1.1

2013-01-13 Thread Peter Schaefer
Hi,

well - it's probably only for historic interest, but if i made no bisecting 
mistake, this commit has fixed it (note that 
the meaning of 'good' and 'bad' is swapped due to how git bisect works):

root@debian:~/qemu_git/qemu-kvm# git bisect good
Bisecting: 87 revisions left to test after this (roughly 7 steps)
[c26032b2c91721245bfec542d94f37a0238e986e] target-xtensa: don't emit extra 
tcg_gen_goto_tb
root@debian:~/qemu_git/qemu-kvm# git bisect good
Bisecting: 43 revisions left to test after this (roughly 6 steps)
[1fd959466574c3d46f4898f2e27cd3b1060338e4] tcg-sparc: Mask shift immediates to 
avoid illegal insns.
root@debian:~/qemu_git/qemu-kvm# git bisect bad
Bisecting: 24 revisions left to test after this (roughly 5 steps)
[e55f523d7977480462151d8abb0ebb4b1747eabf] tcg-hppa: Fix broken load/store 
helpers
root@debian:~/qemu_git/qemu-kvm# git bisect good
Bisecting: 12 revisions left to test after this (roughly 4 steps)
[09054d19e72f6991cd359d41c479badd92f62a06] usb-redir: Add chardev open / close 
debug logging
root@debian:~/qemu_git/qemu-kvm# git bisect good
Bisecting: 6 revisions left to test after this (roughly 3 steps)
[a221ae3fcc55fcc3911587bc572af88eed3342dd] tcg-sparc: Fix ADDX opcode.
root@debian:~/qemu_git/qemu-kvm# git bisect bad
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[cfb75cb9807463ebe18b127096b48b5d0db1ce03] Merge branch 'usb.65' of 
git://git.kraxel.org/qemu
root@debian:~/qemu_git/qemu-kvm# git bisect bad
Bisecting: 0 revisions left to test after this (roughly 1 step)
[72a04d0c178f01908d74539230d9de64ffc6da19] uhci: Don't queue up packets after 
one with the SPD flag set
root@debian:~/qemu_git/qemu-kvm# git bisect bad
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[35efba2cc6812dc980c336d7b9bf81dbfb5daf00] usb-redir: Revert usb-redir part of 
commit 93bfef4c
root@debian:~/qemu_git/qemu-kvm# git bisect good
72a04d0c178f01908d74539230d9de64ffc6da19 is the first bad commit
commit 72a04d0c178f01908d74539230d9de64ffc6da19
Author: Hans de Goede hdego...@redhat.com
Date:   Wed Sep 12 15:08:40 2012 +0200

 uhci: Don't queue up packets after one with the SPD flag set

 Don't queue up packets after a packet with the SPD (short packet detect)
 flag set. Since we won't know if the packet will actually be short until it
 has completed, and if it is short we should stop the queue.

 This fixes a miniature photoframe emulating a USB cdrom with the windows
 software for it not working.

 Signed-off-by: Hans de Goede hdego...@redhat.com
 Signed-off-by: Gerd Hoffmann kra...@redhat.com

:04 04 18e7490171762dec04cb8ce49fd21e0b685b53b2 
86f7cb33d8b77828e671c5fb39c9d137d39eca06 M  hw
root@debian:~/qemu_git/qemu-kvm#

HTH.

Regards,
  Peter

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1033727

Title:
  USB passthrough doesn't work anymore with qemu-kvm 1.1.1

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1033727] Re: USB passthrough doesn't work anymore with qemu-kvm 1.1.1

2013-01-10 Thread Peter Schaefer
Hi again!

The good news: 1.3.0 works (at least with my setup). The bad news is
that this might lower the motivation to fix 1.1.2 ;-) ...

Attached is the USB trace file from the non-working case with V 1.1.2.

If decompressed, it's an 185 MB text file and - honestly - i cannot make
any sense of it, but here you have it... ;-)

There's two USB devices passed-through:

1) vendor=0x529 product=0x1 - Hardlock USB Dongle
2) vendor=0xd46 product=0x3003 - Kobil USB Smartcard Reader

HTH,
  Peter


** Attachment added: Trace of the non-working case
   
https://bugs.launchpad.net/qemu/+bug/1033727/+attachment/3479688/+files/usb_trace.txt.bz2

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1033727

Title:
  USB passthrough doesn't work anymore with qemu-kvm 1.1.1

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 1033727] Re: USB passthrough doesn't work anymore with qemu-kvm 1.1.1

2013-01-09 Thread Peter Schaefer
Am 1/8/2013 6:08 PM, Serge Hallyn wrote:

 (replying to comment #12) could you please follow up on comments #6 and
 #7?

 It also would be worthwhile, at this point, checking whether latest
 upstream (1.3) is still broken.

Just a short note: I somehow produced a backported *.deb for 1.3.0 and
i managed to recompile the debs of 1.1.2 and 1.0 from debian backports
with --enable-trace-backend=simple. The problematic box runs Debian
Squeeze with Kernel 3.2.35 (and some other packages) from backports.

Tomorrow evening i'm going to make test runs on the system. I'll keep
you posted.

Regards,
   Peter

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1033727

Title:
  USB passthrough doesn't work anymore with qemu-kvm 1.1.1

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1033727] Re: USB passthrough doesn't work anymore with qemu-kvm 1.1.1

2012-12-29 Thread Peter Schaefer
Just confirming the bug. I'm having the same issues with the same USB
smart card reader as the submitter (Kobil mIDentity) on Debian Squeeze
using the qemu-kvm version 1.2.0 from debian-backports. Going back to
1.0 fixes the problem (http://snapshot.debian.org/package/qemu-
kvm/1.0%2Bdfsg-8~bpo60%2B1).

Since I can easily toggle between versions i could provide more support,
if wanted and instructions provided...

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1033727

Title:
  USB passthrough doesn't work anymore with qemu-kvm 1.1.1

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1033727] Re: USB passthrough doesn't work anymore with qemu-kvm 1.1.1

2012-12-29 Thread Peter Schaefer
Referring to my last comment: The URL does only work if you add a
backslash at the end, sorry about that.

One last note: In Germany, the Kobil USB Reader is/was supplied by DATEV
(see http://www.datev.com/) to their members/partners. So, anybody who's
running DATEV software on kvm-virtualized systems will run into this
problem.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to qemu-kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1033727

Title:
  USB passthrough doesn't work anymore with qemu-kvm 1.1.1

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs