Skip to content

Hyper-V synthetic interrupt controller

Denis V. Lunev kvm qemu-devel virtualization 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 4 repliesIn review
  2. 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 filesSizeRepliesApplied
1/9kvm/eventfd: avoid loop inside irqfd_update()virt/kvm/eventfd.c+5 -80 replies
2/9kvm/eventfd: factor out kvm_notify_acked_gsi()include/linux/kvm_host.h virt/kvm/eventfd.c+12 -50 replies
2/9kvm/eventfd: factor out kvm_notify_acked_gsi()include/linux/kvm_host.h virt/kvm/eventfd.c+12 -50 replies
3/9kvm/eventfd: add arch-specific set_irqinclude/linux/kvm_host.h virt/kvm/eventfd.c+16 -10 replies
3/9kvm/eventfd: add arch-specific set_irqinclude/linux/kvm_host.h virt/kvm/eventfd.c+16 -10 replies
4/9kvm/irqchip: allow only multiple irqchip routes per GSIvirt/kvm/irqchip.c+3 -30 replies
4/9kvm/irqchip: allow only multiple irqchip routes per GSIvirt/kvm/irqchip.c+3 -30 replies
5/9kvm/irqchip: kvm_arch_irq_routing_update renaming splitarch/x86/kvm/irq_comm.c include/linux/kvm_host.h virt/kvm/irqchip.c+10 -40 replies
5/9kvm/irqchip: kvm_arch_irq_routing_update renaming splitarch/x86/kvm/irq_comm.c include/linux/kvm_host.h virt/kvm/irqchip.c+10 -40 replies
6/9drivers/hv: share Hyper-V SynIC constants with userspacearch/x86/include/uapi/asm/hyperv.h drivers/hv/hyperv_vmbus.h include/linux/hyperv.h+13 -50 replies
6/9drivers/hv: share Hyper-V SynIC constants with userspacearch/x86/include/uapi/asm/hyperv.h drivers/hv/hyperv_vmbus.h include/linux/hyperv.h+13 -50 replies
7/9kvm/x86: split ioapic-handled and EOI exit bitmapsarch/x86/include/asm/kvm_host.h arch/x86/kvm/ioapic.c arch/x86/kvm/ioapic.h +5 more+21 -190 replies
7/9kvm/x86: split ioapic-handled and EOI exit bitmapsarch/x86/include/asm/kvm_host.h arch/x86/kvm/ioapic.c arch/x86/kvm/ioapic.h +5 more+21 -190 replies
8/9kvm/x86: Hyper-V synthetic interrupt controllerarch/x86/include/asm/kvm_host.h arch/x86/kvm/hyperv.c arch/x86/kvm/hyperv.h +6 more+407 -80 replies
8/9kvm/x86: Hyper-V synthetic interrupt controllerarch/x86/include/asm/kvm_host.h arch/x86/kvm/hyperv.c arch/x86/kvm/hyperv.h +6 more+407 -85 replies
9/9kvm/x86: Hyper-V kvm exitDocumentation/virtual/kvm/api.txt arch/x86/include/asm/kvm_host.h arch/x86/kvm/hyperv.c +3 more+48 -00 replies
9/9kvm/x86: Hyper-V kvm exitDocumentation/virtual/kvm/api.txt arch/x86/include/asm/kvm_host.h arch/x86/kvm/hyperv.c +3 more+48 -013 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.

PatchRoman Kagan
SeriesR-b
1/9R-b
2/9R-b R-b
2/9R-b R-b
3/9R-b R-b
3/9R-b R-b
4/9R-b R-b
4/9R-b R-b
5/9R-b R-b
5/9R-b R-b
6/9R-b R-b
6/9R-b R-b
7/9R-b R-b
7/9R-b R-b
8/9R-b R-b R-b
8/9R-b R-b R-b
9/9R-b R-b R-b
9/9R-b R-b R-b

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

Read the v2 thread

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.

CC Vitaly Kuznetsov <[email protected]>
CC "K. Y. Srinivasan" <[email protected]>
CC Gleb Natapov <[email protected]>
CC Paolo Bonzini <[email protected]>

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