qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Lieven <pl@dlh.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] usb-hid: activate usb tablet / mouse after migration.
Date: Mon, 20 Feb 2012 11:42:00 +0100	[thread overview]
Message-ID: <4F422378.2040001@dlh.net> (raw)
In-Reply-To: <4EA139B9.9040408@redhat.com>

On 21.10.2011 11:22, Gerd Hoffmann wrote:
>    Hi,
>
>> Original:
>> * Mouse #1: QEMU HID Tablet (absolute)
>>    Mouse #0: QEMU PS/2 Mouse
>>
>> Start from the snapshot:
>> * Mouse #0: QEMU PS/2 Mouse
>>    Mouse #1: QEMU HID Tablet (absolute)
>>
>> The active mouse device is not be saved into the snapshot.
> That shouldn't hurt though.  When the guest polls the tablet the first
> time after starting from snapshot should activate it.  In case it the
> guest doesn't pull because the guest activated remote wakeup and
> suspended the device we now (with the patch) activate it too.
>
> It also doesn't reproduce here.  /me wonders what is going on ...
>
> What does 'info usb' print before and after snapshotting?
> Can you also post the full qemu command line?
I see the same issue here, but not in my case it happens when migrating 
a VM.

Before migration:

(qemu) info usb
info usb
   Device 0.1, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet
(qemu) info mice
info mice
   Mouse #0: QEMU PS/2 Mouse
* Mouse #1: QEMU HID Tablet (absolute)

After migration:
(qemu) info usb
info usb
   Device 0.1, Port 1, Speed 12 Mb/s, Product QEMU USB Tablet
(qemu) info mice
info mice
   Mouse #1: QEMU HID Tablet (absolute)
* Mouse #0: QEMU PS/2 Mouse

It seems the USB Tablet is not activated again. I can get it working by 
manually aktivating and deactivating the USB Hub in Windows Device Manager.

The guest is Windows7 32-bit.

cmdline:
/usr/bin/qemu-kvm-1.0 -net 
tap,vlan=141,script=no,downscript=no,ifname=tap0 -net 
nic,vlan=141,model=e1000,macaddr=52:54:00:ff:00:d3 -drive 
format=host_device,file=/dev/mapper/iqn.2001-05.com.equallogic:0-8a0906-eeef4e007-a8a9f3818674f2fc-lieven-windows7-r80788,if=virtio,cache=writethrough,aio=native 
-m 2048 -monitor tcp:0:4001,server,nowait -vnc :1 -name lieven-win7 
-boot order=dc,menu=off -k de -pidfile /var/run/qemu/vm-187.pid -rtc 
base=localtime -vga std -usb -usbdevice tablet -cpu host

Thanks,
Peter
> thanks,
>    Gerd
>
>

  reply	other threads:[~2012-02-20 10:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-12 11:30 [Qemu-devel] [PATCH] usb-hid: activate usb tablet / mouse after migration Gerd Hoffmann
2011-10-13  2:09 ` TeLeMan
2011-10-13 10:48   ` Gerd Hoffmann
2011-10-16  8:54     ` TeLeMan
2011-10-21  9:22       ` Gerd Hoffmann
2012-02-20 10:42         ` Peter Lieven [this message]
2012-02-21 16:25       ` Peter Lieven

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F422378.2040001@dlh.net \
    --to=pl@dlh.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).