Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2987148lqt; Tue, 23 Apr 2024 07:32:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWy6iFRrnS81N9MOXBKZ/Dg8NRolEADEgOx9yQCWfIo6L5jtRkt7hDgTcSHeDW5KZzad07hq8f3k9qTi58VsNCqIbsmlag8bE0UI2ZoZg== X-Google-Smtp-Source: AGHT+IHZeJjEYfBoUukW7gi2KAOEcZ/Y4An1vzcTXDz4K1cSFDwKAkpHzj95A8nr8d+c3noUaw7G X-Received: by 2002:a17:90b:68d:b0:2a5:7188:9590 with SMTP id m13-20020a17090b068d00b002a571889590mr12857624pjz.22.1713882773161; Tue, 23 Apr 2024 07:32:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713882773; cv=pass; d=google.com; s=arc-20160816; b=gWDnMQ8Vc0RRBR+ssTlgaWm8Pt+NenFRrkfsN/YxrjixD3kjcIqZvOCc58xmKejgfl Ml93Sa4+7eeDSyqFgLCqxkaDAiWQz9t9ueeq1EOMTWq71M9gr0Ab2AOaHxKq8XdItDDz repLWWo55uh5sW6js+hhTZ/IeEf8jqUFbM8RbvYsojlhQ4g8xf9EAvpHMi8RWT3UrDRF d1lxnHr/pXBKU1hNg3jBN1IKe2Nku4kPEXAZ/JRoiY4UJUKjAPLXEm9cgwxtJwHh3bTb 15UmDuybs4KTJlqe5znINWgzUbAj2vNPPq0eeKkGwx5t1S34OUwslaKyDAbX1ywHk88y SEvg== 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=g3yYV9AB6NHNYeggkvHsHK4XvZqvv1yRE3RUJ1dZAXg=; fh=ptoj++QapJ1QY98DlcLUCyVB4Ka/WRFjQJm2Qwg2Y88=; b=q9/BJx6scvW4+pAkU5P4teMZRrqxlPcqn3JTtYrgvw8QS7eE8qixbdwm4ZGalpuhVn o/f1Gjjmo76qGp7b7yll44tkd/ID2CWtEjCWcQKw1cgSpgGO+nzgYRsXglEmNjnryc+1 9GfftZPtpQmAYwSr6wsc/V+3R7A0j0Pw2L8zut6YPDRa691bSo4OU3nfpW09LOggIo2V 5CIz+Tz7AwVF3nN9z7stVN37ELsbrGpwWc66HJSLh0vySsCVp4VvvhLoEhi+BeJJEaHG 7RGbo+DX8dt4W8WdzWhGfoAO0sh3D2Mp30u3ot9GLzDyAPkUhQOvczAlfHQhoV/sJBp8 SDrw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=C+PQLdoB; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-154952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l2-20020a17090ad10200b002a85806f6e1si9663961pju.172.2024.04.23.07.32.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 07:32:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154952-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=@intel.com header.s=Intel header.b=C+PQLdoB; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-154952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 8117BB239BA for ; Tue, 23 Apr 2024 11:10:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDCDB77F1B; Tue, 23 Apr 2024 11:10:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="C+PQLdoB" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 E1120612EB for ; Tue, 23 Apr 2024 11:10:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713870605; cv=none; b=QVKwMRVyZaGi5/ji4+sDRminJwXsoD5boKtb162HZsLyjBJe73k4uQreUju8uPiRhuwIbhJwMWILCZjF1tHPsVrGkvBGfT81oGcTednU/OCPErPNhynIl2G0cISMZuqq+TX7KR8DXjzG93KWjFGHEu/ZZVkAhNJC0boSa5apfF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713870605; c=relaxed/simple; bh=RRS+5et4R4ukcEKGXKBGRT47swch/7s60XsJ4XLfqR8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gOA5I47dtk6Ol98n68ml3Hc0udMkOv9HEf3+YMIfgsUVSOUq+DfTRPdxNRLxkwBXjc57BJM94xOYLnSoWWUD7SI6V/ljmvMlWvSQ/Dl9CNlEO46COOarzMJhrcO5jl8nShi4dYO9+3oBdvtBttU7nQnK/8T4WAvw9bAZ5FNRZKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=C+PQLdoB; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713870604; x=1745406604; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=RRS+5et4R4ukcEKGXKBGRT47swch/7s60XsJ4XLfqR8=; b=C+PQLdoB0Mwe7IQhvAUs/t4c6EVAQLvJZEPwLf+Pk3ApLPsMJT9kNkeE Y7llDBlvMcF8vd+tz0eD3vShvwlqSV3Zrg6Abe0wlY1cYipm6Bkki+fuV vQfZwL2TDvsmlKB59JNPtfW4bVFE0fdS853mfKm9Pk3V+ykua2JogAYrl VqiNmNCyyS520GzDyYw+IM5pjjXKyZ5PYyWyJCxde1TnzgUvKdIChbdN3 M1Fb9ek2elhG/yC64EpLwf4N2+1U4S1HL9lHQyxbpI/IOtt+IrUK4DurA OQ6f8i4CM8aS6jNlth+YZQ/HB1NvLsM58vmffKF8seG2J3EVXqDeibbhc g==; X-CSE-ConnectionGUID: 7P2hiHkkRdW5D/B4X9hvcA== X-CSE-MsgGUID: KwbKyUQ8S/iSlq4/xBI8xA== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="13280573" X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="13280573" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2024 04:10:01 -0700 X-CSE-ConnectionGUID: doVcCCmjSU6grJ+ZVtLP4A== X-CSE-MsgGUID: w7/Eg5zyQQqPRUuSGjbuZQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="24390296" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa010.fm.intel.com with ESMTP; 23 Apr 2024 04:09:57 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 8A748192; Tue, 23 Apr 2024 14:09:56 +0300 (EEST) Date: Tue, 23 Apr 2024 14:09:56 +0300 From: "Kirill A. Shutemov" To: Dave Hansen Cc: Tom Lendacky , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, sathyanarayanan.kuppuswamy@linux.intel.com, hpa@zytor.com, seanjc@google.com, elena.reshetova@intel.com, rick.p.edgecombe@intel.com, x86@kernel.org, linux-kernel@vger.kernel.org, Chris Oo , Dexuan Cui Subject: Re: [PATCHv2] x86/tdx: Preserve shared bit on mprotect() Message-ID: References: <20240419201353.3937135-1-kirill.shutemov@linux.intel.com> <17930444-3740-f874-91e7-3ed81304b1a9@amd.com> 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: On Mon, Apr 22, 2024 at 01:18:26PM -0700, Dave Hansen wrote: > On 4/22/24 12:46, Tom Lendacky wrote: > > Appears to be no functional change on the AMD side. > > > > Reviewed-by: Tom Lendacky > > Thanks a bunch for that! I was just noodling over this one and that was > one of my worries. Please hold. 0-day found more build issues. Apparently 'cc_mask' is used in couple of drivers for unrelated reasons and "#define cc_mask 0" breaks them. I will send v3. -- Kiryl Shutsemau / Kirill A. Shutemov