Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp990635pxb; Tue, 26 Oct 2021 00:19:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7DbulKd899G9niUfiXji513JOHW/Mscvh9P3IUluHtyAO85d/fiN+YxBeFmA6jUh5CPhl X-Received: by 2002:a63:3c4c:: with SMTP id i12mr17355003pgn.447.1635232764981; Tue, 26 Oct 2021 00:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635232764; cv=none; d=google.com; s=arc-20160816; b=Chfmrddc8oFs56Ey6OxJagQ5DUmRfaXNclgxD7zJ5fIApPfxZ//QzLAiQIvMzZxuLr 5l1K7OWCaNpMs5XXMDW3/aVyC18nrNDQsuuKhMt5Fug35igVQ9Nwje55nuUiXhuumAAJ UROtxo+wepcQQhiFtTjSwv6l+vBp6n1xR0tDWejv7kxuWX20nTdH5XH/O4HthT5pfOmq wVEaF3sMj01VQSVUXXMK9win4sGEgHvtUWsrUPzfHydRdMpzUEOaJy3/eBx7SxQx+CZD 6dk/GFBLkzcKXtONE1Avj1aTmk8jCDKSm1sMN660JKhnPbBuO1tiUs+A/ZfHztivwqK6 5j+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=SvmuLrAtdjTncLWxPr0oWfdBGe3se7oBVEf8ePvbZjY=; b=0v1kg+h7gkt2RaJuQDFuDXi2Cw8imACrjnZeiRVdXAXQk9fh5wkC5XpjPmBHRKmGGS mu+mtPvM2P+Ko6vo660TpDySwPtopZm9HMQN4S3X2MyDyNA2hnwzXD9ZB7dLDT9+1TlB 2MD8O7E8/S7C+tMuBZCARtfYPn1nZC2AXl6DtA6PqZVWJK78lNx0643WKuxASMqT2QLH SLXuc8FjXFEBF+IS0F76ohJwUWaW44drsFE5nWl8GHLxPP9gTw0XQd/71iMSleSwOkPP 7XmcqMfTQcK7tXn6PLI+FZVBQeohqHAQmmTzk6ZW91dcohpwXgoOzpOBYXg1Oc6BBZOQ xKQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=pXRekACU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g130si25536116pgc.216.2021.10.26.00.19.12; Tue, 26 Oct 2021 00:19:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=pXRekACU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbhJZGZW (ORCPT + 99 others); Tue, 26 Oct 2021 02:25:22 -0400 Received: from gandalf.ozlabs.org ([150.107.74.76]:60963 "EHLO gandalf.ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbhJZGZV (ORCPT ); Tue, 26 Oct 2021 02:25:21 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4HdhZh5mJDz4xbM; Tue, 26 Oct 2021 17:22:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1635229374; bh=SvmuLrAtdjTncLWxPr0oWfdBGe3se7oBVEf8ePvbZjY=; h=Date:From:To:Cc:Subject:From; b=pXRekACUwp3RkBGaBMj4PrAPMiX4FzdOJDjdGhRko5l0UDaK1j3JAwLIK/AhreDJo Wikd4Tdr+GatmldPtqIv01cgI9l0+dN/OPPeK/165nv8GtdryPslLpqxntaGRHTpnR 4lCwI9pfLSr6d9kzcgc6pLiZuNQa0xr0aLL3AemrRI56UdWMUhEfSqER4gOiWEVG3Q 5pTG3I+vuZIa9dEzFJO6DsDHMT6bPT+HyYKMEhHpfcpaDthZfAifSt2ZKDFr+BDS2T toNX0Z6kcmI74vc9geAhACQLX7z9HLkm8UAGvhu5MGknSNZW8Mf5UgF/x8+GW2Fz93 4/RsxAYsEwbRA== Date: Tue, 26 Oct 2021 17:22:51 +1100 From: Stephen Rothwell To: Wei Liu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Peter Zijlstra Cc: Borislav Petkov , Linux Kernel Mailing List , Linux Next Mailing List , Tianyu Lan , Tom Lendacky Subject: linux-next: manual merge of the hyperv tree with the tip tree Message-ID: <20211026172251.0f655709@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/l7P5XwJqpsfbtmFPXdxUtNv"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/l7P5XwJqpsfbtmFPXdxUtNv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, Today's linux-next merge of the hyperv tree got a conflict in: arch/x86/mm/pat/set_memory.c between commit: e9d1d2bb75b2 ("treewide: Replace the use of mem_encrypt_active() with cc_= platform_has()") from the tip tree and commit: cf90c4532b92 ("x86/hyperv: Add new hvcall guest address host visibility s= upport") from the hyperv tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. --=20 Cheers, Stephen Rothwell diff --cc arch/x86/mm/pat/set_memory.c index 527957586f3c,525f682ab150..000000000000 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@@ -2024,6 -2025,17 +2026,17 @@@ static int __set_memory_enc_pgtable(uns return ret; } =20 + static int __set_memory_enc_dec(unsigned long addr, int numpages, bool en= c) + { + if (hv_is_isolation_supported()) + return hv_set_mem_host_visibility(addr, numpages, !enc); +=20 - if (mem_encrypt_active()) ++ if (cc_platform_has(CC_ATTR_MEM_ENCRYPT)) + return __set_memory_enc_pgtable(addr, numpages, enc); +=20 + return 0; + } +=20 int set_memory_encrypted(unsigned long addr, int numpages) { return __set_memory_enc_dec(addr, numpages, true); --Sig_/l7P5XwJqpsfbtmFPXdxUtNv Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmF3nrsACgkQAVBC80lX 0GwHuAf+P9tcZbWKVWXq2vmdhRFyI+E9a5LrbnP7qTWpCZkcxV2lBDf5qTk9LyYZ /Qzo1AxOcMHelB+eZByBaCz1FAgZO3AIaLRomKtuciAcA4v9HRTCCjzguVnEwIDz f8D0fULGaDWIRpCCpmoXrAFffC+xYZB0UK15Mopi9vBQuDi7ULJRXq6ZnE0rvXYU 2oyl+v6VXD49PeEgPIX0S/ihqSeIcyWAgJmwzU3j1oyElLW9zfIwBf8h3TpZq2xy XufPfRszQbqgfbquBKxV3mZ+aTTE9QvDukWtuKO5IiqJ/jhib3+c6HYgaSTLLreF VIzs4pNT73icEaX/rNE7s0vlNU28Rg== =0Pb2 -----END PGP SIGNATURE----- --Sig_/l7P5XwJqpsfbtmFPXdxUtNv--