Received: by 10.223.176.5 with SMTP id f5csp73452wra; Tue, 6 Feb 2018 17:29:06 -0800 (PST) X-Google-Smtp-Source: AH8x227QS1v9V8EwrDUBMDFQTYo/pFf93+RbYpIeH6LvuhGLnejRRtpW5g3yOrFMENf+QejvCHhg X-Received: by 10.101.80.69 with SMTP id k5mr3482901pgo.425.1517966946164; Tue, 06 Feb 2018 17:29:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517966946; cv=none; d=google.com; s=arc-20160816; b=kS12GsYgSa4AR3HZcqQa4hdLAtxj/5VHbE9fv3KekqosAebdMdqxQ3EYsqOgjKypMU 5gWW0jv6IgsrqJq8QxceDS4rjNOTokqCIkcPglgS/otYUD2q8Nu9U4MRkcFRWwo8xOVL z5V7B1YnePJQ70WaQqCS692n/RtVJdBgwl56cC6M3Qo6AGXP7AXeoV5iVSON+vxzXf/o ooPB5Ko9+GjG9Ul3uJFj4LapHU+cOSgfXnLUT+UA2OnHcK5u79S3f1bxQJT6dvQwdBE3 Z985MqQmsrvyAgszGjS9wye5MBtV7DyZScvaJOOaoWKheRL+2RAgBLYv0t51F7VuPObc qiHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=l/2PFGGpwwB4tUhXAyba5UrOpmjxLQMDt30d7XCW8WE=; b=lsSR4Cb/mYaLIT8Osp8/+g9wAega9kv4TZCK2Tk6/3w1JHWwO0lnT+XIiwxi/MKyEK A2XzuSBkZvVt/eXo5ItAeBHWDRAcSoaTJwDU0y5uTTpWTh3LyiAJybZyrARtQPFnZDtK 0d6q3aAyI6fre1QjRU78YKwUYtY3RcxCs2J+cf+Em7GzQEgoAlyYmWAzagPrW+Ha9cbH Q30xwBOFiwPzCN641TuB6ymXis2mc00puRpIait2pVofwQNgowodRhmwwXJupUcqxEo6 zPle9Emljft4HwpcAgteM8JqpTZuNhNsCkNE9xNLPgDjpc3U6SQAmDezRsNWkKP5Po1G k3bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=WqemszX8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z5-v6si244454plo.122.2018.02.06.17.28.44; Tue, 06 Feb 2018 17:29:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=WqemszX8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932265AbeBGB2A (ORCPT + 99 others); Tue, 6 Feb 2018 20:28:00 -0500 Received: from ozlabs.org ([103.22.144.67]:60469 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754189AbeBGB1z (ORCPT ); Tue, 6 Feb 2018 20:27:55 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 3zbkGd58c4z9s1h; Wed, 7 Feb 2018 12:27:53 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=canb.auug.org.au; s=201702; t=1517966873; bh=idSjT3VTE2wIfO1JkLodHpNfYmc7x+d+Nh1nxJX64YQ=; h=Date:From:To:Cc:Subject:From; b=WqemszX8cldpJbMMB3B1BXgQMogQ+Ei97YhT413pFndpV2u7R0bXb24dP4yUZNZpe H+JbYIHywMEMaDj+YP/ZQAaNMwcHTNjURzsNw2k6NGsCNISdfYuGHPM+S8+XRH6aeS sUhLx5WwH6RenfCLDzHngZAJXdAbQvJSdwXhLMzxXmz8mziizE5mmPQxqOXkf9w5xH ypwEWko7+3SRAW1uMNZDd/0V2NCjAvfeXVjIh9c8+XK4Z3qsYZ5S8gDNi2IORlIdyp TgIqP32/hNqGmtRS10QJEmJWf7K0/B0IUtu1uk97XTGCp39Ch46sVVOgRpVoQmia1G I4DFImoHTD66g== Date: Wed, 7 Feb 2018 12:27:53 +1100 From: Stephen Rothwell To: Paolo Bonzini , Radim =?UTF-8?B?S3LEjW3DocWZ?= , KVM , Catalin Marinas Cc: Linux-Next Mailing List , Linux Kernel Mailing List , Marc Zyngier , Christoffer Dall , Will Deacon Subject: linux-next: manual merge of the kvm tree with the arm64 tree Message-ID: <20180207122753.6e228f27@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Today's linux-next merge of the kvm tree got a conflict in: arch/arm64/include/asm/pgtable-prot.h between commit: 41acec624087 ("arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0()") from the arm64 tree and commit: d0e22b4ac3ba ("KVM: arm/arm64: Limit icache invalidation to prefetch aborts") from the kvm 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. -- Cheers, Stephen Rothwell diff --cc arch/arm64/include/asm/pgtable-prot.h index 2db84df5eb42,4e12dabd342b..000000000000 --- a/arch/arm64/include/asm/pgtable-prot.h +++ b/arch/arm64/include/asm/pgtable-prot.h @@@ -53,24 -47,23 +53,24 @@@ #define PROT_SECT_NORMAL (PROT_SECT_DEFAULT | PMD_SECT_PXN | PMD_SECT_UXN | PMD_ATTRINDX(MT_NORMAL)) #define PROT_SECT_NORMAL_EXEC (PROT_SECT_DEFAULT | PMD_SECT_UXN | PMD_ATTRINDX(MT_NORMAL)) -#define _PAGE_DEFAULT (PROT_DEFAULT | PTE_ATTRINDX(MT_NORMAL)) +#define _PAGE_DEFAULT (_PROT_DEFAULT | PTE_ATTRINDX(MT_NORMAL)) +#define _HYP_PAGE_DEFAULT _PAGE_DEFAULT -#define PAGE_KERNEL __pgprot(_PAGE_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE) -#define PAGE_KERNEL_RO __pgprot(_PAGE_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_RDONLY) -#define PAGE_KERNEL_ROX __pgprot(_PAGE_DEFAULT | PTE_UXN | PTE_DIRTY | PTE_RDONLY) -#define PAGE_KERNEL_EXEC __pgprot(_PAGE_DEFAULT | PTE_UXN | PTE_DIRTY | PTE_WRITE) -#define PAGE_KERNEL_EXEC_CONT __pgprot(_PAGE_DEFAULT | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_CONT) +#define PAGE_KERNEL __pgprot(PROT_NORMAL) +#define PAGE_KERNEL_RO __pgprot((PROT_NORMAL & ~PTE_WRITE) | PTE_RDONLY) +#define PAGE_KERNEL_ROX __pgprot((PROT_NORMAL & ~(PTE_WRITE | PTE_PXN)) | PTE_RDONLY) +#define PAGE_KERNEL_EXEC __pgprot(PROT_NORMAL & ~PTE_PXN) +#define PAGE_KERNEL_EXEC_CONT __pgprot((PROT_NORMAL & ~PTE_PXN) | PTE_CONT) -#define PAGE_HYP __pgprot(_PAGE_DEFAULT | PTE_HYP | PTE_HYP_XN) -#define PAGE_HYP_EXEC __pgprot(_PAGE_DEFAULT | PTE_HYP | PTE_RDONLY) -#define PAGE_HYP_RO __pgprot(_PAGE_DEFAULT | PTE_HYP | PTE_RDONLY | PTE_HYP_XN) +#define PAGE_HYP __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_HYP_XN) +#define PAGE_HYP_EXEC __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_RDONLY) +#define PAGE_HYP_RO __pgprot(_HYP_PAGE_DEFAULT | PTE_HYP | PTE_RDONLY | PTE_HYP_XN) #define PAGE_HYP_DEVICE __pgprot(PROT_DEVICE_nGnRE | PTE_HYP) - #define PAGE_S2 __pgprot(_PROT_DEFAULT | PTE_S2_MEMATTR(MT_S2_NORMAL) | PTE_S2_RDONLY) - #define PAGE_S2_DEVICE __pgprot(_PROT_DEFAULT | PTE_S2_MEMATTR(MT_S2_DEVICE_nGnRE) | PTE_S2_RDONLY | PTE_UXN) -#define PAGE_S2 __pgprot(PROT_DEFAULT | PTE_S2_MEMATTR(MT_S2_NORMAL) | PTE_S2_RDONLY | PTE_S2_XN) -#define PAGE_S2_DEVICE __pgprot(PROT_DEFAULT | PTE_S2_MEMATTR(MT_S2_DEVICE_nGnRE) | PTE_S2_RDONLY | PTE_S2_XN) ++#define PAGE_S2 __pgprot(_PROT_DEFAULT | PTE_S2_MEMATTR(MT_S2_NORMAL) | PTE_S2_RDONLY | PTE_S2_XN) ++#define PAGE_S2_DEVICE __pgprot(_PROT_DEFAULT | PTE_S2_MEMATTR(MT_S2_DEVICE_nGnRE) | PTE_S2_RDONLY | PTE_S2_XN) -#define PAGE_NONE __pgprot(((_PAGE_DEFAULT) & ~PTE_VALID) | PTE_PROT_NONE | PTE_RDONLY | PTE_PXN | PTE_UXN) +#define PAGE_NONE __pgprot(((_PAGE_DEFAULT) & ~PTE_VALID) | PTE_PROT_NONE | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN) #define PAGE_SHARED __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_NG | PTE_PXN | PTE_UXN | PTE_WRITE) #define PAGE_SHARED_EXEC __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_NG | PTE_PXN | PTE_WRITE) #define PAGE_READONLY __pgprot(_PAGE_DEFAULT | PTE_USER | PTE_RDONLY | PTE_NG | PTE_PXN | PTE_UXN)