Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2E3CCC77B73 for ; Tue, 30 May 2023 10:35:00 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.541078.843420 (Exim 4.92) (envelope-from ) id 1q3wgk-0004uV-Tr; Tue, 30 May 2023 10:34:50 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 541078.843420; Tue, 30 May 2023 10:34:50 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q3wgk-0004uN-R5; Tue, 30 May 2023 10:34:50 +0000 Received: by outflank-mailman (input) for mailman id 541078; Tue, 30 May 2023 10:34:49 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1q3wgj-0004uH-9L for xen-devel@lists.xenproject.org; Tue, 30 May 2023 10:34:49 +0000 Received: from galois.linutronix.de (galois.linutronix.de [193.142.43.55]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 993faedf-fed5-11ed-8611-37d641c3527e; Tue, 30 May 2023 12:34:47 +0200 (CEST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 993faedf-fed5-11ed-8611-37d641c3527e From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1685442886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=N5ajidpHHWOd1M+zXooDoN2CL1Doa07SpiUyV9RulE8=; b=uwnjy/mtKr2+9HiMkSppEBJvhSBQeJYZy8y9yBLg+rfzmVqY1K2fbkQ0BK6atYsbdlb/kZ OX0X95CEbPOmVVjWUm+w4pOuAY3qcbvl7jw9Z0BenrltybggdqR4c9qAM8x64i9YH37qey O9JBKI7y/oKr72QRWkDpq+hYUst4bIaCugFeqfZmWg1LhT6voGsk3R6H6krFIw1PwzllcV ucldO4NpvXDnORVDB9AFUwXdgJ89s7Ov7ICB6gREcPwIDmnuEeCUVFSvurBgxsiF9roVck ep3RsDjejQbfVOSuPv04nD7vklCwo/Y4EbsS5SCA7EfqWM3aQeTimx2OFQGCyA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1685442886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=N5ajidpHHWOd1M+zXooDoN2CL1Doa07SpiUyV9RulE8=; b=AxdWUb0SeD9XPAfvorylY2NPRS35OXUO70xmZChpaLP+3HhDz+9CZ0RcptudTwiisrOZW2 YPXQzLGGwMCVv4AQ== To: "Kirill A. Shutemov" Cc: LKML , x86@kernel.org, David Woodhouse , Andrew Cooper , Brian Gerst , Arjan van de Veen , Paolo Bonzini , Paul McKenney , Tom Lendacky , Sean Christopherson , Oleksandr Natalenko , Paul Menzel , "Guilherme G. Piccoli" , Piotr Gorski , Usama Arif , Juergen Gross , Boris Ostrovsky , xen-devel@lists.xenproject.org, Russell King , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Guo Ren , linux-csky@vger.kernel.org, Thomas Bogendoerfer , linux-mips@vger.kernel.org, "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , linux-riscv@lists.infradead.org, Mark Rutland , Sabin Rapan , "Michael Kelley (LINUX)" , Dave Hansen Subject: Re: [patch v3 31/36] x86/apic: Provide cpu_primary_thread mask In-Reply-To: <87mt1mjhk3.ffs@tglx> References: <20230508181633.089804905@linutronix.de> <20230508185218.962208640@linutronix.de> <20230524204818.3tjlwah2euncxzmh@box.shutemov.name> <87y1lbl7r6.ffs@tglx> <87sfbhlwp9.ffs@tglx> <20230529023939.mc2akptpxcg3eh2f@box.shutemov.name> <87bki3kkfi.ffs@tglx> <20230529203129.sthnhzgds7ynddxd@box.shutemov.name> <20230530005428.jyrc2ezx5raohlrt@box.shutemov.name> <87mt1mjhk3.ffs@tglx> Date: Tue, 30 May 2023 12:34:45 +0200 Message-ID: <87jzwqjeey.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain On Tue, May 30 2023 at 11:26, Thomas Gleixner wrote: > On Tue, May 30 2023 at 03:54, Kirill A. Shutemov wrote: >> On Mon, May 29, 2023 at 11:31:29PM +0300, Kirill A. Shutemov wrote: >>> Disabling parallel bringup helps. I didn't look closer yet. If you have >>> an idea let me know. >> >> Okay, it crashes around .Lread_apicid due to touching MSRs that trigger #VE. >> >> Looks like the patch had no intention to enable parallel bringup on TDX. >> >> + * Intel-TDX has a secure RDMSR hypercall, but that needs to be >> + * implemented seperately in the low level startup ASM code. >> >> But CC_ATTR_GUEST_STATE_ENCRYPT that used to filter it out is >> SEV-ES-specific thingy and doesn't cover TDX. I don't think we have an >> attribute that fits nicely here. > > Bah. That sucks. Can we have something consistent in this CC space or needs everything to be extra magic per CC variant?