- /* 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" },