Commit b7e33cf
vcpu: Return proper vector when receiving EOI
The vector value returned along with End Of Interrupt (EOI) VM exit
is important as it indicates a userspace IOAPIC which interrupt needs
to be deasserted.
About KVM_EXIT_IOAPIC_EOI, KVM documentation mentions:
```
/* KVM_EXIT_IOAPIC_EOI */
struct {
__u8 vector;
} eoi;
Indicates that the VCPU's in-kernel local APIC received an EOI for a
level-triggered IOAPIC interrupt. This exit only triggers when the
IOAPIC is implemented in userspace (i.e. KVM_CAP_SPLIT_IRQCHIP is
enabled); the userspace IOAPIC should process the EOI and retrigger
the interrupt if it is still asserted. Vector is the LAPIC interrupt
vector for which the EOI was received.
```
Signed-off-by: Sebastien Boeuf <[email protected]>1 parent d48fdaa commit b7e33cf
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
729 | 734 | | |
730 | 735 | | |
731 | 736 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments