yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From 92d723eb5a17c33f9b446f59ebc453c05614a6ac Mon Sep 17 00:00:00 2001
9ae3a8
From: Markus Armbruster <armbru@redhat.com>
9ae3a8
Date: Sat, 2 Nov 2013 15:24:00 +0100
9ae3a8
Subject: [PATCH 51/81] rhel: Make "ccid-card-emulated" device unavailable
9ae3a8
9ae3a8
RH-Author: Markus Armbruster <armbru@redhat.com>
9ae3a8
Message-id: <1383405840-6221-2-git-send-email-armbru@redhat.com>
9ae3a8
Patchwork-id: 55273
9ae3a8
O-Subject: [PATCH 7.0 qemu-kvm 1/1] rhel: Make "ccid-card-emulated" device unavailable
9ae3a8
Bugzilla: 1001123
9ae3a8
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
RH-Acked-by: Marcel Apfelbaum <marcel.a@redhat.com>
9ae3a8
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
9ae3a8
9ae3a8
From: Markus Armbruster <armbru@redhat.com>
9ae3a8
9ae3a8
We can't just --disable-smartcard-nss, because that also disables
9ae3a8
libcacard.  Instead, make it unavailable with -device / device_add.
9ae3a8
Suffices, because there's no other way to get it: the device model
9ae3a8
defines no external symbols, and the driver name doesn't occur in code
9ae3a8
outside the device model.
9ae3a8
9ae3a8
Signed-off-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
---
9ae3a8
 hw/usb/ccid-card-emulated.c | 2 ++
9ae3a8
 1 file changed, 2 insertions(+)
9ae3a8
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 hw/usb/ccid-card-emulated.c |    2 ++
9ae3a8
 1 files changed, 2 insertions(+), 0 deletions(-)
9ae3a8
9ae3a8
diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c
9ae3a8
index aa913df..037a9ec 100644
9ae3a8
--- a/hw/usb/ccid-card-emulated.c
9ae3a8
+++ b/hw/usb/ccid-card-emulated.c
9ae3a8
@@ -595,6 +595,8 @@ static void emulated_class_initfn(ObjectClass *klass, void *data)
9ae3a8
     set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
9ae3a8
     dc->desc = "emulated smartcard";
9ae3a8
     dc->props = emulated_card_properties;
9ae3a8
+    /* Disabled for Red Hat Enterprise Linux: */
9ae3a8
+    dc->cannot_instantiate_with_device_add_yet = true;
9ae3a8
 }
9ae3a8
 
9ae3a8
 static const TypeInfo emulated_card_info = {
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8