diff options
author | Jason Wang <jasowang@redhat.com> | 2017-03-15 19:48:32 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-03-15 19:37:19 +0200 |
commit | e45da653223869849877ee8f4b86f511f891d4f8 (patch) | |
tree | 0f0c8f7df7e52be19b7c49836c8597bef1fb407d /include | |
parent | e0e2d644096c79a71099b176d08f465f6803a8b1 (diff) | |
download | qemu-e45da653223869849877ee8f4b86f511f891d4f8.zip qemu-e45da653223869849877ee8f4b86f511f891d4f8.tar.gz qemu-e45da653223869849877ee8f4b86f511f891d4f8.tar.bz2 |
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')
0 files changed, 0 insertions, 0 deletions