Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3694119rdh; Tue, 28 Nov 2023 00:51:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJsStw0h4f8aP0hJ8wWBiXP0ISeB7928ZL1ZKhaeFfyVyrNbYl7cKW64s3GGrs/hLna5Tp X-Received: by 2002:a05:6358:52d2:b0:168:e396:aa96 with SMTP id z18-20020a05635852d200b00168e396aa96mr9648168rwz.11.1701161490756; Tue, 28 Nov 2023 00:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701161490; cv=none; d=google.com; s=arc-20160816; b=Rf61JB6e5lcV5UF+/UZiOC9ZQyVFSqORp3Rr0Tf/ImrLREr3u1VHbt7w3yfZIV26jg EM+Q5tMeJGZOV4c4UpkA7oEVHFxzMDTLVQWgusx+WKtbi1/Rp69MO47r552Txn5l5wvq mnyhAbn/LHrcDh28fPc0tWo1YD3LF4EpuHUupWCrOTMDBlwKqKSav77wEqpDqm+p/bzL HHYa03eL7zwr5mCMeBV1laT1OB7OOZvfQJEMaykG4Gx+EzGM+FzJeHFNoDUu1yZHfegE E3eDmDgYfQOOM8K0U2OBtXhPmKZ8BPZdOlPwVZHvcVo5IMFYGHn5x/Rmn2GK/dXo39OC jbbA== 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=U4zEsxIBsLahGMZZYNnGegu2oI4a59iX9SFLCvRWtLQ=; fh=Jpvys7ebOMZfh1EqqKE62mVjQK9eywUqIz6/v8MXsKM=; b=YLp2kDx8wfZc5x+CpGBAJVFd0z28T0Knty2Ng8L/fXRK3EOcjEnqpIdrvLlJWbJzYJ p1Kbgwlg6flt5BrKBPTZHknKPJ5Gd6KaC+nHNMdwo+GXNlnXXmVYFjyRkPMFuKnWMA4N 4EZKcy/jAvi2xh8X/XHuTouqv798FSp6drQgII+VodiY3xSzDJJ3bn8rrOtIj2unAiDQ aylEXRQLxA16rEXrVbamcYWfASdCfUHve+4dsVXO3WC/d7ZSR0shq3rnzUehwpqix0rt o08wMJN6gPCqlNtbrdUFCNTYhbEimq/otgAMUOTiQUnys5T+g2vU5kh4+MmcpAwtjGQL ucPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nYHzmgu+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id 1-20020a631541000000b005bd3ca6c398si12154699pgv.736.2023.11.28.00.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 00:51:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=nYHzmgu+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 0D2F38047472; Tue, 28 Nov 2023 00:51:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344248AbjK1Iuh (ORCPT + 99 others); Tue, 28 Nov 2023 03:50:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344219AbjK1Iue (ORCPT ); Tue, 28 Nov 2023 03:50:34 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EA07A7; Tue, 28 Nov 2023 00:50:37 -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=U4zEsxIBsLahGMZZYNnGegu2oI4a59iX9SFLCvRWtLQ=; b=nYHzmgu+9P9Empy1r8CED4qj4l MxPjN6hJKHk3Y5+MoUBQJa7c4XNAYhTXs0qsXEUomhqb4EqhFoWwX1xH5n0aCfFxhe8miFZnRdPrq ylt9DCjgnoztRLHYN2Jlr6C6n9Nm1y+A6H1VdWWtrdxpRdxOMb4X5DaEZboVg3dOQdeeu8o1iZF/O De12Tebe/22PXvrbjPMYoZ7Wurz0YTTkaWzDXz4XJpbqiT8Jkpd8DoZTRupxs3f4RO2Xx4WJM/PCu HSZff4EhjU5e11rM0iHi6+I1P6uTN1iJ/szpDuNdi9ZfURiP/zahwDFKoBL3rMAhJ9wj4GVAN67xA TSwaA9Hg==; 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 1r7tnX-00CCWm-9v; Tue, 28 Nov 2023 08:50:28 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 276CB3003F0; Tue, 28 Nov 2023 09:50:26 +0100 (CET) Date: Tue, 28 Nov 2023 09:50:25 +0100 From: Peter Zijlstra To: "Edgecombe, Rick P" Cc: "Yang, Weijiang" , "Gao, Chao" , "Hansen, Dave" , "seanjc@google.com" , "john.allen@amd.com" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "pbonzini@redhat.com" , "mlevitsk@redhat.com" Subject: Re: [PATCH v7 02/26] x86/fpu/xstate: Refine CET user xstate bit enabling Message-ID: <20231128085025.GA3818@noisy.programming.kicks-ass.net> References: <20231124055330.138870-1-weijiang.yang@intel.com> <20231124055330.138870-3-weijiang.yang@intel.com> <20231124094029.GK3818@noisy.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=-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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 28 Nov 2023 00:51:28 -0800 (PST) On Tue, Nov 28, 2023 at 01:31:14AM +0000, Edgecombe, Rick P wrote: > On Fri, 2023-11-24 at 10:40 +0100, Peter Zijlstra wrote: > > So booting a host with "ibt=off" will clear the FEATURE_IBT, this was > > fine before this patch-set, but possibly not with. > > > > That kernel argument really only wants to tell the kernel not to use > > IBT > > itself, but not inhibit IBT from being used by guests. > > Should we add a SW bit for it then? Don't think we need a feature flag for this, some boolean state should be enough. > ibt=off sounds like it should be > turning off the whole feature though. It doesn't sound like kernel IBT > specifically. Well, the intent really was to just not enable IBT, clearing the feature was the simplest way to make that happen.