aboutsummaryrefslogtreecommitdiff
path: root/hw/net/e1000e_core.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2018-04-05 19:41:47 +0200
committerJason Wang <jasowang@redhat.com>2018-07-20 08:30:48 +0800
commit4712c158c5276fd3c401152f4bb5c3fccf185946 (patch)
tree228699be967677c540afa6b0652d059740aa5c25 /hw/net/e1000e_core.h
parent9f2b67e1ca43c84ed37ebd027e7e77a0f2f8ef65 (diff)
e1000e: Prevent MSI/MSI-X storms
Only signal MSI/MSI-X events on rising edges. So far we re-triggered the interrupt sources even if the guest did no consumed the pending one, easily causing interrupt storms. Issue was observable with Linux 4.16 e1000e driver when MSI-X was used. Vector 2 was causing interrupt storms after the driver activated the device. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/net/e1000e_core.h')
-rw-r--r--hw/net/e1000e_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/net/e1000e_core.h b/hw/net/e1000e_core.h
index 7d8ff41890..63a15510cc 100644
--- a/hw/net/e1000e_core.h
+++ b/hw/net/e1000e_core.h
@@ -109,6 +109,8 @@ struct E1000Core {
NICState *owner_nic;
PCIDevice *owner;
void (*owner_start_recv)(PCIDevice *d);
+
+ uint32_t msi_causes_pending;
};
void