x86: Don't assume !x2APIC during boot
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | x86: apic: Play nice with x2APIC being enabled when getting "pre-boot" IDlib/ | +9 | 0 replies | |
| 2/2 | x86: cstart64: Put APIC into xAPIC after loading TSSx86/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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