From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzQh7-0006sb-ER for qemu-devel@nongnu.org; Mon, 20 Feb 2012 05:42:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RzQh1-0003By-Jv for qemu-devel@nongnu.org; Mon, 20 Feb 2012 05:42:09 -0500 Received: from ssl.dlh.net ([91.198.192.8]:48260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RzQh1-0003Bi-F0 for qemu-devel@nongnu.org; Mon, 20 Feb 2012 05:42:03 -0500 Received: from localhost (localhost [127.0.0.1]) by ssl.dlh.net (Postfix) with ESMTP id 0DFE0147F55 for ; Mon, 20 Feb 2012 11:42:01 +0100 (CET) Received: from ssl.dlh.net ([127.0.0.1]) by localhost (ssl.dlh.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n58RIYsNNui0 for ; Mon, 20 Feb 2012 11:42:00 +0100 (CET) Received: from [172.21.12.60] (unknown [82.141.1.226]) by ssl.dlh.net (Postfix) with ESMTPSA id ACD8A147F45 for ; Mon, 20 Feb 2012 11:42:00 +0100 (CET) Message-ID: <4F422378.2040001@dlh.net> Date: Mon, 20 Feb 2012 11:42:00 +0100 From: Peter Lieven MIME-Version: 1.0 References: <1318419034-15287-1-git-send-email-kraxel@redhat.com> <4E96C212.8060500@redhat.com> <4EA139B9.9040408@redhat.com> In-Reply-To: <4EA139B9.9040408@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] usb-hid: activate usb tablet / mouse after migration. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 > >