Patchwork [8/7] ivshmem: Reset MSI-X state on device reset

login
register
mail settings
Submitter Jan Kiszka
Date June 8, 2011, 10:46 a.m.
Message ID <4DEF5315.9070206@siemens.com>
Download mbox | patch
Permalink /patch/99405/
State New
Headers show

Comments

Jan Kiszka - June 8, 2011, 10:46 a.m.
CC: Cam Macdonell <cam@cs.ualberta.ca>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 hw/ivshmem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/ivshmem.c b/hw/ivshmem.c
index 7b19a81..386f19f 100644
--- a/hw/ivshmem.c
+++ b/hw/ivshmem.c
@@ -545,6 +545,7 @@  static void ivshmem_reset(DeviceState *d)
 {
     IVShmemState *s = DO_UPCAST(IVShmemState, dev.qdev, d);
 
+    msix_reset(&s->dev);
     s->intrstatus = 0;
     return;
 }