[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- To: Sean Christopherson <seanjc@xxxxxxxxxx>
- From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- Date: Tue, 25 Apr 2023 22:07:47 +0200
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Paul Menzel <pmenzel@xxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, x86@xxxxxxxxxx, David Woodhouse <dwmw2@xxxxxxxxxxxxx>, Brian Gerst <brgerst@xxxxxxxxx>, Arjan van de Veen <arjan@xxxxxxxxxxxxxxx>, Paolo Bonzini <pbonzini@xxxxxxxxxx>, Paul McKenney <paulmck@xxxxxxxxxx>, Tom Lendacky <thomas.lendacky@xxxxxxx>, Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx>, "Guilherme G. Piccoli" <gpiccoli@xxxxxxxxxx>, Piotr Gorski <lucjan.lucjanov@xxxxxxxxx>, David Woodhouse <dwmw@xxxxxxxxxxxx>, Usama Arif <usama.arif@xxxxxxxxxxxxx>, Jürgen Groß <jgross@xxxxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Russell King <linux@xxxxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Catalin Marinas <catalin.marinas@xxxxxxx>, Will Deacon <will@xxxxxxxxxx>, Guo Ren <guoren@xxxxxxxxxx>, linux-csky@xxxxxxxxxxxxxxx, Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx>, linux-mips@xxxxxxxxxxxxxxx, "James E. J. Bottomley" <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx>, Helge Deller <deller@xxxxxx>, linux-parisc@xxxxxxxxxxxxxxx, Paul Walmsley <paul.walmsley@xxxxxxxxxx>, Palmer Dabbelt <palmer@xxxxxxxxxxx>, linux-riscv@xxxxxxxxxxxxxxxxxxx, Mark Rutland <mark.rutland@xxxxxxx>, Sabin Rapan <sabrapan@xxxxxxxxxx>
- Delivery-date: Tue, 25 Apr 2023 20:07:58 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Apr 20 2023 at 17:57, Thomas Gleixner wrote:
> On Thu, Apr 20 2023 at 07:51, Sean Christopherson wrote:
> Something like the completely untested below should just work whatever
> APIC ID the BIOS decided to dice.
>
> That might just work on SEV too without that GHCB muck, but what do I
> know.
It does not.
RDMSR(X2APIC_ID) is trapped via #VC which cannot be handled at that
point. Unfortunately the GHCB protocol does not provide a RDMSR
mechanism similar to the CPUID mechanism. Neither does the secure
firmware enforce CPUID(0xb):APICID to real APIC ID consistency.
So the hypervisor can dice the APIC IDs as long as they are consistent
with the provided ACPI/MADT table.
So no parallel startup for SEV for now.
Thanks,
tglx
- References:
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
- From: Sean Christopherson
- Re: [patch 00/37] cpu/hotplug, x86: Reworked parallel CPU bringup
|