Skip to content

x86/hvm: PIRQ related cleanup and a fix

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3evtchn/hvm: do not allow binding PIRQs unless supportedxen/common/event_channel.c+3 -01 reply
2/3hvm/irq: tighten check in hvm_domain_use_pirqxen/arch/x86/hvm/irq.c+1 -11 reply
3/3hvm/pirq: allow control domains usage of PHYSDEVOP_{un,}map_pirqxen/arch/x86/hvm/hypercall.c+7 -09 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/3] x86/hvm: PIRQ related cleanup and a fix

Hello,

First two patches are cleanup related to the usage of PIRQs from HVM guests, and shouldn't result in any functional change.

Patch 3 allows the usage of PHYSDEVOP_{un,}map_pirq for HVM control domains even when lacking support to route PIRQs over event channels. This is done in order to allow setup of device interrupts assigned to different guests for passthrough support. Note that using passthrough from a PVH dom0 with vPCI in a safe way will at least require proper locking around PCI devices, and likely other fixes.

Roger Pau Monne (3):
evtchn/hvm: do not allow binding PIRQs unless supported hvm/irq: tighten check in hvm_domain_use_pirq hvm/pirq: allow control domains usage of PHYSDEVOP_{un,}map_pirq

 xen/arch/x86/hvm/hypercall.c | 7 +++++++
 xen/arch/x86/hvm/irq.c       | 2 +-
 xen/common/event_channel.c   | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1