diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-12-12 19:36:30 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-01-07 16:18:41 +0400 |
commit | 43df70a9ddfc40961188bf1c6f67fed3b899b8da (patch) | |
tree | b1438ab3cfbeaac120df707d6f61d730ba13a2bd /hw/core | |
parent | 0d47310b031e62883faf38a6fda6e262a2f00d7a (diff) | |
download | qemu-43df70a9ddfc40961188bf1c6f67fed3b899b8da.zip qemu-43df70a9ddfc40961188bf1c6f67fed3b899b8da.tar.gz qemu-43df70a9ddfc40961188bf1c6f67fed3b899b8da.tar.bz2 |
compat: replace PC_COMPAT_2_11 & HW_COMPAT_2_11 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>
Diffstat (limited to 'hw/core')
-rw-r--r-- | hw/core/machine.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c index ae94f5e..41f37ee 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -67,6 +67,27 @@ GlobalProperty hw_compat_2_12[] = { }; const size_t hw_compat_2_12_len = G_N_ELEMENTS(hw_compat_2_12); +GlobalProperty hw_compat_2_11[] = { + { + .driver = "hpet", + .property = "hpet-offset-saved", + .value = "false", + },{ + .driver = "virtio-blk-pci", + .property = "vectors", + .value = "2", + },{ + .driver = "vhost-user-blk-pci", + .property = "vectors", + .value = "2", + },{ + .driver = "e1000", + .property = "migrate_tso_props", + .value = "off", + }, +}; +const size_t hw_compat_2_11_len = G_N_ELEMENTS(hw_compat_2_11); + static char *machine_get_accel(Object *obj, Error **errp) { MachineState *ms = MACHINE(obj); |