All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] tools/hvmloader: Decouple APIC IDs from vCPU IDs
@ 2025-01-28 16:33 Alejandro Vallejo
  2025-01-28 16:33 ` [PATCH 1/3] tools/hvmloader: Retrieve (x2)APIC IDs from the APs themselves Alejandro Vallejo
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Alejandro Vallejo @ 2025-01-28 16:33 UTC (permalink / raw)
  To: xen-devel
  Cc: Alejandro Vallejo, Jan Beulich, Andrew Cooper,
	Roger Pau Monné, Anthony PERARD

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.

This short series is extracted from v7 of the much longer "Expose consistent
topology to guests".

  https://lore.kernel.org/xen-devel/20241021154600.11745-5-alejandro.vallejo@cloud.com/

Changes with respect to the original patch on each individual patch.

Alejandro Vallejo (3):
  tools/hvmloader: Retrieve (x2)APIC IDs from the APs themselves
  tools/hvmloader: Replace LAPIC_ID() with cpu_to_apicid[]
  tools/hvmloader: Skip writing MP tables if any CPU has an APIC ID >=
    255

 tools/firmware/hvmloader/config.h    |  4 ++-
 tools/firmware/hvmloader/hvmloader.c | 12 ++++---
 tools/firmware/hvmloader/mp_tables.c |  2 +-
 tools/firmware/hvmloader/smp.c       | 47 +++++++++++++++++++++++++++-
 tools/firmware/hvmloader/util.c      |  2 +-
 5 files changed, 59 insertions(+), 8 deletions(-)

-- 
2.48.1



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-02-04 14:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 0/3] tools/hvmloader: Decouple APIC IDs from vCPU IDs Roger Pau Monné
2025-01-28 18:42   ` Alejandro Vallejo
2025-01-29 16:25     ` Roger Pau Monné
2025-01-30  9:17       ` Jan Beulich
2025-02-04 14:26         ` Alejandro Vallejo

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.