From: Andrew Cooper <Andrew.Cooper3@citrix.com>
To: Roger Pau Monne <roger.pau@citrix.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: Jan Beulich <jbeulich@suse.com>, Wei Liu <wl@xen.org>
Subject: Re: [PATCH] x86/pvh: do not forward MADT Local APIC NMI structures to dom0
Date: Wed, 16 Nov 2022 16:56:41 +0000 [thread overview]
Message-ID: <e1ba1a77-e449-beb0-cd49-1e6df6b6eeb0@citrix.com> (raw)
In-Reply-To: <20221116164216.7220-1-roger.pau@citrix.com>
On 16/11/2022 16:42, Roger Pau Monne wrote:
> Currently Xen will passthrough any Local APIC NMI Structure found in
> the native ACPI MADT table to a PVH dom0. This is wrong because PVH
> doesn't have access to the physical local APIC, and instead gets an
> emulated local APIC by Xen, that doesn't have the LINT0 or LINT1
> pins wired to anything. Furthermore the ACPI Processor UIDs used in
> the APIC NMI Structures are likely to not match the ones generated by
> Xen for the Local x2APIC Structures, creating confusion to dom0.
>
> Fix this by removing the logic to passthrough the Local APIC NMI
> Structure for PVH dom0.
>
> Fixes: 1d74282c45 ('x86: setup PVHv2 Dom0 ACPI tables')
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Yeah, that was never going to work correctly.
That said, I'm not certain we can get away with discarding them either.
Some systems really do use ExtINT in IO-APIC entries, and dom0 is
capable of configuring this if it thinks it wants virtual wire mode.
Is dom0 likely to get more or less confused with the LAPIC not
defaulting to regular x86 norms? (The answer to this question is
whether we should fake up up an NMI structure for each vCPU.)
~Andrew
next prev parent reply other threads:[~2022-11-16 16:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-16 16:42 [PATCH] x86/pvh: do not forward MADT Local APIC NMI structures to dom0 Roger Pau Monne
2022-11-16 16:56 ` Andrew Cooper [this message]
2022-11-16 17:25 ` Roger Pau Monné
2022-11-17 9:27 ` Jan Beulich
2022-11-17 10:23 ` Roger Pau Monné
2022-11-17 11:05 ` Jan Beulich
2022-11-17 11:35 ` Andrew Cooper
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=e1ba1a77-e449-beb0-cd49-1e6df6b6eeb0@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.