|
|
218e99 |
From 300a7cf7103f2bad1767dbb9f4a805bb2199fb7f Mon Sep 17 00:00:00 2001
|
|
|
218e99 |
From: Markus Armbruster <armbru@redhat.com>
|
|
|
218e99 |
Date: Sat, 2 Nov 2013 15:39:00 +0100
|
|
|
218e99 |
Subject: [PATCH 62/81] rhel: Make "pci-serial-2x" and "pci-serial-4x" device unavailable
|
|
|
218e99 |
|
|
|
218e99 |
RH-Author: Markus Armbruster <armbru@redhat.com>
|
|
|
218e99 |
Message-id: <1383406740-6461-2-git-send-email-armbru@redhat.com>
|
|
|
218e99 |
Patchwork-id: 55276
|
|
|
218e99 |
O-Subject: [PATCH 7.0 qemu-kvm 1/1] rhel: Make "pci-serial-2x" and "pci-serial-4x" device unavailable
|
|
|
218e99 |
Bugzilla: 1001180
|
|
|
218e99 |
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
218e99 |
RH-Acked-by: Bandan Das <bsd@redhat.com>
|
|
|
218e99 |
|
|
|
218e99 |
From: Markus Armbruster <armbru@redhat.com>
|
|
|
218e99 |
|
|
|
218e99 |
We can't just drop CONFIG_SERIAL_PCI, because we still want
|
|
|
218e99 |
"pci-serial". Instead, make them unavailable with -device /
|
|
|
218e99 |
device_add. Suffices, because there's no other way to get it: the
|
|
|
218e99 |
device model defines no external symbols, and the driver name doesn't
|
|
|
218e99 |
occur in code outside the device model.
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Markus Armbruster <armbru@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
hw/char/serial-pci.c | 4 ++++
|
|
|
218e99 |
1 file changed, 4 insertions(+)
|
|
|
218e99 |
|
|
|
218e99 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
218e99 |
---
|
|
|
218e99 |
hw/char/serial-pci.c | 4 ++++
|
|
|
218e99 |
1 files changed, 4 insertions(+), 0 deletions(-)
|
|
|
218e99 |
|
|
|
218e99 |
diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c
|
|
|
218e99 |
index 77fec01..bfe686b 100644
|
|
|
218e99 |
--- a/hw/char/serial-pci.c
|
|
|
218e99 |
+++ b/hw/char/serial-pci.c
|
|
|
218e99 |
@@ -207,6 +207,8 @@ static void multi_2x_serial_pci_class_initfn(ObjectClass *klass, void *data)
|
|
|
218e99 |
dc->vmsd = &vmstate_pci_multi_serial;
|
|
|
218e99 |
dc->props = multi_2x_serial_pci_properties;
|
|
|
218e99 |
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
|
|
218e99 |
+ /* Disabled for Red Hat Enterprise Linux: */
|
|
|
218e99 |
+ dc->cannot_instantiate_with_device_add_yet = true;
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
static void multi_4x_serial_pci_class_initfn(ObjectClass *klass, void *data)
|
|
|
218e99 |
@@ -222,6 +224,8 @@ static void multi_4x_serial_pci_class_initfn(ObjectClass *klass, void *data)
|
|
|
218e99 |
dc->vmsd = &vmstate_pci_multi_serial;
|
|
|
218e99 |
dc->props = multi_4x_serial_pci_properties;
|
|
|
218e99 |
set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
|
|
|
218e99 |
+ /* Disabled for Red Hat Enterprise Linux: */
|
|
|
218e99 |
+ dc->cannot_instantiate_with_device_add_yet = true;
|
|
|
218e99 |
}
|
|
|
218e99 |
|
|
|
218e99 |
static const TypeInfo serial_pci_info = {
|
|
|
218e99 |
--
|
|
|
218e99 |
1.7.1
|
|
|
218e99 |
|