Fix USB-tablet not working with some Linux guests (bz #929068)

This commit is contained in:
Hans de Goede 2013-04-03 12:17:47 +02:00
parent 49c3b9cb0c
commit 44aa5d78d7
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 2d3225f34dbe42d215c7809f5f82186eafe7f4c2 Mon Sep 17 00:00:00 2001
From: Hans de Goede <hdegoede@redhat.com>
Date: Tue, 2 Apr 2013 19:13:06 +0200
Subject: [PATCH 1/2] usb-tablet: Don't claim wakeup capability for USB-2
version
Our ehci code does not implement wakeup support, so claiming support for
it with usb-tablet in USB-2 mode causes all tablet events to get lost.
http://bugzilla.redhat.com/show_bug.cgi?id=929068
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
hw/usb/dev-hid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c
index 9701048..317b474 100644
--- a/hw/usb/dev-hid.c
+++ b/hw/usb/dev-hid.c
@@ -236,7 +236,7 @@ static const USBDescDevice desc_device_tablet2 = {
.bNumInterfaces = 1,
.bConfigurationValue = 1,
.iConfiguration = STR_CONFIG_TABLET,
- .bmAttributes = 0xa0,
+ .bmAttributes = 0x80,
.bMaxPower = 50,
.nif = 1,
.ifs = &desc_iface_tablet2,
--
1.8.1.4

View File

@ -128,7 +128,7 @@
Summary: QEMU is a FAST! processor emulator Summary: QEMU is a FAST! processor emulator
Name: qemu Name: qemu
Version: 1.4.0 Version: 1.4.0
Release: 8%{?dist} Release: 9%{?dist}
# Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped # Epoch because we pushed a qemu-1.0 package. AIUI this can't ever be dropped
Epoch: 2 Epoch: 2
License: GPLv2+ and LGPLv2+ and BSD License: GPLv2+ and LGPLv2+ and BSD
@ -201,6 +201,8 @@ Patch0108: 0108-iscsi-look-for-pkg-config-file-too.patch
Patch0109: 0109-tcg-Fix-occasional-TCG-broken-problem-when-ldst-opti.patch Patch0109: 0109-tcg-Fix-occasional-TCG-broken-problem-when-ldst-opti.patch
# Fix possible crash with VNC and qxl (bz #919777) # Fix possible crash with VNC and qxl (bz #919777)
Patch0110: 0110-qxl-better-vga-init-in-enter_vga_mode.patch Patch0110: 0110-qxl-better-vga-init-in-enter_vga_mode.patch
# Fix USB-tablet not working with some Linux guests (bz #929068)
Patch0111: 0111-usb-tablet-Don-t-claim-wakeup-capability-for-USB-2-v.patch
BuildRequires: SDL-devel BuildRequires: SDL-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
@ -676,6 +678,8 @@ CAC emulation development files.
%patch0109 -p1 %patch0109 -p1
# Fix possible crash with VNC and qxl (bz #919777) # Fix possible crash with VNC and qxl (bz #919777)
%patch0110 -p1 %patch0110 -p1
# Fix USB-tablet not working with some Linux guests (bz #929068)
%patch0111 -p1
%build %build
@ -1285,6 +1289,9 @@ getent passwd qemu >/dev/null || \
%endif %endif
%changelog %changelog
* Wed Apr 03 2013 Hans de Goede <hdegoede@redhat.com> - 2:1.4.0-9
- Fix USB-tablet not working with some Linux guests (bz #929068)
* Tue Apr 02 2013 Cole Robinson <crobinso@redhat.com> - 2:1.4.0-8 * Tue Apr 02 2013 Cole Robinson <crobinso@redhat.com> - 2:1.4.0-8
- Fix dep on seavgabios-bin - Fix dep on seavgabios-bin