x86/intr: introduce EOI callbacks and fix vPT
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest12 patches 15 repliesIn review
- v311 patches 39 repliesSuperseded
- v211 patches 28 repliesSuperseded
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | x86/rtc: drop code related to strict modexen/ xen/ | +2 | 7 replies | |
| 2/12 | x86/vlapic: introduce an EOI callback mechanismxen/ xen/ | +78 | 1 reply | |
| 3/12 | x86/vmsi: use the newly introduced EOI callbacksxen/ xen/ xen/ +1 more | +24 | 0 replies | |
| 4/12 | x86/vioapic: switch to use the EOI callback mechanismxen/ xen/ | +89 | 1 reply | |
| 5/12 | x86/hvm: allowing registering EOI callbacks for GSIsxen/ xen/ xen/ +2 more | +137 | 2 replies | |
| 6/12 | x86/dpci: move codexen/ | +81 | 0 replies | |
| 7/12 | x86/dpci: switch to use a GSI EOI callbackxen/ xen/ xen/ +2 more | +54 | 1 reply | |
| 8/12 | x86/vpt: switch interrupt injection modelxen/ xen/ xen/ +1 more | +157 | 1 reply | |
| 9/12 | x86/irq: remove unused parameter from hvm_isa_irq_assertxen/ xen/ xen/ +3 more | +6 | 1 reply | |
| 10/12 | x86/irq: drop return value from hvm_ioapic_assertxen/ xen/ | +3 | 1 reply | |
| 11/12 | x86/vpt: remove vPT timers per-vCPU listsxen/ xen/ xen/ +3 more | +25 | 0 replies | |
| 12/12 | x86/vpt: introduce a per-vPT lockxen/ xen/ xen/ +5 more | +33 | 0 replies |
Reviews trailers per patch
9 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich |
|---|---|
| 1/12 | |
| 2/12 | R-b |
| 3/12 | R-b |
| 4/12 | R-b |
| 5/12 | R-b |
| 6/12 | A-b |
| 7/12 | |
| 8/12 | |
| 9/12 | A-b |
| 10/12 | A-b |
| 11/12 | R-b |
| 12/12 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 00/12] x86/intr: introduce EOI callbacks and fix vPT
Hello,
The following series introduces EOI callbacks and switches a number of subsystems to use them. The first one is vmsi and dpci, which are quite straight forward to switch since they used to open code hooks in the EOI handlers.
Finally HVM virtual timers are also switched to a different model where EOI callbacks are used instead of checking at every return to guest whether a timer interrupt is being injected. Note that such change also fixes a bug in virtual periodic timers that prevented injecting to a vCPU different than the one where the timer is assigned (and that would currently match the i8259 target).
Those changes are paired together so that practical applications of having EOI callbacks can be seen in action.
Note that further cleanup can be done, but I think the series is already big enough and provides a clear benefit.
A couple of notes from the testing performed:
- PVH dom0.
- Windows guest, limited to 2% capacity to test delay for missed ticks mode - time is consistent in the guest.
- Windows guest migration.
- PCI passthrough to a guest.
Thanks, Roger.
Roger Pau Monne (12):
x86/rtc: drop code related to strict mode x86/vlapic: introduce an EOI callback mechanism x86/vmsi: use the newly introduced EOI callbacks x86/vioapic: switch to use the EOI callback mechanism x86/hvm: allowing registering EOI callbacks for GSIs x86/dpci: move code
x86/dpci: switch to use a GSI EOI callback x86/vpt: switch interrupt injection model x86/irq: remove unused parameter from hvm_isa_irq_assert x86/irq: drop return value from hvm_ioapic_assert x86/vpt: remove vPT timers per-vCPU lists x86/vpt: introduce a per-vPT lock
xen/arch/x86/domain.c | 4 +- xen/arch/x86/emul-i8254.c | 1 + xen/arch/x86/hvm/dm.c | 2 +- xen/arch/x86/hvm/hpet.c | 8 +- xen/arch/x86/hvm/hvm.c | 23 +- xen/arch/x86/hvm/irq.c | 93 +++++- xen/arch/x86/hvm/pmtimer.c | 2 +- xen/arch/x86/hvm/rtc.c | 30 +- xen/arch/x86/hvm/svm/intr.c | 3 - xen/arch/x86/hvm/vioapic.c | 144 ++++++--- xen/arch/x86/hvm/vlapic.c | 72 ++++- xen/arch/x86/hvm/vmsi.c | 35 +- xen/arch/x86/hvm/vmx/intr.c | 59 ---- xen/arch/x86/hvm/vpic.c | 8 +- xen/arch/x86/hvm/vpt.c | 514 +++++++++--------------------- xen/drivers/passthrough/x86/hvm.c | 223 ++++++++----- xen/include/asm-x86/hvm/io.h | 3 +- xen/include/asm-x86/hvm/irq.h | 28 +- xen/include/asm-x86/hvm/vcpu.h | 4 - xen/include/asm-x86/hvm/vlapic.h | 19 +- xen/include/asm-x86/hvm/vpt.h | 32 +- 21 files changed, 630 insertions(+), 677 deletions(-)
Signature · 1 line
2.30.1