Re: [PATCH 4/4] PCI: hv: Use the correct hypercall for unmasking interrupts on nested

Bjorn Helgaas
2025-06-13T19:38:42Z

On Tue, Jun 10, 2025 at 04:52:06PM -0700, Nuno Das Neves wrote:
> From: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
>
> Running as nested root on MSHV imposes a different requirement
> for the pci-hyperv controller.
>
> In this setup, the interrupt will first come to the L1 (nested) hypervisor,
> which will deliver it to the appropriate root CPU. Instead of issuing the
> RETARGET hypercall, we should issue the MAP_DEVICE_INTERRUPT
> hypercall to L1 to complete the setup.

Maybe strengthen this to say that this issues MAP_DEVICE_INTERRUPT
instead of RETARGET in this case? (Not just that we "should".)

> Rename hv_arch_irq_unmask() to hv_irq_retarget_interrupt().