Skip to content

tools/hvmloader: Decouple APIC IDs from vCPU IDs

Alejandro Vallejo xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 4 repliesSuperseded
  3. v13 patches 9 repliesSuperseded

Changes in v3 from the cover letter

* Moved "extern uint32_t *cpu_to_apicid;" to patch1

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tools/hvmloader: Retrieve APIC IDs from the APs themselvestools/firmware/hvmloader/config.h tools/firmware/hvmloader/smp.c+44 -10 replies
2/2tools/hvmloader: Replace LAPIC_ID() with cpu_to_apicid[]tools/firmware/hvmloader/config.h tools/firmware/hvmloader/hvmloader.c tools/firmware/hvmloader/mp_tables.c +1 more+5 -60 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJan Beulich
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] tools/hvmloader: Decouple APIC IDs from vCPU IDs

v2->v3:
* Moved "extern uint32_t *cpu_to_apicid;" to patch1

v2: https://lore.kernel.org/xen-devel/[email protected]/T/#t
v1->v2:
* Dropped patch to skip writing the MP Tables if apicid >= 255

v1: https://lore.kernel.org/xen-devel/[email protected]/
source series: https://lore.kernel.org/xen-devel/[email protected]/

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(-)
Signature · 1 line
2.48.1