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 | 503224f4c8d1469ea9c00a2017334a455044d822 (patch) | |
tree | e15b626fc048eb9fedac41f248837b4a400e08d9 /hw/core/machine.c | |
parent | 43df70a9ddfc40961188bf1c6f67fed3b899b8da (diff) |
compat: replace PC_COMPAT_2_10 & HW_COMPAT_2_10 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/machine.c')
-rw-r--r-- | hw/core/machine.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c index 41f37ee4d4..7673454a66 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -88,6 +88,19 @@ GlobalProperty hw_compat_2_11[] = { }; const size_t hw_compat_2_11_len = G_N_ELEMENTS(hw_compat_2_11); +GlobalProperty hw_compat_2_10[] = { + { + .driver = "virtio-mouse-device", + .property = "wheel-axis", + .value = "false", + },{ + .driver = "virtio-tablet-device", + .property = "wheel-axis", + .value = "false", + }, +}; +const size_t hw_compat_2_10_len = G_N_ELEMENTS(hw_compat_2_10); + static char *machine_get_accel(Object *obj, Error **errp) { MachineState *ms = MACHINE(obj); |