|
|
9ae3a8 |
From 2dbe97005502fe2e1dcbebf177bafe443a62e96d Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Date: Mon, 3 Feb 2014 16:30:32 +0100
|
|
|
9ae3a8 |
Subject: [PATCH 08/28] usb-hid: add microsoft os descriptor support
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1391445032-5540-6-git-send-email-kraxel@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 57079
|
|
|
9ae3a8 |
O-Subject: [RHEL-7 qemu-kvm PATCH 5/5] usb-hid: add microsoft os descriptor support
|
|
|
9ae3a8 |
Bugzilla: 1039530
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Juan Quintela <quintela@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Set SelectiveSuspendEnabled registy entry to one.
|
|
|
9ae3a8 |
This makes Windows use remote suspend by default,
|
|
|
9ae3a8 |
without manual registry fiddeling.
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
(cherry picked from commit 88678fbd9dbf01fd0988bcb651508378d85e868a)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/usb/dev-hid.c | 8 ++++++++
|
|
|
9ae3a8 |
1 file changed, 8 insertions(+)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
hw/usb/dev-hid.c | 8 ++++++++
|
|
|
9ae3a8 |
1 files changed, 8 insertions(+), 0 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c
|
|
|
9ae3a8 |
index 6aadaa0..7dc75f7 100644
|
|
|
9ae3a8 |
--- a/hw/usb/dev-hid.c
|
|
|
9ae3a8 |
+++ b/hw/usb/dev-hid.c
|
|
|
9ae3a8 |
@@ -261,6 +261,10 @@ static const USBDescDevice desc_device_keyboard = {
|
|
|
9ae3a8 |
},
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
+static const USBDescMSOS desc_msos_suspend = {
|
|
|
9ae3a8 |
+ .SelectiveSuspendEnabled = true,
|
|
|
9ae3a8 |
+};
|
|
|
9ae3a8 |
+
|
|
|
9ae3a8 |
static const USBDesc desc_mouse = {
|
|
|
9ae3a8 |
.id = {
|
|
|
9ae3a8 |
.idVendor = 0x0627,
|
|
|
9ae3a8 |
@@ -272,6 +276,7 @@ static const USBDesc desc_mouse = {
|
|
|
9ae3a8 |
},
|
|
|
9ae3a8 |
.full = &desc_device_mouse,
|
|
|
9ae3a8 |
.str = desc_strings,
|
|
|
9ae3a8 |
+ .msos = &desc_msos_suspend,
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static const USBDesc desc_tablet = {
|
|
|
9ae3a8 |
@@ -285,6 +290,7 @@ static const USBDesc desc_tablet = {
|
|
|
9ae3a8 |
},
|
|
|
9ae3a8 |
.full = &desc_device_tablet,
|
|
|
9ae3a8 |
.str = desc_strings,
|
|
|
9ae3a8 |
+ .msos = &desc_msos_suspend,
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static const USBDesc desc_tablet2 = {
|
|
|
9ae3a8 |
@@ -299,6 +305,7 @@ static const USBDesc desc_tablet2 = {
|
|
|
9ae3a8 |
.full = &desc_device_tablet,
|
|
|
9ae3a8 |
.high = &desc_device_tablet2,
|
|
|
9ae3a8 |
.str = desc_strings,
|
|
|
9ae3a8 |
+ .msos = &desc_msos_suspend,
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static const USBDesc desc_keyboard = {
|
|
|
9ae3a8 |
@@ -312,6 +319,7 @@ static const USBDesc desc_keyboard = {
|
|
|
9ae3a8 |
},
|
|
|
9ae3a8 |
.full = &desc_device_keyboard,
|
|
|
9ae3a8 |
.str = desc_strings,
|
|
|
9ae3a8 |
+ .msos = &desc_msos_suspend,
|
|
|
9ae3a8 |
};
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
static const uint8_t qemu_mouse_hid_report_descriptor[] = {
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|