]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: hv: Use the correct hypercall for unmasking interrupts on nested
authorStanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Fri, 11 Jul 2025 19:18:52 +0000 (12:18 -0700)
committerWei Liu <wei.liu@kernel.org>
Tue, 15 Jul 2025 06:24:16 +0000 (06:24 +0000)
commit6f490bb4a982f7455576d6cf409bef10aebd07b8
treee69a6c362ea91ae3988ef547efc2305a7b930c8b
parent52a45f870e271d6d55ef26c17e8c6c82a22312a7
PCI: hv: Use the correct hypercall for unmasking interrupts on nested

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, issue the MAP_DEVICE_INTERRUPT hypercall to L1 to
complete the setup.

Rename hv_arch_irq_unmask() to hv_irq_retarget_interrupt().

Co-developed-by: Jinank Jain <jinankjain@linux.microsoft.com>
Signed-off-by: Jinank Jain <jinankjain@linux.microsoft.com>
Signed-off-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Signed-off-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Roman Kisel <romank@linux.microsoft.com>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/1752261532-7225-4-git-send-email-nunodasneves@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <1752261532-7225-4-git-send-email-nunodasneves@linux.microsoft.com>
drivers/pci/controller/pci-hyperv.c