From: Thomas Gleixner <tglx@linutronix.de>
To: Dexuan Cui <decui@microsoft.com>,
dwmw@amazon.co.uk, x86@kernel.org, decui@microsoft.com,
mikelley@microsoft.com, linux-hyperv@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, Tianyu.Lan@microsoft.com,
vkuznets@redhat.com, kys@microsoft.com, haiyangz@microsoft.com,
sthemmin@microsoft.com, wei.liu@kernel.org
Subject: Re: [PATCH] iommu/hyper-v: Fix panic on a host without the 15-bit APIC ID support
Date: Wed, 02 Dec 2020 10:56:23 +0100 [thread overview]
Message-ID: <87wny0edko.fsf@nanos.tec.linutronix.de> (raw)
In-Reply-To: <20201202004510.1818-1-decui@microsoft.com>
On Tue, Dec 01 2020 at 16:45, Dexuan Cui wrote:
> The commit f36a74b9345a itself is good, but it causes a panic in a
> Linux VM that runs on a Hyper-V host that doesn't have the 15-bit
> Extended APIC ID support:
> kernel BUG at arch/x86/kernel/apic/io_apic.c:2408!
This has nothing to do with the 15bit APIC ID support, really.
The point is that the select() function only matches when I/O APIC ID is
0, which is not guaranteed. That's independent of the 15bit extended
APIC ID feature. But the I/O-APIC ID is irrelevant on hyperv because
there is only one.
> This happens because the Hyper-V ioapic_ir_domain (which is defined in
> drivers/iommu/hyperv-iommu.c) can not be found. Fix the panic by
> properly claiming the only I/O APIC emulated by Hyper-V.
We don't fix a panic. We fix a bug in the code :)
I'll amend the changelog.
Thanks,
tglx
next prev parent reply other threads:[~2020-12-02 9:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-02 0:45 [PATCH] iommu/hyper-v: Fix panic on a host without the 15-bit APIC ID support Dexuan Cui
2020-12-02 1:28 ` Woodhouse, David
2020-12-02 9:56 ` Thomas Gleixner [this message]
2020-12-02 19:53 ` Dexuan Cui
2020-12-02 10:28 ` [tip: x86/apic] iommu/hyper-v: Remove I/O-APIC ID check from hyperv_irq_remapping_select() tip-bot2 for Dexuan Cui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wny0edko.fsf@nanos.tec.linutronix.de \
--to=tglx@linutronix.de \
--cc=Tianyu.Lan@microsoft.com \
--cc=decui@microsoft.com \
--cc=dwmw@amazon.co.uk \
--cc=haiyangz@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-hyperv@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mikelley@microsoft.com \
--cc=sthemmin@microsoft.com \
--cc=vkuznets@redhat.com \
--cc=wei.liu@kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).