Re: [PATCH] virtio: update MemoryRegionCaches when guest set bad features

2020-09-20 Thread Paolo Bonzini
On 19/09/20 10:27, Li Qiang wrote: > 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 sit

[PATCH] virtio: update MemoryRegionCaches when guest set bad features

2020-09-19 Thread Li Qiang
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 'ADD