Skip to content

MSI-X mask bit acceleration

Qing He xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hvm: passthrough MSI-X mask bit accelerationtools/libxc/xc_domain.c tools/libxc/xenctrl.h xen/arch/x86/hvm/hvm.c +8 more+331 -50 replies
2/2ioemu: passthrough: MSI-X mask bit accelerationhw/pass-through.c hw/pt-msi.c hw/pt-msi.h+44 -30 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/2] MSI-X mask bit acceleration

This patch set adds a new MMIO intercept handler in Xen to efficiently handle mask/unmask operation of guest passthrough MSI-X interrupts.

It is known that certain guests, like 2.6.18 will do mask/unmask for each MSI-X interrupt received, which impacts the performance considerably at high interrupt rate. Handling mask/unmask in the hypervisor avoids extensive exiting to QEmu thus improves response time and reduces overall load.

In order to do this, the patch adds a new MMIO intercept handler, and lock its content with rcu lock to get better mask/unmask performance. It also adds a new hypercall parameter to bind_pt_irq to inform Xen the guest physical address of MSI-X table so the handler can check MMIO access against it. On guest PCI BAR rebalancing, it will rebind the irq, allowing the handler to use new gpa of MSI-X table

Thanks,
Qing

---

[PATCH 1/2] hvm: passthrough MSI-X mask bit acceleration [PATCH 2/2] ioemu: passthrough: MSI-X mask bit acceleration