Commit bf27ef8a authored by David Woodhouse's avatar David Woodhouse Committed by Thomas Gleixner
Browse files

iommu/hyper-v: Disable IRQ pseudo-remapping if 15 bit APIC IDs are available



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: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20201024213535.443185-34-dwmw2@infradead.org
parent ab0f59c6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;