Skip to content

Enable MSI support for KVM VT-d

Sheng Yang kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Separate update irq to a single functionarch/x86/kvm/x86.c+42 -360 replies
2/4KVM: x86: Replace irq_requested with guest_intr_typearch/x86/kvm/x86.c include/linux/kvm_host.h+6 -50 replies
3/4x86: Add MSI delivery mode maskinclude/asm-x86/msidef.h+3 -00 replies
4/4KVM: x86: Enable MSI for assigned devicearch/x86/kvm/x86.c include/linux/kvm.h include/linux/kvm_host.h +2 more+117 -65 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] Enable MSI support for KVM VT-d

Hi, Avi

This patchset enable MSI support for KVM VT-d.

And here are only kernel space ones. The third patch would go to also goto x86 upstream.

The userspace code would looks like this:

assigned_irq_data.guest_msi_addr = *(uint32_t *)(d->msi_cap + 4); assigned_irq_data.guest_msi_data = *(uint16_t *)(d->msi_cap + 8); assigned_irq_data.flags |= KVM_DEV_IRQ_ASSIGN_ENABLE_MSI; r = kvm_assign_irq(kvm_context, &assigned_irq_data);

I've test the patchset with some userspace hack, it works well.

Thanks!
--
regards
Yang, Sheng