Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp951547rdh; Fri, 24 Nov 2023 01:45:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2zM+MsdFLjwsJrxtKAMwT7wI+p3IcGq1m+YOP0Ebe2+CJG3C21uVzNo81GqS91ULu4F71 X-Received: by 2002:a9d:7d11:0:b0:6d4:726f:689f with SMTP id v17-20020a9d7d11000000b006d4726f689fmr2354106otn.6.1700819137901; Fri, 24 Nov 2023 01:45:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700819137; cv=none; d=google.com; s=arc-20160816; b=fWEXQDzLtITMi3ViJvpPOUGoffxPfZ6tokCHwfSt+I9IlVGaWgeCpUzCFIYZ50HSta Kj1M2PC7INNd9QbrecS0uJziC9spl37khwUmVGNt47wzRDRgShtYoYtikxESu42PYKwz Bmrd4legzepuijK8JX3kaeY7ig+w3VQ+nxdVdZrhDcKJ8vN5yqnMTrCKWJgAiWiGd2EO hf/J1xaezCkfrEDm5OiMhN4YgoaT8TRKOh+oGyMWGKgrwaiiW20dHuvwam++J68f38Er gwEPLH/v9O/01tLcaMPVSqtJkrw8bluPyjwauKIcqIdsDaSANaiiELb4n0/84GjTlGdW kd2A== 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=Q04QX2XORVuRYVk3Q76mtdjHo7RHw4z3tLXdjxXDBbU=; fh=lYT2i0F76MPI6vHSclh0hZcdRpmGWP4CWBD2Lo7Nroo=; b=CNw9lEFhK4KP8hfswfHNjprNOUEezrQKCi1NAJvXbiJRP64XQxyJBcP+mxOHKAH/ol p6g01H305cem02RcbashicxKFg1aeCq7KLnIzKdOWOgTzDm+btlWBPcg4guW3k9l/U2a qtZGG4pV23F3hHGWeL2VUx+RF2TXLdPb4dDeOgmHQoZ2e7Lipm7+4VV4x9tD6GOmsduE oDfXpurw9x0KRTYxgGLjKPuCPZ0Np0/SWTJxzYQBEex66NSu7Ak7VudcePsyYjD8jdxW wX5CKjGMs9sS4COM9CzdnkfbHnExpBkHy8fMAypzRm93goYFfRAUixod+mpr+VjYwQLi RdzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=e7f94pez; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id t3-20020a63d243000000b005c21fbab567si3256362pgi.659.2023.11.24.01.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 01:45:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=e7f94pez; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 62F138074CC4; Fri, 24 Nov 2023 01:45:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345148AbjKXJpI (ORCPT + 99 others); Fri, 24 Nov 2023 04:45:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbjKXJpG (ORCPT ); Fri, 24 Nov 2023 04:45:06 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80D40D68; Fri, 24 Nov 2023 01:45:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=Q04QX2XORVuRYVk3Q76mtdjHo7RHw4z3tLXdjxXDBbU=; b=e7f94pez0o4pH8GJtdQLvvrb/K QM8zbbzp0e70Ta9FPV+Fp6nlHm5hidpLRSEWjY2Mj9MGUPqRzVZF7tUFAWvcR3yKAruCCzq9M6eKh /hah733yG5gALgRdgiS6k3GWt7OvJXCxmq++mgZQZTDDPEmiLsb/wTaxeLQ2MjbWHBqhG/U/OhFmW Kpcv+ZsQMOHe4CmmpMEq/zriijNfnO0gkNRq9b9JiPvjqyKT9kNpSn4OFQwR0Bdi+bdAsvnY7W2C9 xO2NuEbfh1YqpB7j4A19BbCBe8ApTiFZSCGczimyIVbMmhYSmNSAy97E+cl8MhWyOVczkvZOKTd5o /AXqbm/Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1r6SkB-008R1y-43; Fri, 24 Nov 2023 09:45:03 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 7155D3002BE; Fri, 24 Nov 2023 10:45:02 +0100 (CET) Date: Fri, 24 Nov 2023 10:45:02 +0100 From: Peter Zijlstra To: Yang Weijiang Cc: seanjc@google.com, pbonzini@redhat.com, dave.hansen@intel.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, chao.gao@intel.com, rick.p.edgecombe@intel.com, mlevitsk@redhat.com, john.allen@amd.com Subject: Re: [PATCH v7 03/26] x86/fpu/xstate: Add CET supervisor mode state support Message-ID: <20231124094502.GL3818@noisy.programming.kicks-ass.net> References: <20231124055330.138870-1-weijiang.yang@intel.com> <20231124055330.138870-4-weijiang.yang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231124055330.138870-4-weijiang.yang@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 01:45:23 -0800 (PST) On Fri, Nov 24, 2023 at 12:53:07AM -0500, Yang Weijiang wrote: > Note, in KVM case, guest CET supervisor state i.e., IA32_PL{0,1,2}_MSRs, > are preserved after VM-Exit until host/guest fpstates are swapped, but > since host supervisor shadow stack is disabled, the preserved MSRs won't > hurt host. Just to be clear, with FRED all this changes, right? Then we get more VMCS fields for SSS state.