[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/14] check: Only test virtio-rng when it is compil
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 11/14] check: Only test virtio-rng when it is compiled in |
Date: |
Tue, 17 Jul 2018 14:04:11 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
hw/virtio/virtio-pci.c | 6 ++++--
tests/Makefile.include | 4 ++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index bdbc7ab78d..75c96990c0 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -2472,7 +2472,7 @@ static const TypeInfo virtio_net_pci_info = {
};
/* virtio-rng-pci */
-
+#ifdef CONFIG_VIRTIO_RNG
static void virtio_rng_pci_realize(VirtIOPCIProxy *vpci_dev, Error **errp)
{
VirtIORngPCI *vrng = VIRTIO_RNG_PCI(vpci_dev);
@@ -2521,7 +2521,7 @@ static const TypeInfo virtio_rng_pci_info = {
.instance_init = virtio_rng_initfn,
.class_init = virtio_rng_pci_class_init,
};
-
+#endif
/* virtio-input-pci */
static Property virtio_input_pci_properties[] = {
@@ -2693,7 +2693,9 @@ static const TypeInfo virtio_pci_bus_info = {
static void virtio_pci_register_types(void)
{
+#ifdef CONFIG_VIRTIO_RNG
type_register_static(&virtio_rng_pci_info);
+#endif
type_register_static(&virtio_input_pci_info);
type_register_static(&virtio_input_hid_pci_info);
type_register_static(&virtio_keyboard_pci_info);
diff --git a/tests/Makefile.include b/tests/Makefile.include
index 7feda20577..a9cb5e926b 100644
--- a/tests/Makefile.include
+++ b/tests/Makefile.include
@@ -195,8 +195,8 @@ check-qtest-virtio-$(CONFIG_VIRTIO_BALLOON) +=
tests/virtio-balloon-test$(EXESUF
gcov-files-virtio-$(CONFIG_VIRTIO_BALLOON) +=
i386-softmmu/hw/virtio/virtio-balloon.c
check-qtest-virtio-y += tests/virtio-blk-test$(EXESUF)
gcov-files-virtio-y += i386-softmmu/hw/block/virtio-blk.c
-check-qtest-virtio-y += tests/virtio-rng-test$(EXESUF)
-gcov-files-virtio-y += hw/virtio/virtio-rng.c
+check-qtest-virtio-$(CONFIG_VIRTIO_RNG) += tests/virtio-rng-test$(EXESUF)
+gcov-files-virtio-$(CONFIG_VIRTIO_RNG) += hw/virtio/virtio-rng.c
check-qtest-virtio-y += tests/virtio-scsi-test$(EXESUF)
gcov-files-virtio-y += i386-softmmu/hw/scsi/virtio-scsi.c
ifeq ($(CONFIG_VIRTIO)$(CONFIG_VIRTFS)$(CONFIG_PCI),yyy)
--
2.17.1
- [Qemu-devel] [PATCH 06/14] check: Only test usb smartcard when it is compiled in, (continued)
- [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, 2018/07/17
- [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 <=
- Re: [Qemu-devel] [RFC 00/14] More patches to disable stuff, Thomas Huth, 2018/07/17
Re: [Qemu-devel] [RFC 00/14] More patches to disable stuff, Paolo Bonzini, 2018/07/17