ivshmem: reset mask on device reset
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 23 Jun 2015 12:13:08 +0000 (14:13 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:49 +0000 (18:02 +0200)
The interrupt mask is a state value, it should be reset, like the
interrupt status.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/misc/ivshmem.c

index d5207ee..0dd8da1 100644 (file)
@@ -619,6 +619,7 @@ static void ivshmem_reset(DeviceState *d)
     IVShmemState *s = IVSHMEM(d);
 
     s->intrstatus = 0;
+    s->intrmask = 0;
     ivshmem_use_msix(s);
 }