diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-06-23 14:13:08 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2015-10-24 18:02:49 +0200 |
commit | 972ad21553fd46738eea91f0085c7bc32cf68d86 (patch) | |
tree | 32de4f451d7a3fceb0eb35c181b4d753cd2e601d /hw/misc | |
parent | 1ee57de444ac7dd0cdb091fec318ba056ed173fd (diff) | |
download | qemu-972ad21553fd46738eea91f0085c7bc32cf68d86.zip qemu-972ad21553fd46738eea91f0085c7bc32cf68d86.tar.gz qemu-972ad21553fd46738eea91f0085c7bc32cf68d86.tar.bz2 |
ivshmem: reset mask on device reset
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>
Diffstat (limited to 'hw/misc')
-rw-r--r-- | hw/misc/ivshmem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c index d5207ee..0dd8da1 100644 --- a/hw/misc/ivshmem.c +++ b/hw/misc/ivshmem.c @@ -619,6 +619,7 @@ static void ivshmem_reset(DeviceState *d) IVShmemState *s = IVSHMEM(d); s->intrstatus = 0; + s->intrmask = 0; ivshmem_use_msix(s); } |