On Mon, 13 Mar 2017 14:29:43 +0800 Jason Wang <jasow...@redhat.com> wrote:
> 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.h...@de.ibm.com> > Cc: Paolo Bonzini <pbonz...@redhat.com> > Signed-off-by: Jason Wang <jasow...@redhat.com> > --- > hw/virtio/virtio.c | 33 +++++++++++++++++++++++++++------ > 1 file changed, 27 insertions(+), 6 deletions(-) Reviewed-by: Cornelia Huck <cornelia.h...@de.ibm.com>