[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 13/14] check: Only test virtio-input when it is comp
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 13/14] check: Only test virtio-input when it is compiled in |
Date: |
Tue, 17 Jul 2018 14:04:13 +0200 |
The full of it. Introspection is able to search for drivers that you
aren't there, so just disable it.
Signed-off-by: Juan Quintela <address@hidden>
---
hw/virtio/virtio-pci.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index 75c96990c0..987d7c0a5a 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -2524,6 +2524,7 @@ static const TypeInfo virtio_rng_pci_info = {
#endif
/* virtio-input-pci */
+#ifdef CONFIG_VIRTIO_INPUT
static Property virtio_input_pci_properties[] = {
DEFINE_PROP_UINT32("vectors", VirtIOPCIProxy, nvectors, 2),
DEFINE_PROP_END_OF_LIST(),
@@ -2645,6 +2646,7 @@ static const TypeInfo virtio_host_pci_info = {
.instance_init = virtio_host_initfn,
};
#endif
+#endif
/* virtio-pci-bus */
@@ -2696,6 +2698,7 @@ static void virtio_pci_register_types(void)
#ifdef CONFIG_VIRTIO_RNG
type_register_static(&virtio_rng_pci_info);
#endif
+#ifdef CONFIG_VIRTIO_INPUT
type_register_static(&virtio_input_pci_info);
type_register_static(&virtio_input_hid_pci_info);
type_register_static(&virtio_keyboard_pci_info);
@@ -2703,6 +2706,7 @@ static void virtio_pci_register_types(void)
type_register_static(&virtio_tablet_pci_info);
#ifdef CONFIG_LINUX
type_register_static(&virtio_host_pci_info);
+#endif
#endif
type_register_static(&virtio_pci_bus_info);
type_register_static(&virtio_pci_info);
--
2.17.1
- [Qemu-devel] [PATCH 04/14] check: Only test esp when it is compiled in, (continued)
- [Qemu-devel] [PATCH 04/14] check: Only test esp when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 05/14] check: Only test sga when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 02/14] check: Only test megasas when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 01/14] check: Only test ipmi when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 06/14] check: Only test usb smartcard when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 09/14] check: Only test virtio-balloon when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 07/14] check: Only test usb storage when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 08/14] check: Only test nvdim_acpi when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 13/14] check: Only test virtio-input when it is compiled in,
Juan Quintela <=
- [Qemu-devel] [PATCH 10/14] check: Only test virtio-serial when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 12/14] check: Only test virtio-gpu when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 14/14] check: Only test virtio-scsi when it is compiled in, Juan Quintela, 2018/07/17
- [Qemu-devel] [PATCH 11/14] check: Only test virtio-rng when it is compiled in, Juan Quintela, 2018/07/17
- Re: [Qemu-devel] [RFC 00/14] More patches to disable stuff, Thomas Huth, 2018/07/17