diff options
author | Li Qiang | 2020-09-19 10:27:06 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2020-09-29 08:15:24 +0200 |
commit | 2d69eba5fe52045b2c8b0d04fd3806414352afc1 (patch) | |
tree | 6790a25a6d1fca04016cd6455d5710a59b3e5b8a /hw/isa | |
parent | vhost-vsock-ccw: force virtio version 1 (diff) | |
download | qemu-2d69eba5fe52045b2c8b0d04fd3806414352afc1.tar.gz qemu-2d69eba5fe52045b2c8b0d04fd3806414352afc1.tar.xz qemu-2d69eba5fe52045b2c8b0d04fd3806414352afc1.zip |
virtio: update MemoryRegionCaches when guest set bad features
Current the 'virtio_set_features' only update the 'MemorRegionCaches'
when the 'virtio_set_features_nocheck' return '0' which means it is
not bad features. However the guest can still trigger the access of the
used vring after set bad features. In this situation it will cause assert
failure in 'ADDRESS_SPACE_ST_CACHED'.
Buglink: https://bugs.launchpad.net/qemu/+bug/1890333
Fixes: db812c4073c7 ("virtio: update MemoryRegionCaches when guest negotiates features")
Reported-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Li Qiang <liq3ea@163.com>
Message-Id: <20200919082706.6703-1-liq3ea@163.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/isa')
0 files changed, 0 insertions, 0 deletions