Skip to content

KVM: x86: Add a module param for device posted IRQs

Sean Christopherson kvm lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 9 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Changes in v3 from the cover letter

- Put the module param in vendor code to avoid issue with reloading vendor modules, and to match enable_apicv (and enable_ipiv in the future).
- Fix a shortlog typo. [Jim]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: VMX: Don't send UNBLOCK when starting device assignment without APICvarch/x86/kvm/vmx/posted_intr.c arch/x86/kvm/x86.c+4 -40 replies
2/3KVM: SVM: Don't update IRTEs if APICv/AVIC is disabledarch/x86/kvm/svm/avic.c+1 -20 replies
3/3KVM: x86: Add module param to control and enumerate device posted IRQsarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/vmx.c +1 more+12 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] KVM: x86: Add a module param for device posted IRQs

Add a module param, enable_device_posted_irqs, to control and enumerate KVM support for device posted IRQs.

v3:
- Put the module param in vendor code to avoid issue with reloading vendor modules, and to match enable_apicv (and enable_ipiv in the future).
- Fix a shortlog typo. [Jim]

v2:
- https://lore.kernel.org/all/[email protected]
- Add prep patches to use kvm_arch_has_irq_bypass() in vendor code when querying support IRQ bypass, a.k.a. device posted IRQs, so as not to unexpectedly introduce a (desired) dependency on enable_apicv. [Yosry]
- Use "&=" when constraining enable_device_posted_irqs based on APICv and IOMMU posting support. [Yosry]

v1: https://lore.kernel.org/all/[email protected]

Sean Christopherson (3):
KVM: VMX: Don't send UNBLOCK when starting device assignment without
APICv
KVM: SVM: Don't update IRTEs if APICv/AVIC is disabled
KVM: x86: Add module param to control and enumerate device posted IRQs

 arch/x86/include/asm/kvm_host.h | 1 +
 arch/x86/kvm/svm/avic.c         | 3 +--
 arch/x86/kvm/svm/svm.c          | 2 ++
 arch/x86/kvm/vmx/posted_intr.c  | 7 +++----
 arch/x86/kvm/vmx/vmx.c          | 2 ++
 arch/x86/kvm/x86.c              | 9 ++++++++-
 6 files changed, 17 insertions(+), 7 deletions(-)

base-commit: 782f9feaa9517caf33186dcdd6b50a8f770ed29b

Signature · 1 line
2.49.0.472.ge94155a9ec-goog