diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-05-23 11:43:34 +0900 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2023-05-23 15:20:15 +0800 |
commit | ad431f0f8254e808a20987804cff1b38de089e47 (patch) | |
tree | 1ed35f623de7b9c36ec41110a0956312eec60a3a /scripts/ci | |
parent | 3dfc616eabc18f036511178bf7551f34abfd19cb (diff) | |
download | qemu-ad431f0f8254e808a20987804cff1b38de089e47.zip qemu-ad431f0f8254e808a20987804cff1b38de089e47.tar.gz qemu-ad431f0f8254e808a20987804cff1b38de089e47.tar.bz2 |
e1000e: Notify only new interrupts
In MSI-X mode, if there are interrupts already notified but not cleared
and a new interrupt arrives, e1000e incorrectly notifies the notified
ones again along with the new one.
To fix this issue, replace e1000e_update_interrupt_state() with
two new functions: e1000e_raise_interrupts() and
e1000e_lower_interrupts(). These functions don't only raise or lower
interrupts, but it also performs register writes which updates the
interrupt state. Before it performs a register write, these function
determines the interrupts already raised, and compares with the
interrupts raised after the register write to determine the interrupts
to notify.
The introduction of these functions made tracepoints which assumes that
the caller of e1000e_update_interrupt_state() performs register writes
obsolete. These tracepoints are now removed, and alternative ones are
added to the new functions.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'scripts/ci')
0 files changed, 0 insertions, 0 deletions