compat: replace PC_COMPAT_2_8 & HW_COMPAT_2_8 macros
Use static arrays instead. Suggested-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
3e8031525a
commit
edc24ccda4
10 changed files with 87 additions and 86 deletions
|
|
@ -306,4 +306,7 @@ extern const size_t hw_compat_2_10_len;
|
|||
extern GlobalProperty hw_compat_2_9[];
|
||||
extern const size_t hw_compat_2_9_len;
|
||||
|
||||
extern GlobalProperty hw_compat_2_8[];
|
||||
extern const size_t hw_compat_2_8_len;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,49 +1,6 @@
|
|||
#ifndef HW_COMPAT_H
|
||||
#define HW_COMPAT_H
|
||||
|
||||
#define HW_COMPAT_2_8 \
|
||||
{\
|
||||
.driver = "fw_cfg_mem",\
|
||||
.property = "x-file-slots",\
|
||||
.value = stringify(0x10),\
|
||||
},{\
|
||||
.driver = "fw_cfg_io",\
|
||||
.property = "x-file-slots",\
|
||||
.value = stringify(0x10),\
|
||||
},{\
|
||||
.driver = "pflash_cfi01",\
|
||||
.property = "old-multiple-chip-handling",\
|
||||
.value = "on",\
|
||||
},{\
|
||||
.driver = "pci-bridge",\
|
||||
.property = "shpc",\
|
||||
.value = "on",\
|
||||
},{\
|
||||
.driver = TYPE_PCI_DEVICE,\
|
||||
.property = "x-pcie-extcap-init",\
|
||||
.value = "off",\
|
||||
},{\
|
||||
.driver = "virtio-pci",\
|
||||
.property = "x-pcie-deverr-init",\
|
||||
.value = "off",\
|
||||
},{\
|
||||
.driver = "virtio-pci",\
|
||||
.property = "x-pcie-lnkctl-init",\
|
||||
.value = "off",\
|
||||
},{\
|
||||
.driver = "virtio-pci",\
|
||||
.property = "x-pcie-pm-init",\
|
||||
.value = "off",\
|
||||
},{\
|
||||
.driver = "cirrus-vga",\
|
||||
.property = "vgamem_mb",\
|
||||
.value = "8",\
|
||||
},{\
|
||||
.driver = "isa-cirrus-vga",\
|
||||
.property = "vgamem_mb",\
|
||||
.value = "8",\
|
||||
},
|
||||
|
||||
#define HW_COMPAT_2_7 \
|
||||
{\
|
||||
.driver = "virtio-pci",\
|
||||
|
|
|
|||
|
|
@ -312,33 +312,8 @@ extern const size_t pc_compat_2_10_len;
|
|||
extern GlobalProperty pc_compat_2_9[];
|
||||
extern const size_t pc_compat_2_9_len;
|
||||
|
||||
#define PC_COMPAT_2_8 \
|
||||
HW_COMPAT_2_8 \
|
||||
{\
|
||||
.driver = TYPE_X86_CPU,\
|
||||
.property = "tcg-cpuid",\
|
||||
.value = "off",\
|
||||
},\
|
||||
{\
|
||||
.driver = "kvmclock",\
|
||||
.property = "x-mach-use-reliable-get-clock",\
|
||||
.value = "off",\
|
||||
},\
|
||||
{\
|
||||
.driver = "ICH9-LPC",\
|
||||
.property = "x-smi-broadcast",\
|
||||
.value = "off",\
|
||||
},\
|
||||
{\
|
||||
.driver = TYPE_X86_CPU,\
|
||||
.property = "vmware-cpuid-freq",\
|
||||
.value = "off",\
|
||||
},\
|
||||
{\
|
||||
.driver = "Haswell-" TYPE_X86_CPU,\
|
||||
.property = "stepping",\
|
||||
.value = "1",\
|
||||
},
|
||||
extern GlobalProperty pc_compat_2_8[];
|
||||
extern const size_t pc_compat_2_8_len;
|
||||
|
||||
#define PC_COMPAT_2_7 \
|
||||
HW_COMPAT_2_7 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue