]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
iommu/hyper-v: Disable IRQ pseudo-remapping if 15 bit APIC IDs are available
authorDavid Woodhouse <dwmw@amazon.co.uk>
Sat, 24 Oct 2020 21:35:33 +0000 (22:35 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 3 Nov 2020 08:04:40 +0000 (08:04 +0000)
If the 15-bit APIC ID support is present in emulated MSI then there's no
need for the pseudo-remapping support.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201024213535.443185-34-dwmw2@infradead.org
(cherry picked from commit bf27ef8a77d8da38c9f35f8f6aab013a2dcf175f)

drivers/iommu/hyperv-iommu.c

index 8919c1c70b68ac8b6007604c689fb3ba746b073f..164fe3c786a4936269a4a52109b233d3b95e1f8b 100644 (file)
@@ -143,6 +143,7 @@ static int __init hyperv_prepare_irq_remapping(void)
        int i;
 
        if (!hypervisor_is_type(X86_HYPER_MS_HYPERV) ||
+           x86_init.hyper.msi_ext_dest_id() ||
            !x2apic_supported())
                return -ENODEV;