yeahuh / rpms / qemu-kvm

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