mbox series

[v2,0/2] tools/hvmloader: Decouple APIC IDs from vCPU IDs

Message ID 20250204144542.7399-1-alejandro.vallejo@cloud.com (mailing list archive)
Headers show
Series tools/hvmloader: Decouple APIC IDs from vCPU IDs | expand

Message

Alejandro Vallejo Feb. 4, 2025, 2:45 p.m. UTC
v1->v2:
  * Dropped patch to skip writing the MP Tables if apicid >= 255

v1: https://lore.kernel.org/xen-devel/20250128163342.1491-1-alejandro.vallejo@cloud.com/
source series: https://lore.kernel.org/xen-devel/20241021154600.11745-5-alejandro.vallejo@cloud.com/

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.

Alejandro Vallejo (2):
  tools/hvmloader: Retrieve APIC IDs from the APs themselves
  tools/hvmloader: Replace LAPIC_ID() with cpu_to_apicid[]

 tools/firmware/hvmloader/config.h    |  3 +-
 tools/firmware/hvmloader/hvmloader.c |  6 ++--
 tools/firmware/hvmloader/mp_tables.c |  2 +-
 tools/firmware/hvmloader/smp.c       | 43 +++++++++++++++++++++++++++-
 tools/firmware/hvmloader/util.c      |  2 +-
 5 files changed, 49 insertions(+), 7 deletions(-)