|
|
218e99 |
From c1565b1a48db60bb86d83ec00c86b6ddfaf12d62 Mon Sep 17 00:00:00 2001
|
|
|
218e99 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
218e99 |
Date: Mon, 2 Sep 2013 13:26:16 +0200
|
|
|
218e99 |
Subject: [PATCH 10/29] rhel6 compat: usb serial numbers
|
|
|
218e99 |
|
|
|
218e99 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
218e99 |
Message-id: <1378128376-25930-3-git-send-email-kraxel@redhat.com>
|
|
|
218e99 |
Patchwork-id: 53987
|
|
|
218e99 |
O-Subject: [RHEL-7 qemu-kvm PATCH 2/2] rhel6 compat: usb serial numbers
|
|
|
218e99 |
Bugzilla: 953304
|
|
|
218e99 |
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
218e99 |
|
|
|
218e99 |
Add serial number compat properties to the rhel6 machine types,
|
|
|
218e99 |
to match rhel6 behavior. Two things we have to watch out here:
|
|
|
218e99 |
|
|
|
218e99 |
First the HID devices flipped serial from "1" to "42" to indicate
|
|
|
218e99 |
remote wakeup capability, in RHEL-6.2.
|
|
|
218e99 |
|
|
|
218e99 |
rhel6 commit 85ae0a096fdbc4a6f5a660bf60a74c092f9c0f7a
|
|
|
218e99 |
|
|
|
218e99 |
Second devices get unique serial numbers, by appending host adapter
|
|
|
218e99 |
pci address and port path, in RHEL-6.4, for usb-hub and usb-storage.
|
|
|
218e99 |
Also usb-net + usb-serial + usb-wacom, but those are disabled in RHEL.
|
|
|
218e99 |
|
|
|
218e99 |
rhel6 commit e91156bc452250291f72b82b43654540be7101be
|
|
|
218e99 |
|
|
|
218e99 |
usb-ccid has a unique serial in RHEL-7 but not in RHEL-6, so we need
|
|
|
218e99 |
a compat property for all RHEL-6.x machine types.
|
|
|
218e99 |
|
|
|
218e99 |
bugzilla: 953304
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
hw/i386/pc_piix.c | 24 ++++++++++++++++++++++++
|
|
|
218e99 |
1 file changed, 24 insertions(+)
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
hw/i386/pc_piix.c | 24 ++++++++++++++++++++++++
|
|
|
218e99 |
1 files changed, 24 insertions(+), 0 deletions(-)
|
|
|
218e99 |
|
|
|
218e99 |
diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
|
|
|
218e99 |
index da7701c..a19f155 100644
|
|
|
218e99 |
--- a/hw/i386/pc_piix.c
|
|
|
218e99 |
+++ b/hw/i386/pc_piix.c
|
|
|
218e99 |
@@ -860,6 +860,10 @@ static QEMUMachine pc_machine_rhel700 = {
|
|
|
218e99 |
.driver = "486-" TYPE_X86_CPU,\
|
|
|
218e99 |
.property = "level",\
|
|
|
218e99 |
.value = stringify(0),\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
+ .driver = "usb-ccid",\
|
|
|
218e99 |
+ .property = "serial",\
|
|
|
218e99 |
+ .value = "1",\
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
static void pc_init_rhel650(QEMUMachineInitArgs *args)
|
|
|
218e99 |
@@ -959,6 +963,14 @@ static QEMUMachine pc_machine_rhel640 = {
|
|
|
218e99 |
.driver = TYPE_X86_CPU,\
|
|
|
218e99 |
.property = "pmu",\
|
|
|
218e99 |
.value = "on",\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
+ .driver = "usb-hub",\
|
|
|
218e99 |
+ .property = "serial",\
|
|
|
218e99 |
+ .value = "314159",\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
+ .driver = "usb-storage",\
|
|
|
218e99 |
+ .property = "serial",\
|
|
|
218e99 |
+ .value = "1",\
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
static void pc_init_rhel630(QEMUMachineInitArgs *args)
|
|
|
218e99 |
@@ -1041,6 +1053,18 @@ static QEMUMachine pc_machine_rhel620 = {
|
|
|
218e99 |
.driver = "virtio-balloon-pci",\
|
|
|
218e99 |
.property = "event_idx",\
|
|
|
218e99 |
.value = "off",\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
+ .driver = "usb-kbd",\
|
|
|
218e99 |
+ .property = "serial",\
|
|
|
218e99 |
+ .value = "1",\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
+ .driver = "usb-mouse",\
|
|
|
218e99 |
+ .property = "serial",\
|
|
|
218e99 |
+ .value = "1",\
|
|
|
218e99 |
+ },{\
|
|
|
218e99 |
+ .driver = "usb-tablet",\
|
|
|
218e99 |
+ .property = "serial",\
|
|
|
218e99 |
+ .value = "1",\
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
static void pc_init_rhel610(QEMUMachineInitArgs *args)
|
|
|
218e99 |
--
|
|
|
218e99 |
1.7.1
|
|
|
218e99 |
|