]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.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)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Oct 2020 19:26:31 +0000 (20:26 +0100)
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
drivers/iommu/hyperv-iommu.c

index a629a6be65c7e1b014a6a3636a38e85718777686..9438daa24fdb2859165a08fc46670b1734a81d1b 100644 (file)
@@ -121,6 +121,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;