Skip to content

VMX: configure posted interrupt descriptor when assigning device

Marcelo Tosatti kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: x86: add start_assignment hook to kvm_x86_opsarch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +2 more+8 -12 replies
2/4KVM: add arch specific vcpu_check_block callbackinclude/linux/kvm_host.h virt/kvm/kvm_main.c+9 -00 replies
3/4KVM: x86: implement kvm_arch_vcpu_check_block callbackarch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +1 more+14 -00 replies
4/4KVM: VMX: update vcpu posted-interrupt descriptor when assigning devicearch/x86/kvm/vmx/posted_intr.c arch/x86/kvm/vmx/posted_intr.h arch/x86/kvm/vmx/vmx.c+43 -214 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [patch 0/4] VMX: configure posted interrupt descriptor when assigning device

Configuration of the posted interrupt descriptor is incorrect when devices are hotplugged to the guest (and vcpus are halted).

See patch 4 for details.

---

v2: rather than using a potentially racy IPI (vs vcpu->cpu switches),
kick the vcpus when assigning a device and let the blocked per-CPU list manipulation happen locally at ->pre_block and ->post_block (Sean Christopherson).