diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2020-10-24 23:35:33 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-10-28 20:26:31 +0100 |
commit | bf27ef8a77d8da38c9f35f8f6aab013a2dcf175f (patch) | |
tree | c0fda2dc6ee90ec83fd04d50ea0db45242a386ff /drivers/iommu/hyperv-iommu.c | |
parent | x86/apic: Support 15 bits of APIC ID in MSI where available (diff) | |
download | linux-bf27ef8a77d8da38c9f35f8f6aab013a2dcf175f.tar.xz linux-bf27ef8a77d8da38c9f35f8f6aab013a2dcf175f.zip |
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: 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
Diffstat (limited to 'drivers/iommu/hyperv-iommu.c')
-rw-r--r-- | drivers/iommu/hyperv-iommu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iommu/hyperv-iommu.c b/drivers/iommu/hyperv-iommu.c index a629a6be65c7..9438daa24fdb 100644 --- a/drivers/iommu/hyperv-iommu.c +++ b/drivers/iommu/hyperv-iommu.c @@ -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; |