summaryrefslogtreecommitdiffstats
path: root/block/blkdebug.c
diff options
context:
space:
mode:
authorDavid Hildenbrand2020-07-27 13:59:05 +0200
committerMichael S. Tsirkin2020-07-27 15:38:33 +0200
commitc22aba196341995f2e45c37eed36cc7be09e4bc3 (patch)
tree8f49854f6ce555a9cad549f96fc6e961f136741d /block/blkdebug.c
parentMerge remote-tracking branch 'remotes/dgibson/tags/ppc-for-5.1-20200727' into... (diff)
downloadqemu-c22aba196341995f2e45c37eed36cc7be09e4bc3.tar.gz
qemu-c22aba196341995f2e45c37eed36cc7be09e4bc3.tar.xz
qemu-c22aba196341995f2e45c37eed36cc7be09e4bc3.zip
virtio-mem-pci: force virtio version 1
Trying to run simple virtio-mem-pci examples currently fails with qemu-system-x86_64: -device virtio-mem-pci,id=vm0,memdev=mem0,node=0, requested-size=300M: device is modern-only, use disable-legacy=on due to the added safety checks in 9b3a35ec8236 ("virtio: verify that legacy support is not accidentally on"). As noted by Conny, we have to force virtio version 1. While at it, use qdev_realize() to set the parent bus and realize - like most other virtio-*-pci implementations. Fixes: 0b9a2443a48b ("virtio-pci: Proxy for virtio-mem") Reviewed-by: Cornelia Huck <cohuck@redhat.com> Cc: Cornelia Huck <cohuck@redhat.com> Cc: "Michael S. Tsirkin" <mst@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20200727115905.129397-1-david@redhat.com> Cc: qemu-stable@nongnu.org Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'block/blkdebug.c')
0 files changed, 0 insertions, 0 deletions