Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1566174rdb; Sat, 3 Feb 2024 11:36:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFZvIgkYQncvMm6jzTtZCz1j6DTdUJzT7q40Sa7509SC3iHbiHwJDUVkVnT0Y0s7TOtf/aa X-Received: by 2002:a05:6a20:6a09:b0:19c:a3dd:3f6b with SMTP id p9-20020a056a206a0900b0019ca3dd3f6bmr3309090pzk.3.1706988969123; Sat, 03 Feb 2024 11:36:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706988969; cv=pass; d=google.com; s=arc-20160816; b=zja2zd0HJwE05wwNR9Q5c4xaJVnNPjLDn0ITadrQWD1RmUaoh0I/Ar2CQz6k0xdFmR iPfQT/JZac9bRf2XVzaI5xm35gR7wwYDh9aOnJ8GRI7NRErxQ4exuLCHewUlH4Uw6cgy WqlGr2rJpBrq0R1kt7YTkrYmG46KcHdbKWtTAtKRfQkBPGPxP906RPzdTAhyjwUQKN0A j2e/av5tMZmrwjunYFtNcktSh13cVAGbTLjhN3gZ1mU5DpmEnX/Sc7U12SZMuZ89p6xU mNLPCr0nQ94OnXpkbc2OnJmEXTySav+k6JNTKBbUzKtoPlhabLa+kkHVE+UI28rqff1T 1NWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3XSmdI4TD+ma1DoU+9C4gRcjOiurIUpukZMUfE6w+mQ=; fh=zb3UQ++jmpxM2biC6c4xI8jmob0u5D8378R6XhKqohQ=; b=QfftypM0PqVqampitrKyDdRPaRwoNeBQ+q4zCt5Qyo9OxEEhfkANbGyuvv4I3NZolS M4LWjW8foGFyu/8ZGgmn/TCVJqjDXC2AU7DnZ9SWtnTg1PZRwWeeycid2LU5+GuK48d+ r3yYivrPDcVVA99L6EUFJYGf/h6sk2q5CsoOBTza9JtsKZJ50/Geqz7ZJBgjNokPjOiN 916TIGPo0Z/M9qLkRfeEYvlLKASvIRZAzu3JzLGnnNclcopliSrpr4zBZuOuVlqiJ3N0 AFzr12mcIA0xsAdBFrb6GFZnL5kaI5OLma9HkvbtdMyw+7TQzJTqZJB1AAHkrd+BVSYV nxBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TUBxW4nx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUJxDVlfa0XrA8D1ZmnXZzFaGEFqRyhbCtiKdCgoTzeK3egDZI4mEFxzKCFGGHz/2jExqn9oQuWBS/tQkffBeg3QJQBLHKhDpdyZW77lw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c23-20020a634e17000000b005d8b8c6a98bsi3691370pgb.588.2024.02.03.11.36.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Feb 2024 11:36:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TUBxW4nx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51271-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id BB44FB22E77 for ; Sat, 3 Feb 2024 19:36:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F6E65F56E; Sat, 3 Feb 2024 19:35:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TUBxW4nx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20AF05DF31; Sat, 3 Feb 2024 19:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706988955; cv=none; b=WpoIctXc1uQshPYs3Lzjrl9Ywurj9Mg8N/qL+uYUPq9da1cr/KktSH1vuMapoMVSWOX4xRR+66ZHwsca3C6aFsOFQaC2bDl/PcrMHr7VLPBcW130KDpOxX3/TM8NaczfOUn3aWuCGf6Kf6C9G7fxyHY4VSD4UFlZuzv8cansIG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706988955; c=relaxed/simple; bh=zqqko3SVZxwsUe94mUv1PkcA19T881WPCeH+WU4mV90=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BeXbJkVHriY+Iw/vWkqEC6/twQA/njZQNLh5A3v6Ss/7uRIg4grN+gTNfwRqQonB7o1VZElHvBp6dIdBgfFOgsan0K31mbsbKuUSak8W1uRCErRg90qaOJVJu4RPtAeyTwPPmTJfn4pI8cWiMTfy4jQmPRvOUFtFPAP5CZ0sWao= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TUBxW4nx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3DFAC433C7; Sat, 3 Feb 2024 19:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706988954; bh=zqqko3SVZxwsUe94mUv1PkcA19T881WPCeH+WU4mV90=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TUBxW4nxljLwzo6ljThtzvFLBCowFHQXvdcIybR5Fh/pm+Y78xH4k8Va14n+0d6ZC ZaIA65iRnESA3P5i1LjbGU93MNk7qUzJtQCurZ7EaOvb7CDxrQZXcos3ppUufFPi9B XV43IXc3YJwcVR8G9lxa+4+hWVWm0U4DnsvKxrn1By+0aB4azMJvcahACZMif/K4Cj uQoQuR3arMlDSzDaFpA2bhhvZRZZIWtgiJR/UUUEEYgsHqaymEbbsaNo8n79oM7nlM 42oo3tt6hEv3ONid6yt+4qnllXg+/EhtOVC2sdtq/nEiDQWRRa/hMXBn9M9hpzvyoR y7I4YGdmwGnJA== Date: Sat, 3 Feb 2024 12:35:52 -0700 From: Nathan Chancellor To: Borislav Petkov Cc: pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, kirill.shutemov@linux.intel.com, ndesaulniers@google.com, morbo@google.com, justinstitt@google.com, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev Subject: Re: [PATCH] x86/coco: Define cc_vendor without CONFIG_ARCH_HAS_CC_PLATFORM Message-ID: <20240203193552.GA655765@dev-fedora.aadp> References: <20240202-provide-cc_vendor-without-arch_has_cc_platform-v1-1-09ad5f2a3099@kernel.org> <20240203102925.GFZb4VhT1IwX-XRxTV@fat_crate.local> <20240203160806.GA520926@dev-fedora.aadp> <20240203190729.GHZb6O8UborcetShlw@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240203190729.GHZb6O8UborcetShlw@fat_crate.local> On Sat, Feb 03, 2024 at 08:07:29PM +0100, Borislav Petkov wrote: > On Sat, Feb 03, 2024 at 09:08:06AM -0700, Nathan Chancellor wrote: > > I have no issues with blaming a9ef277488cf but I think da86eb961184 is > > equally blamable for removing the option to use cc_vendor in generic x86 > > code where CONFIG_ARCH_HAS_CC_PLATFORM may not be set. Hopefully that at > > least carifies the "which is it?" question, I'll do whatever you think > > is best. > > I guess I wasn't clear enough, sorry about that. Of the two, that one Guess that makes both of us :) > should be in Fixes which is the first one which causes the build issue > so that the fix can be backported to the respective kernels. > > IOW, if you can't trigger with da86eb961184, then a9ef277488cf should be > in Fixes and your fix should go through the KVM tree, along with > a9ef277488cf. > > How does that sound? Yeah, that seems like a fair plan to me. I was a little concerned about a future change that would require backporting to kernels that have da86eb961184 (i.e., 6.6) that do not have a9ef277488cf and miss this fix but that is a bridge that can be crossed if it ever appears, no point in thinking too hard about it at this point. I can send a v2 on Monday, unless Paolo wants to just add Fixes: a9ef277488cf ("x86/kvm: Fix SEV check in sev_map_percpu_data()") directly during application. I think the rest of the patch is fine but if there are any other changes that should be made, I am more than happy do to so. Cheers, Nathan