Enable MSI support for KVM VT-d
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Separate update irq to a single functionarch/ | +42 | 0 replies | |
| 2/4 | KVM: x86: Replace irq_requested with guest_intr_typearch/ include/ | +6 | 0 replies | |
| 3/4 | x86: Add MSI delivery mode maskinclude/ | +3 | 0 replies | |
| 4/4 | KVM: x86: Enable MSI for assigned devicearch/ include/ include/ +2 more | +117 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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