Skip to content

VMX: configure posted interrupt descriptor when assigning device (v5)

Marcelo Tosatti kvm oe-kbuild-all 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: 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/x86.c+4 -11 reply
2/3KVM: rename KVM_REQ_PENDING_TIMER to KVM_REQ_UNBLOCKDocumentation/virt/kvm/vcpu-requests.rst arch/powerpc/include/asm/kvm_host.h arch/x86/kvm/lapic.c +3 more+9 -55 replies
3/3KVM: 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+9 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPeter Xu
1/3R-b
2/3R-b
3/3R-b

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

Read the v1 thread

Cover letter [patch 0/3] VMX: configure posted interrupt descriptor when assigning device (v5)

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

See patch 3 for details.

---

v5: use KVM_REQ_UNBLOCK instead of kvm_check_block callback (Paolo / Peter Xu)

v4: remove NULL assignments from kvm_x86_ops (Peter Xu)

    check for return value of ->start_assignment directly (Peter Xu)

v3: improved comments (Sean)
use kvm_vcpu_wake_up (Sean)
drop device_count from start_assignment function (Peter Xu)

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).