aboutsummaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/machine.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c
index 5d046a43e3..934c1bcceb 100644
--- a/hw/core/machine.c
+++ b/hw/core/machine.c
@@ -102,9 +102,26 @@ const size_t hw_compat_2_7_len = G_N_ELEMENTS(hw_compat_2_7);
GlobalProperty hw_compat_2_6[] = {
{ "virtio-mmio", "format_transport_address", "off" },
- /* Optional because not all virtio-pci devices support legacy mode */
- { "virtio-pci", "disable-modern", "on", .optional = true },
- { "virtio-pci", "disable-legacy", "off", .optional = true },
+ /*
+ * don't include devices which are modern-only
+ * ie keyboard, mouse, tablet, gpu, vga & crypto
+ */
+ { "virtio-9p-pci", "disable-modern", "on" },
+ { "virtio-9p-pci", "disable-legacy", "off" },
+ { "virtio-balloon-pci", "disable-modern", "on" },
+ { "virtio-balloon-pci", "disable-legacy", "off" },
+ { "virtio-blk-pci", "disable-modern", "on" },
+ { "virtio-blk-pci", "disable-legacy", "off" },
+ { "virtio-input-host-pci", "disable-modern", "on" },
+ { "virtio-input-host-pci", "disable-legacy", "off" },
+ { "virtio-net-pci", "disable-modern", "on" },
+ { "virtio-net-pci", "disable-legacy", "off" },
+ { "virtio-rng-pci", "disable-modern", "on" },
+ { "virtio-rng-pci", "disable-legacy", "off" },
+ { "virtio-scsi-pci", "disable-modern", "on" },
+ { "virtio-scsi-pci", "disable-legacy", "off" },
+ { "virtio-serial-pci", "disable-modern", "on" },
+ { "virtio-serial-pci", "disable-legacy", "off" },
};
const size_t hw_compat_2_6_len = G_N_ELEMENTS(hw_compat_2_6);