diff options
| author | Jason Wang | 2017-03-15 12:48:32 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2017-03-15 18:37:19 +0100 |
| commit | e45da653223869849877ee8f4b86f511f891d4f8 (patch) | |
| tree | 0f0c8f7df7e52be19b7c49836c8597bef1fb407d /include/hw/pci | |
| parent | virtio: destroy region cache during reset (diff) | |
| download | qemu-e45da653223869849877ee8f4b86f511f891d4f8.tar.gz qemu-e45da653223869849877ee8f4b86f511f891d4f8.tar.xz qemu-e45da653223869849877ee8f4b86f511f891d4f8.zip | |
virtio: validate address space cache during init
We don't check the return value of address_space_cache_init(), this
may lead buggy driver use incorrect region caches. Instead of
triggering an assert, catch and warn this early in
virtio_init_region_cache().
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/pci')
0 files changed, 0 insertions, 0 deletions
