@@ -310,6 +310,7 @@ static void hv_test_dev_class_init(ObjectClass *klass, void *data)
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->realize = hv_test_dev_realizefn;
+ dc->taints_security_policy = true;
}
static const TypeInfo hv_test_dev_info = {
@@ -199,6 +199,7 @@ static void testdev_class_init(ObjectClass *klass, void *data)
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->realize = testdev_realizefn;
+ dc->taints_security_policy = true;
}
static const TypeInfo testdev_info = {
@@ -340,6 +340,7 @@ static void pci_testdev_class_init(ObjectClass *klass, void *data)
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
dc->reset = qdev_pci_testdev_reset;
device_class_set_props(dc, pci_testdev_properties);
+ dc->taints_security_policy = true;
}
static const TypeInfo pci_testdev_info = {
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> --- hw/hyperv/hyperv_testdev.c | 1 + hw/misc/pc-testdev.c | 1 + hw/misc/pci-testdev.c | 1 + 3 files changed, 3 insertions(+)