On Mon, 13 Mar 2017 14:29:43 +0800
Jason Wang <[email protected]> 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 <[email protected]>
> Cc: Paolo Bonzini <[email protected]>
> Signed-off-by: Jason Wang <[email protected]>
> ---
>  hw/virtio/virtio.c | 33 +++++++++++++++++++++++++++------
>  1 file changed, 27 insertions(+), 6 deletions(-)

Reviewed-by: Cornelia Huck <[email protected]>


Reply via email to