Skip to content

x86: Don't assume !x2APIC during boot

Sean Christopherson kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86: apic: Play nice with x2APIC being enabled when getting "pre-boot" IDlib/x86/apic.c+9 -50 replies
2/2x86: cstart64: Put APIC into xAPIC after loading TSSx86/cstart64.S+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kvm-unit-tests PATCH 0/2] x86: Don't assume !x2APIC during boot

Get the "pre-boot" APIC ID via the x2APIC interface (RDMSR) if x2APIC is enabled (per APIC_BASE) instead of assuming xAPIC is enabled. UEFI SMP support[*] wants to use the pre-boot APIC ID helper to configure GS.base, i.e. before "resetting" the APIC to xAPIC mode. This causes problems for the SVM INIT-SIPI test, which sends APs back through the boot sequence without taking them out of x2APIC.

Posting as a separate series mostly because I don't want to respin the entire UEFI series, but also because it's not impossible that someone will want to run KUT with firmware that forces x2APIC mode.

[*] https://lore.kernel.org/all/[email protected]

Sean Christopherson (2):
x86: apic: Play nice with x2APIC being enabled when getting "pre-boot"
ID
x86: cstart64: Put APIC into xAPIC after loading TSS

 lib/x86/apic.c | 14 +++++++++-----
 x86/cstart64.S |  4 ++--
 2 files changed, 11 insertions(+), 7 deletions(-)

base-commit: 7b2e41767bb8caf91972ee32e4ca85ec630584e2

Signature · 1 line
2.37.1.359.gd136c6c3e2-goog