Hyper-V synthetic interrupt controller
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 4 repliesIn review
- v12 patches 19 repliesSuperseded
Changes in v2 from the cover letter
* irqchip/eventfd preparation improvements to support arch specific routing entries like Hyper-V SynIC ones.
* add Hyper-V SynIC vectors into EOI exit bitmap.
* do not use posted interrupts in case of Hyper-V SynIC AutoEOI vectors
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | kvm/eventfd: avoid loop inside irqfd_update()virt/ | +5 | 0 replies | |
| 2/9 | kvm/eventfd: factor out kvm_notify_acked_gsi()include/ virt/ | +12 | 0 replies | |
| 2/9 | kvm/eventfd: factor out kvm_notify_acked_gsi()include/ virt/ | +12 | 0 replies | |
| 3/9 | kvm/eventfd: add arch-specific set_irqinclude/ virt/ | +16 | 0 replies | |
| 3/9 | kvm/eventfd: add arch-specific set_irqinclude/ virt/ | +16 | 0 replies | |
| 4/9 | kvm/irqchip: allow only multiple irqchip routes per GSIvirt/ | +3 | 0 replies | |
| 4/9 | kvm/irqchip: allow only multiple irqchip routes per GSIvirt/ | +3 | 0 replies | |
| 5/9 | kvm/irqchip: kvm_arch_irq_routing_update renaming splitarch/ include/ virt/ | +10 | 0 replies | |
| 5/9 | kvm/irqchip: kvm_arch_irq_routing_update renaming splitarch/ include/ virt/ | +10 | 0 replies | |
| 6/9 | drivers/hv: share Hyper-V SynIC constants with userspacearch/ drivers/ include/ | +13 | 0 replies | |
| 6/9 | drivers/hv: share Hyper-V SynIC constants with userspacearch/ drivers/ include/ | +13 | 0 replies | |
| 7/9 | kvm/x86: split ioapic-handled and EOI exit bitmapsarch/ arch/ arch/ +5 more | +21 | 0 replies | |
| 7/9 | kvm/x86: split ioapic-handled and EOI exit bitmapsarch/ arch/ arch/ +5 more | +21 | 0 replies | |
| 8/9 | kvm/x86: Hyper-V synthetic interrupt controllerarch/ arch/ arch/ +6 more | +407 | 0 replies | |
| 8/9 | kvm/x86: Hyper-V synthetic interrupt controllerarch/ arch/ arch/ +6 more | +407 | 5 replies | |
| 9/9 | kvm/x86: Hyper-V kvm exitDocumentation/ arch/ arch/ +3 more | +48 | 0 replies | |
| 9/9 | kvm/x86: Hyper-V kvm exitDocumentation/ arch/ arch/ +3 more | +48 | 13 replies |
Reviews trailers per patch
All 17 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Roman Kagan |
|---|---|
| Series | R-b |
| 1/9 | R-b |
| 2/9 | R-b R-b |
| 2/9 | R-b R-b |
| 3/9 | R-b R-b |
| 3/9 | R-b R-b |
| 4/9 | R-b R-b |
| 4/9 | R-b R-b |
| 5/9 | R-b R-b |
| 5/9 | R-b R-b |
| 6/9 | R-b R-b |
| 6/9 | R-b R-b |
| 7/9 | R-b R-b |
| 7/9 | R-b R-b |
| 8/9 | R-b R-b R-b |
| 8/9 | R-b R-b R-b |
| 9/9 | R-b R-b R-b |
| 9/9 | R-b R-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/9] Hyper-V synthetic interrupt controller
This patchset implements the KVM part of the synthetic interrupt controller (SynIC) which is a building block of the Hyper-V paravirtualized device bus (vmbus).
SynIC is a lapic extension, which is controlled via MSRs and maintains for each vCPU
- 16 synthetic interrupt "lines" (SINT's); each can be configured to trigger a specific interrupt vector optionally with auto-EOI semantics
- a message page in the guest memory with 16 256-byte per-SINT message slots
- an event flag page in the guest memory with 16 2048-bit per-SINT event flag areas
The host triggers a SINT whenever it delivers a new message to the corresponding slot or flips an event flag bit in the corresponding area. The guest informs the host that it can try delivering a message by explicitly asserting EOI in lapic or writing to End-Of-Message (EOM) MSR.
The userspace (qemu) triggers interrupts and receives EOM notifications via irqfd with resampler; for that, a GSI is allocated for each configured SINT, and irq_routing api is extended to support GSI-SINT mapping.
Besides, a new vcpu exit is introduced to notify the userspace of the changes in SynIC configuraion triggered by guest writing to the corresponding MSRs.
Changes v2:
* irqchip/eventfd preparation improvements to support arch specific routing entries like Hyper-V SynIC ones.
* add Hyper-V SynIC vectors into EOI exit bitmap.
* do not use posted interrupts in case of Hyper-V SynIC AutoEOI vectors