]> Git Repo - qemu.git/commitdiff
ivshmem: reset mask on device reset
authorMarc-André Lureau <[email protected]>
Tue, 23 Jun 2015 12:13:08 +0000 (14:13 +0200)
committerMarc-André Lureau <[email protected]>
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 <[email protected]>
Reviewed-by: Claudio Fontana <[email protected]>
hw/misc/ivshmem.c

index d5207eecc1dda6e604b314c3d73c7d4b07c0d5b0..0dd8da197a6486a6364f7c3a63e33e033f6b4cdd 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);
 }
 
This page took 0.028401 seconds and 4 git commands to generate.