Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6098394pxv; Thu, 29 Jul 2021 06:30:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP4KEc7RG+e4E32h7T3mhn0jMQA0cvMtM+4x0iNaISXnrzzicuKOlnwOExxnLzdpf80IQi X-Received: by 2002:a02:774a:: with SMTP id g71mr4449610jac.137.1627565420250; Thu, 29 Jul 2021 06:30:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627565420; cv=none; d=google.com; s=arc-20160816; b=tJdg8WcVVofMF7U3paCGe2Ihm7ttDC5Dt4lf8yGknP7uI9rKIvlmXHpLvb2jVHcw8s NjKDBST3x5uiTAASzftzkvGKZxFhgib1sMehJ1GudG4cOwHd3k2Pvjnqz6Y81m/29iXL JhhfxIZBWI3COBhlPs/ACABcxF4XrOzyH5BsKaVlLYksxQD1xRIrAUjIvimVuyaT7Ci1 Hdme4DSbQMYfPbydW6sboPm/zkvzei9BT6r8vC4U8VXiMdtwQ51Fw/nTs5+46NlmJwtq icfkWv9iFQzzKB3paqBypgXKttzvpd6mWn0N/tw29MCXgqdpDA8wcc4vfo+FmNaPNFoS n+Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=rFkRNcfpvB1Ju4IVqteFXhSiHej5m8ER5DA8p5t0LAM=; b=i0L2aJj1g7kkuoy+JwmtAXzeSOgB+AtMUXmKaPZ9FxErEB3EppmFaRM3fUto5w4wAT yADz05zN60AorPa4C0BmR4ZKlhZahXhRmHkQrpchuwvIz51lYCFMf6Eh9CBTNN131Kow /d5RFk1JYSQ0clqNObsojvIl3ozeDu6vtzQpmr7JzNDAgl/o2IiRTM/uqoCI2O5ioWAo FvOleePq9yIdERRm1dheaObRnXRARVv+EbdA4D/Dpx3BcjBb1nwCpQozym/ot50PiFHe NnRXhqDK4p4JbRJYQxfodR46nCTqwyLAgoFJ0J5yEsk0WSPQzRCDQonyFPvIcAYhi/CY noYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=adgE5oH5; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q21si3822423jat.69.2021.07.29.06.30.07; Thu, 29 Jul 2021 06:30:20 -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=@google.com header.s=20161025 header.b=adgE5oH5; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237722AbhG2N2v (ORCPT + 99 others); Thu, 29 Jul 2021 09:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237679AbhG2N2n (ORCPT ); Thu, 29 Jul 2021 09:28:43 -0400 Received: from mail-ed1-x549.google.com (mail-ed1-x549.google.com [IPv6:2a00:1450:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D59AC06179B for ; Thu, 29 Jul 2021 06:28:40 -0700 (PDT) Received: by mail-ed1-x549.google.com with SMTP id y19-20020a0564021713b02903bbfec89ebcso2917217edu.16 for ; Thu, 29 Jul 2021 06:28:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=rFkRNcfpvB1Ju4IVqteFXhSiHej5m8ER5DA8p5t0LAM=; b=adgE5oH5ZzQyJ5my+MCD24NaPHWhLe66wtzcPFxdI/5uGtUKivh3E2sLcxhhUi1oUH kO7wflN08UcEigT8OK5o3G9pnCptziZAF+CPeYXNsUPhGWRx9thRs8VvjUsj0wnVgVd9 FsDGXrEqaK5mNzuNKveKDQw9yNnZPbE3IwF3Nyp5jGLc24vZ6pC16gO1goRrmc6p4QeG 1pl2RVMEOAGPak5/N4DWB4EdeaFsM/1BqnR1Y+4My1F0edR0G+W0cHFgkk/nQylpkCT7 wfl1k5OCIXaC4iXp8zFS7ADwIDEW7L7ZdpJPW5wBQMrYF0zfhDiqkNWELGt0tzVlNpX3 W7MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=rFkRNcfpvB1Ju4IVqteFXhSiHej5m8ER5DA8p5t0LAM=; b=EHGgjoeME66CFxVdvEwrDGF6BQYfWzLHM5vTT0kmihr0YgR1LFX3dBi2Uf8/BikHnv YSmfOobHzRyoub0B8hYV4MBW85T6znkUle98BZFAlWSIVvXACZ9tWhJzHBVKLrcyyckD SfiMuAl24AMo7G+p2Ms26aG/abQftzPDZcDCpn03kfF3rDBXiJcaOI25HjgvEJjh0AEm 6Z2pZA89OfmZnJAoaleJcnAmtjVq+rsUZRTri4yJQWINrHgCnTGmKtWeVQizGHWpDvQp shQSX4LJ/W3/36Br5znXVco6zBgng1JxFHxsBB1WZ5ptyzCEayfALT7H/7E23ErDIW1T F+Mw== X-Gm-Message-State: AOAM5305Zsl4k4qtI4VwpIXOGuwVP1q9V1bW3w9XMkc4NAjEw2FwJu3k PjZiNq+hsbkEAu4mptXOiZTSkjC7PC2Q X-Received: from luke.lon.corp.google.com ([2a00:79e0:d:210:293a:bc89:7514:5218]) (user=qperret job=sendgmr) by 2002:aa7:dbc3:: with SMTP id v3mr6100538edt.63.1627565318816; Thu, 29 Jul 2021 06:28:38 -0700 (PDT) Date: Thu, 29 Jul 2021 14:28:04 +0100 In-Reply-To: <20210729132818.4091769-1-qperret@google.com> Message-Id: <20210729132818.4091769-8-qperret@google.com> Mime-Version: 1.0 References: <20210729132818.4091769-1-qperret@google.com> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog Subject: [PATCH v3 07/21] KVM: arm64: Rename KVM_PTE_LEAF_ATTR_S2_IGNORED From: Quentin Perret To: maz@kernel.org, james.morse@arm.com, alexandru.elisei@arm.com, suzuki.poulose@arm.com, catalin.marinas@arm.com, will@kernel.org Cc: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, ardb@kernel.org, qwandor@google.com, tabba@google.com, dbrazdil@google.com, kernel-team@android.com, Quentin Perret Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ignored bits for both stage-1 and stage-2 page and block descriptors are in [55:58], so rename KVM_PTE_LEAF_ATTR_S2_IGNORED to make it applicable to both. And while at it, since these bits are more commonly known as 'software' bits, rename accordingly. Signed-off-by: Quentin Perret --- arch/arm64/kvm/hyp/pgtable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kvm/hyp/pgtable.c b/arch/arm64/kvm/hyp/pgtable.c index 4dff2ad39ee4..59a394d82de3 100644 --- a/arch/arm64/kvm/hyp/pgtable.c +++ b/arch/arm64/kvm/hyp/pgtable.c @@ -36,6 +36,8 @@ #define KVM_PTE_LEAF_ATTR_HI GENMASK(63, 51) +#define KVM_PTE_LEAF_ATTR_HI_SW GENMASK(58, 55) + #define KVM_PTE_LEAF_ATTR_HI_S1_XN BIT(54) #define KVM_PTE_LEAF_ATTR_HI_S2_XN BIT(54) @@ -44,8 +46,6 @@ KVM_PTE_LEAF_ATTR_LO_S2_S2AP_W | \ KVM_PTE_LEAF_ATTR_HI_S2_XN) -#define KVM_PTE_LEAF_ATTR_S2_IGNORED GENMASK(58, 55) - #define KVM_INVALID_PTE_OWNER_MASK GENMASK(63, 56) #define KVM_MAX_OWNER_ID 1 -- 2.32.0.432.gabb21c7263-goog