mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
compat: replace PC_COMPAT_2_12 & HW_COMPAT_2_12 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
ddb3235de1
commit
0d47310b03
10 changed files with 62 additions and 66 deletions
|
@ -38,6 +38,35 @@ const size_t hw_compat_3_1_len = G_N_ELEMENTS(hw_compat_3_1);
|
|||
GlobalProperty hw_compat_3_0[] = {};
|
||||
const size_t hw_compat_3_0_len = G_N_ELEMENTS(hw_compat_3_0);
|
||||
|
||||
GlobalProperty hw_compat_2_12[] = {
|
||||
{
|
||||
.driver = "migration",
|
||||
.property = "decompress-error-check",
|
||||
.value = "off",
|
||||
},{
|
||||
.driver = "hda-audio",
|
||||
.property = "use-timer",
|
||||
.value = "false",
|
||||
},{
|
||||
.driver = "cirrus-vga",
|
||||
.property = "global-vmstate",
|
||||
.value = "true",
|
||||
},{
|
||||
.driver = "VGA",
|
||||
.property = "global-vmstate",
|
||||
.value = "true",
|
||||
},{
|
||||
.driver = "vmware-svga",
|
||||
.property = "global-vmstate",
|
||||
.value = "true",
|
||||
},{
|
||||
.driver = "qxl-vga",
|
||||
.property = "global-vmstate",
|
||||
.value = "true",
|
||||
},
|
||||
};
|
||||
const size_t hw_compat_2_12_len = G_N_ELEMENTS(hw_compat_2_12);
|
||||
|
||||
static char *machine_get_accel(Object *obj, Error **errp)
|
||||
{
|
||||
MachineState *ms = MACHINE(obj);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue