apic: move target-dependent definitions to cpu.h
[qemu.git] / include / hw / compat.h
1 #ifndef HW_COMPAT_H
2 #define HW_COMPAT_H
3
4 #define HW_COMPAT_2_6 \
5 /* empty */
6
7 #define HW_COMPAT_2_5 \
8 {\
9 .driver = "isa-fdc",\
10 .property = "fallback",\
11 .value = "144",\
12 },{\
13 .driver = "pvscsi",\
14 .property = "x-old-pci-configuration",\
15 .value = "on",\
16 },{\
17 .driver = "pvscsi",\
18 .property = "x-disable-pcie",\
19 .value = "on",\
20 },\
21 {\
22 .driver = "vmxnet3",\
23 .property = "x-old-msi-offsets",\
24 .value = "on",\
25 },{\
26 .driver = "vmxnet3",\
27 .property = "x-disable-pcie",\
28 .value = "on",\
29 },
30
31 #define HW_COMPAT_2_4 \
32 {\
33 .driver = "virtio-blk-device",\
34 .property = "scsi",\
35 .value = "true",\
36 },{\
37 .driver = "e1000",\
38 .property = "extra_mac_registers",\
39 .value = "off",\
40 },{\
41 .driver = "virtio-pci",\
42 .property = "x-disable-pcie",\
43 .value = "on",\
44 },{\
45 .driver = "virtio-pci",\
46 .property = "migrate-extra",\
47 .value = "off",\
48 },{\
49 .driver = "fw_cfg_mem",\
50 .property = "dma_enabled",\
51 .value = "off",\
52 },{\
53 .driver = "fw_cfg_io",\
54 .property = "dma_enabled",\
55 .value = "off",\
56 },
57
58 #define HW_COMPAT_2_3 \
59 {\
60 .driver = "virtio-blk-pci",\
61 .property = "any_layout",\
62 .value = "off",\
63 },{\
64 .driver = "virtio-balloon-pci",\
65 .property = "any_layout",\
66 .value = "off",\
67 },{\
68 .driver = "virtio-serial-pci",\
69 .property = "any_layout",\
70 .value = "off",\
71 },{\
72 .driver = "virtio-9p-pci",\
73 .property = "any_layout",\
74 .value = "off",\
75 },{\
76 .driver = "virtio-rng-pci",\
77 .property = "any_layout",\
78 .value = "off",\
79 },
80
81 #define HW_COMPAT_2_2 \
82 /* empty */
83
84 #define HW_COMPAT_2_1 \
85 {\
86 .driver = "intel-hda",\
87 .property = "old_msi_addr",\
88 .value = "on",\
89 },{\
90 .driver = "VGA",\
91 .property = "qemu-extended-regs",\
92 .value = "off",\
93 },{\
94 .driver = "secondary-vga",\
95 .property = "qemu-extended-regs",\
96 .value = "off",\
97 },{\
98 .driver = "virtio-scsi-pci",\
99 .property = "any_layout",\
100 .value = "off",\
101 },{\
102 .driver = "usb-mouse",\
103 .property = "usb_version",\
104 .value = stringify(1),\
105 },{\
106 .driver = "usb-kbd",\
107 .property = "usb_version",\
108 .value = stringify(1),\
109 },{\
110 .driver = "virtio-pci",\
111 .property = "virtio-pci-bus-master-bug-migration",\
112 .value = "on",\
113 },
114
115 #endif /* HW_COMPAT_H */