Skip to content

Use eoi to track RTC interrupt delivery status

Yang Zhang kvm 10 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest7 patches 3 repliesApplied
  2. v97 patches 4 repliesSuperseded
  3. v87 patches 5 repliesSuperseded
Earlier versions · 7
VersionPostedPatchesRepliesStatus
v77 patches14 repliesSuperseded
v66 patches26 repliesSuperseded
v56 patches10 repliesSuperseded
v47 patches11 repliesSuperseded
v38 patches2 repliesSuperseded
v28 patches13 repliesSuperseded
v15 patches4 repliesSuperseded

Changes in v10 from the cover letter

* Remove irq check and line_status check from rtc_irq_check_coalesced() to kvm_ioapic_set_irq().
* Rebase on top of KVM.

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/7KVM: Add vcpu info to ioapic_update_eoi()arch/x86/kvm/lapic.c virt/kvm/ioapic.c virt/kvm/ioapic.h+9 -80 replies
2/7KVM: Introduce struct rtc_statusvirt/kvm/ioapic.h+12 -00 replies
3/7KVM: Return destination vcpu on interrupt injectionarch/x86/kvm/lapic.c arch/x86/kvm/lapic.h virt/kvm/ioapic.c +2 more+27 -190 replies
4/7KVM: Add reset/restore rtc_status supportarch/x86/kvm/lapic.c arch/x86/kvm/lapic.h virt/kvm/ioapic.c +1 more+70 -00 replies
5/7KVM: Force vmexit with virtual interrupt deliveryvirt/kvm/ioapic.c+1 -10 replies
6/7KVM: Let ioapic know the irq line statusarch/x86/kvm/i8254.c arch/x86/kvm/x86.c include/linux/kvm_host.h +6 more+54 -371 reply
7/7KVM: Use eoi to track RTC interrupt delivery statusvirt/kvm/ioapic.c+35 -10 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGleb Natapov
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/7] Use eoi to track RTC interrupt delivery status

From: Yang Zhang <[email protected]>

Current interrupt coalescing logci which only used by RTC has conflict with Posted Interrupt.

This patch introduces a new mechinism to use eoi to track interrupt:
When delivering an interrupt to vcpu, the pending_eoi set to number of vcpu that received the interrupt. And decrease it when each vcpu writing eoi. No subsequent RTC interrupt can deliver to vcpu until all vcpus write eoi.

Changes from v9 to v10
* Remove irq check and line_status check from rtc_irq_check_coalesced() to kvm_ioapic_set_irq().
* Rebase on top of KVM.

Changes from v8 to v9
* Removing pass vector to __rtc_irq_eoi_tracking_restore_one.
* Rebase on top of KVM.

Changes from v7 to v8
* Revamping restore logic.
* Add BUG_ON to check pending_eoi.
* Rebase on top of KVM.

Yang Zhang (7):
KVM: Add vcpu info to ioapic_update_eoi()
KVM: Introduce struct rtc_status
KVM: Return destination vcpu on interrupt injection
KVM: Add reset/restore rtc_status support
KVM: Force vmexit with virtual interrupt delivery
KVM: Let ioapic know the irq line status
KVM: Use eoi to track RTC interrupt delivery status

 arch/x86/kvm/i8254.c     |    4 +-
 arch/x86/kvm/lapic.c     |   36 ++++++++++----
 arch/x86/kvm/lapic.h     |    7 ++-
 arch/x86/kvm/x86.c       |    6 ++-
 include/linux/kvm_host.h |   11 +++--
 virt/kvm/assigned-dev.c  |   13 +++--
 virt/kvm/eventfd.c       |   15 +++--
 virt/kvm/ioapic.c        |  126 ++++++++++++++++++++++++++++++++++++++++------
 virt/kvm/ioapic.h        |   20 ++++++-
 virt/kvm/irq_comm.c      |   31 +++++++-----
 virt/kvm/kvm_main.c      |    3 +-
 11 files changed, 207 insertions(+), 65 deletions(-)