qemu-e2k/hw/core
Stefano Garzarella d55f518248 virtio: skip legacy support check on machine types less than 5.1
Commit 9b3a35ec82 ("virtio: verify that legacy support is not accidentally
on") added a check that returns an error if legacy support is on, but the
device does not support legacy.

Unfortunately some devices were wrongly declared legacy capable even if
they were not (e.g vhost-vsock).

To avoid migration issues, we add a virtio-device property
(x-disable-legacy-check) to skip the legacy error, printing a warning
instead, for machine types < 5.1.

Cc: qemu-stable@nongnu.org
Fixes: 9b3a35ec82 ("virtio: verify that legacy support is not accidentally on")
Suggested-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Suggested-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20200921122506.82515-2-sgarzare@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2020-09-29 02:15:24 -04:00
..
bus.c
clock-vmstate.c
clock.c hw/clock: Let clock_set() return boolean value 2020-08-28 10:02:44 +01:00
cpu.c qemu/atomic.h: rename atomic_ to qatomic_ 2020-09-23 16:07:44 +01:00
fw-path-provider.c
generic-loader.c
hotplug.c
irq.c Use DECLARE_*CHECKER* macros 2020-09-09 09:27:09 -04:00
Kconfig
loader-fit.c
loader.c
machine-hmp-cmds.c cphp: remove deprecated cpu-add command(s) 2020-09-29 02:14:30 -04:00
machine-qmp-cmds.c cphp: remove deprecated cpu-add command(s) 2020-09-29 02:14:30 -04:00
machine.c virtio: skip legacy support check on machine types less than 5.1 2020-09-29 02:15:24 -04:00
meson.build
nmi.c
null-machine.c
numa.c numa: hmat: fix cache size check 2020-08-27 13:54:37 -04:00
or-irq.c
platform-bus.c
ptimer.c
qdev-clock.c hw/qdev-clock: Avoid calling qdev_connect_clock_in after DeviceRealize 2020-08-28 10:02:46 +01:00
qdev-fw.c
qdev-properties-system.c qom: simplify object_find_property / object_class_find_property 2020-09-22 16:45:16 -04:00
qdev-properties.c
qdev.c
register.c core/register: Specify instance_size in the TypeInfo 2020-09-25 16:52:24 -07:00
reset.c
resettable.c
split-irq.c
stream.c
sysbus.c qom: simplify object_find_property / object_class_find_property 2020-09-22 16:45:16 -04:00
trace-events
trace.h
uboot_image.h
vm-change-state-handler.c
vmstate-if.c