From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Alejandro Vallejo <alejandro.vallejo@cloud.com>
Cc: xen-devel@lists.xenproject.org, Jan Beulich <jbeulich@suse.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Anthony PERARD <anthony.perard@vates.tech>
Subject: Re: [PATCH 0/3] tools/hvmloader: Decouple APIC IDs from vCPU IDs
Date: Tue, 28 Jan 2025 18:45:15 +0100 [thread overview]
Message-ID: <Z5kXq2RehzyFEYqA@macbook.local> (raw)
In-Reply-To: <20250128163342.1491-1-alejandro.vallejo@cloud.com>
On Tue, Jan 28, 2025 at 04:33:39PM +0000, Alejandro Vallejo wrote:
> The hypervisor, hvmloader and the toolstack currently engage in a shared
> assumption that for every vCPU apicid == 2 * vcpuid. This series removes such
> assumption from hvmloader, by making it read the APIC ID of each vCPU and
> storing it for later use.
>
> The last patch prevents writing an MP Tables should we have vCPUs that can not
> be represented there. That's at the moment dead code because all vCPUs are
> currently representable in 8 bits. This will inavitably stop being true in the
> future after we increase the maximum number of guest vCPUs.
While I'm fine with the MP Table change, should it also come together
with a patch that introduces the code to create x2APIC entries in
libacpi construct_madt() helper? (and bumping the MADT revision, as
I'm quite sure version 2 didn't have x2APIC entries in the
specification).
Otherwise the MP Table change seems like a red herring, because the
MADT created by libacpi will also be incorrect and APIC IDs will wrap in
local APIC entries, just like it would on MP Tables.
Thanks, Roger.
next prev parent reply other threads:[~2025-01-28 17:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-28 16:33 [PATCH 0/3] tools/hvmloader: Decouple APIC IDs from vCPU IDs Alejandro Vallejo
2025-01-28 16:33 ` [PATCH 1/3] tools/hvmloader: Retrieve (x2)APIC IDs from the APs themselves Alejandro Vallejo
2025-01-28 17:59 ` Roger Pau Monné
2025-01-28 18:45 ` Alejandro Vallejo
2025-01-28 16:33 ` [PATCH 2/3] tools/hvmloader: Replace LAPIC_ID() with cpu_to_apicid[] Alejandro Vallejo
2025-01-30 12:59 ` Jan Beulich
2025-01-28 16:33 ` [PATCH 3/3] tools/hvmloader: Skip writing MP tables if any CPU has an APIC ID >= 255 Alejandro Vallejo
2025-01-30 13:02 ` Jan Beulich
2025-01-28 17:45 ` Roger Pau Monné [this message]
2025-01-28 18:42 ` [PATCH 0/3] tools/hvmloader: Decouple APIC IDs from vCPU IDs Alejandro Vallejo
2025-01-29 16:25 ` Roger Pau Monné
2025-01-30 9:17 ` Jan Beulich
2025-02-04 14:26 ` Alejandro Vallejo
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=Z5kXq2RehzyFEYqA@macbook.local \
--to=roger.pau@citrix.com \
--cc=alejandro.vallejo@cloud.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=jbeulich@suse.com \
--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.