cirrus: switch to 4 MB video memory by default
[qemu.git] / include / hw / compat.h
1 #ifndef HW_COMPAT_H
2 #define HW_COMPAT_H
3
4 #define HW_COMPAT_2_8 \
5 {\
6 .driver = "fw_cfg_mem",\
7 .property = "x-file-slots",\
8 .value = stringify(0x10),\
9 },{\
10 .driver = "fw_cfg_io",\
11 .property = "x-file-slots",\
12 .value = stringify(0x10),\
13 },{\
14 .driver = "pflash_cfi01",\
15 .property = "old-multiple-chip-handling",\
16 .value = "on",\
17 },{\
18 .driver = "pci-bridge",\
19 .property = "shpc",\
20 .value = "on",\
21 },{\
22 .driver = "cirrus-vga",\
23 .property = "vgamem_mb",\
24 .value = "8",\
25 },{\
26 .driver = "isa-cirrus-vga",\
27 .property = "vgamem_mb",\
28 .value = "8",\
29 },
30
31 #define HW_COMPAT_2_7 \
32 {\
33 .driver = "virtio-pci",\
34 .property = "page-per-vq",\
35 .value = "on",\
36 },{\
37 .driver = "virtio-serial-device",\
38 .property = "emergency-write",\
39 .value = "off",\
40 },{\
41 .driver = "ioapic",\
42 .property = "version",\
43 .value = "0x11",\
44 },{\
45 .driver = "intel-iommu",\
46 .property = "x-buggy-eim",\
47 .value = "true",\
48 },{\
49 .driver = "virtio-pci",\
50 .property = "x-ignore-backend-features",\
51 .value = "on",\
52 },
53
54 #define HW_COMPAT_2_6 \
55 {\
56 .driver = "virtio-mmio",\
57 .property = "format_transport_address",\
58 .value = "off",\
59 },{\
60 .driver = "virtio-pci",\
61 .property = "disable-modern",\
62 .value = "on",\
63 },{\
64 .driver = "virtio-pci",\
65 .property = "disable-legacy",\
66 .value = "off",\
67 },
68
69 #define HW_COMPAT_2_5 \
70 {\
71 .driver = "isa-fdc",\
72 .property = "fallback",\
73 .value = "144",\
74 },{\
75 .driver = "pvscsi",\
76 .property = "x-old-pci-configuration",\
77 .value = "on",\
78 },{\
79 .driver = "pvscsi",\
80 .property = "x-disable-pcie",\
81 .value = "on",\
82 },\
83 {\
84 .driver = "vmxnet3",\
85 .property = "x-old-msi-offsets",\
86 .value = "on",\
87 },{\
88 .driver = "vmxnet3",\
89 .property = "x-disable-pcie",\
90 .value = "on",\
91 },
92
93 #define HW_COMPAT_2_4 \
94 {\
95 .driver = "virtio-blk-device",\
96 .property = "scsi",\
97 .value = "true",\
98 },{\
99 .driver = "e1000",\
100 .property = "extra_mac_registers",\
101 .value = "off",\
102 },{\
103 .driver = "virtio-pci",\
104 .property = "x-disable-pcie",\
105 .value = "on",\
106 },{\
107 .driver = "virtio-pci",\
108 .property = "migrate-extra",\
109 .value = "off",\
110 },{\
111 .driver = "fw_cfg_mem",\
112 .property = "dma_enabled",\
113 .value = "off",\
114 },{\
115 .driver = "fw_cfg_io",\
116 .property = "dma_enabled",\
117 .value = "off",\
118 },
119
120 #define HW_COMPAT_2_3 \
121 {\
122 .driver = "virtio-blk-pci",\
123 .property = "any_layout",\
124 .value = "off",\
125 },{\
126 .driver = "virtio-balloon-pci",\
127 .property = "any_layout",\
128 .value = "off",\
129 },{\
130 .driver = "virtio-serial-pci",\
131 .property = "any_layout",\
132 .value = "off",\
133 },{\
134 .driver = "virtio-9p-pci",\
135 .property = "any_layout",\
136 .value = "off",\
137 },{\
138 .driver = "virtio-rng-pci",\
139 .property = "any_layout",\
140 .value = "off",\
141 },{\
142 .driver = TYPE_PCI_DEVICE,\
143 .property = "x-pcie-lnksta-dllla",\
144 .value = "off",\
145 },
146
147 #define HW_COMPAT_2_2 \
148 /* empty */
149
150 #define HW_COMPAT_2_1 \
151 {\
152 .driver = "intel-hda",\
153 .property = "old_msi_addr",\
154 .value = "on",\
155 },{\
156 .driver = "VGA",\
157 .property = "qemu-extended-regs",\
158 .value = "off",\
159 },{\
160 .driver = "secondary-vga",\
161 .property = "qemu-extended-regs",\
162 .value = "off",\
163 },{\
164 .driver = "virtio-scsi-pci",\
165 .property = "any_layout",\
166 .value = "off",\
167 },{\
168 .driver = "usb-mouse",\
169 .property = "usb_version",\
170 .value = stringify(1),\
171 },{\
172 .driver = "usb-kbd",\
173 .property = "usb_version",\
174 .value = stringify(1),\
175 },{\
176 .driver = "virtio-pci",\
177 .property = "virtio-pci-bus-master-bug-migration",\
178 .value = "on",\
179 },
180
181 #endif /* HW_COMPAT_H */