Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2371344rdb; Tue, 3 Oct 2023 21:24:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8bqRiKofupg+3zQiYEYFkc/ebeNp8SRBOaVCx6GgDagFpSZ80B8hfKxQcBUNFLwGXEuqC X-Received: by 2002:a17:90b:1bc7:b0:274:589f:ba35 with SMTP id oa7-20020a17090b1bc700b00274589fba35mr1221261pjb.8.1696393476143; Tue, 03 Oct 2023 21:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696393476; cv=none; d=google.com; s=arc-20160816; b=f7Yn5uIHENNSqg/6TOukjz4RTv00hFrVJQitBe2IaRU1PyZd4NGw4AvHwDpASIU8Ix KM2p1WYoZLVRVCVGDGtyK6o7QnSn2cbnDgByGt1/GoF/qmq2+OCk2hPszE0rJPGD7JSj dWqvux1qjHC4oOALifXN0vbeX6eWIlLSL03hmFMLLDxDwz8kCW/VrqbIgMs7VQHaqnVu Pu0eCGiGMEpUOHpEuJGV1sTuEZxpOZBAfTTDDQcOrSNZYqDi0uF7Q07vFN4ro0cWIdNx Fy4VSQbl9FfEu1JdIH+itFEfuN/1eZPgeR+2Tk96/R36iOHhwZGkIAfjuUOgbd1/Opuj nmzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Gb48+9J6OzaJRq8+aduPuwzJE/KK9ZXSagOdlOkmQoE=; fh=uPfchtQtwAxsBaJq0H6OQn3OFqA+FzTOodupkROZei8=; b=TrnVfI2SjhDLIqUujyJFYxaLnztvCMppSPhCSl271RgWDnTFIrGewnkmuYehCOq3gv 9I+1DtGdkyEl2wq9soLQoReDZyJVOlMeDV8lJFTECdsd6DKsj8UAkC8e1DXa+hWtdU9s JKXpp3Y9bDWcxkYpbwMvPGBWB+ySeFB4MGr9lcilqmVllbBVOfzd87U38432DewrI+Dq hnI1HorVMmhMYp8K+z6YNy19x4RQKIczB3XR/mE7uCfprWNcZ44sYO7qcy04VxEQQunp g46FsESgShtzMXJYnschHKtyBvGev3k5PeQWBrL/CENjIIDC+VmcHAb6iG+wdzHsIpmz IL6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=JZXGPSEe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id my12-20020a17090b4c8c00b002791bfc67bdsi782534pjb.41.2023.10.03.21.24.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 21:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=JZXGPSEe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6B70981BEEAB; Tue, 3 Oct 2023 21:24:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238023AbjJDEYf (ORCPT + 99 others); Wed, 4 Oct 2023 00:24:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235435AbjJDEYd (ORCPT ); Wed, 4 Oct 2023 00:24:33 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C893B4 for ; Tue, 3 Oct 2023 21:24:29 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-537f07dfe8eso4826a12.1 for ; Tue, 03 Oct 2023 21:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696393468; x=1696998268; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Gb48+9J6OzaJRq8+aduPuwzJE/KK9ZXSagOdlOkmQoE=; b=JZXGPSEepYM5LW1PaUnGslbIMZFFAl1vrmv3bx2/S+TIHQpJM2wZDnLK3EJLlmEWQw xU3G61T7zfaBB1CD3PQpiqYNMgtKN5ul3YayQgDa4K06KFzeZ3B5vKstAFnB3qTYIlNk cw9bCrUoHZ2nqJPvSYLc2A5U//44zGutN+v0mnvdCS9Unoue2FG3etwEZ8WYXB+BId6i vU49XQkyOePSggWanEYnS4AXgyl/foAg1wFHqfT/jo2BrT91z7xfQxDl/fWTvfgckGTc +EPfNxgwzv/IYnJVfRAfORD0PVyiu1yi3jch8AfvW/zoLPsFwvog3zDAMZZYeiYI6/8G jOug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696393468; x=1696998268; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Gb48+9J6OzaJRq8+aduPuwzJE/KK9ZXSagOdlOkmQoE=; b=usiyBMweIXAzNxyB5cS/eFS1s19L+kGaEUENq0Bo3J+ONqTFzyRcQdxj8uRiEd562Q p8B6qa9epOBLs9aWySKDR/me5GxmFw3fHyeoikshDWfmnv6RP6zre0/Jo+/EgHfO6ATW nv/0Di7ox+Sove7UryIkjCt3QC47ACgqJnFI3takOopeVeDm79nplvLc93yo5ApxAsDB 8D4pUX6qSr8dJs3yC/nDYLxVRx9UTZwHwGM1Hjwqr7QpmS8PydhZ0lIIzhiFjw8ry6Gq SS628Iod+YjYuAj28KAQQPemN/5G7zdUYxs63hqNjsquMrJH9UP/F68EJcwJByED6u2P 7cNg== X-Gm-Message-State: AOJu0YwzpiRBG9bb5YuaSP76K/ghCffcasg3+SDeBWW1ipjzBpPbRxui sKHBXB2o6/GeN70GiwBQ3o4NAOWnuQExcA4+odRs4g== X-Received: by 2002:a50:9fa4:0:b0:538:1d3b:172f with SMTP id c33-20020a509fa4000000b005381d3b172fmr43527edf.3.1696393467921; Tue, 03 Oct 2023 21:24:27 -0700 (PDT) MIME-Version: 1.0 References: <20231004002038.907778-1-jmattson@google.com> <01009a2a-929e-ce16-6f44-1d314e6bcba5@intel.com> In-Reply-To: From: Jim Mattson Date: Tue, 3 Oct 2023 21:24:12 -0700 Message-ID: Subject: Re: [PATCH] x86: KVM: Add feature flag for AMD's FsGsKernelGsBaseNonSerializing To: Dave Hansen Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Pawan Gupta , Jiaxi Chen , Kim Phillips , Paolo Bonzini , Sean Christopherson , "H. Peter Anvin" , x86@kernel.org, Dave Hansen , Borislav Petkov , Ingo Molnar , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 03 Oct 2023 21:24:35 -0700 (PDT) On Tue, Oct 3, 2023 at 8:27=E2=80=AFPM Dave Hansen = wrote: > > On 10/3/23 19:44, Jim Mattson wrote: > > I'm a little surprised at the pushback, TBH. Are you implying that > > there is some advantage to *not* passing this bit through? > > I'm not really trying to push back. I'm honestly just curious. Linux > obviously doesn't cat about the bit. So is this for some future Linux > or some other OS? It's not for any particular guest OS. It's just for correctness of the virtual CPU. Pedantically, hardware that enumerates this bit cannot run a guest that doesn't. Pragmatically, it almost certainly doesn't matter. Getting it right is trivial and has no impact on performance or code size, so why not just do it?