Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4618675rwd; Tue, 30 May 2023 07:46:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7LxfhkYlgS1ax561n1j0UzIljVm5oLNwAfCc0CDPtG1/b9vT3wC4JVyi6z+kt/2+gag8+U X-Received: by 2002:a05:6a20:438f:b0:111:3c41:2068 with SMTP id i15-20020a056a20438f00b001113c412068mr2728018pzl.28.1685457988026; Tue, 30 May 2023 07:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685457988; cv=none; d=google.com; s=arc-20160816; b=0utIBIfevfhYhdPBQdEtQRVCxDsm0SuGfuqnH/TSzGk9o23EQLb/IOD7p42FNklvy5 +i0W++CVsImWXrGEZmmtzN1Z6myHHhUbRnTyT827YFzYxzvc1TSZoHIHe4nZEy6ZcAeL Z5ycGS0oEv/11HYVc0AGhktmY8U1n4D7yUMzI0U0Ogh+1YWkzA59pUpoEtdZIpYbxh0s bkRisk2Aw5fVKjwYrAOiuYGL4RGIw35mF8ZKqwo2UV5SU5dkycBDgLtK7E0i2y9X+BmV wcKkKu7bc/MUs+NrK3Cvpi1VhftemR7dzhLfrhFkuvohU/RJtaQUNg7SVBL2dpLeYVZj TkBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Hh6nfYGRw8Xo4sZYsBcKGggpg8AsAPYo0Fmyp3Zb2C8=; b=JZ+ATD3y0ua1Rpmp/us8a+4ysNTqXYCYB1cz58jPrxlmPgm852NMmekY7kyLAtz4rG aZKD6NUxg2aduJsK6QnSGgHvdHS4YAnVxZN7QR7EIhvCAq7zN2WbZiR44XQotN3GLn5M y2vEafLSau+F3UvL6HWryYPB+6Zyg9ayptAnir1OItcM4SSS9psECQr4+7wBIu1bWLo/ K80vlIgfIbsl0emCyTNlNDnjnJo3Yf6hfEN+EVR5pcVft3qqZ3gZtvLrG2ozw0R30ahg 5wnGXNu7zhsqseP32GBURKAyfJfhmB2oG3NJt+Vjx5+O4UGJbHlaQzsoDUhSB+DQvy6M Velg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=b7ZWeglV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a17090a2ec500b002562f925dcfsi8745076pjs.50.2023.05.30.07.46.15; Tue, 30 May 2023 07:46:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=b7ZWeglV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232631AbjE3Ofn (ORCPT + 99 others); Tue, 30 May 2023 10:35:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbjE3Ofl (ORCPT ); Tue, 30 May 2023 10:35:41 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E40F8F; Tue, 30 May 2023 07:35:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Hh6nfYGRw8Xo4sZYsBcKGggpg8AsAPYo0Fmyp3Zb2C8=; b=b7ZWeglVxXPgUC2IalnxW8QZFN CJfyT1adD2qvortXSb64Dq95xjOfW+CqIcHD2hwXLUJgjM2Jcm0aCVkNEl+4D0d7kFi9tOPkvwR77 Q03x4AZfKAqK5Ex1sI8wMOmMNkdcJcJhl4cvNwxhtFGzTP86T5Ywi8TkmQumPO43FnAxmAXpVh8jL owdx7z3MUDt0GBULgwunRwE/VKqfvaPMlGOjv+kvuj6RvfMdFLcd/k/dsM83oJvJK/bRwGDK1rO88 bxWkHdsOhI/x3kRHmUEkR6s92NeliMjQ1NcuYHcX4oDz9kVrTxXGNYdIQvBq8b8LERzqK1vDsiZ2p ybOuykig==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q40RG-00Dqv4-1c; Tue, 30 May 2023 14:35:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A59E7300194; Tue, 30 May 2023 16:35:04 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 90029214873C1; Tue, 30 May 2023 16:35:04 +0200 (CEST) Date: Tue, 30 May 2023 16:35:04 +0200 From: Peter Zijlstra To: "Gupta, Pankaj" Cc: Tianyu Lan , luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, seanjc@google.com, pbonzini@redhat.com, jgross@suse.com, tiala@microsoft.com, kirill@shutemov.name, jiangshan.ljs@antgroup.com, ashish.kalra@amd.com, srutherford@google.com, akpm@linux-foundation.org, anshuman.khandual@arm.com, pawan.kumar.gupta@linux.intel.com, adrian.hunter@intel.com, daniel.sneddon@linux.intel.com, alexander.shishkin@linux.intel.com, sandipan.das@amd.com, ray.huang@amd.com, brijesh.singh@amd.com, michael.roth@amd.com, thomas.lendacky@amd.com, venu.busireddy@oracle.com, sterritt@google.com, tony.luck@intel.com, samitolvanen@google.com, fenghua.yu@intel.com, pangupta@amd.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [RFC PATCH V6 01/14] x86/sev: Add a #HV exception handler Message-ID: <20230530143504.GA200197@hirez.programming.kicks-ass.net> References: <20230515165917.1306922-1-ltykernel@gmail.com> <20230515165917.1306922-2-ltykernel@gmail.com> <20230516093010.GC2587705@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 30, 2023 at 02:16:55PM +0200, Gupta, Pankaj wrote: > > > > Add a #HV exception handler that uses IST stack. > > > > > > > Urgh.. that is entirely insufficient. Like it doesn't even begin to > > start to cover things. > > > > The whole existing VC IST stack abuse is already a nightmare and you're > > duplicating that.. without any explanation for why this would be needed > > and how it is correct. > > > > Please try again. > > #HV handler handles both #NMI & #MCE in the guest and nested #HV is never > raised by the hypervisor. I thought all this confidental computing nonsense was about not trusting the hypervisor, so how come we're now relying on the hypervisor being sane?