Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3576000pxv; Mon, 19 Jul 2021 03:48:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC/vlmL6PtUo6YXKSELkVNdl36gEqxCeJ7u4KtO/fRw+zH0hwHUNKpDCapgIv0gB3969ED X-Received: by 2002:a92:c005:: with SMTP id q5mr14113736ild.117.1626691718602; Mon, 19 Jul 2021 03:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626691718; cv=none; d=google.com; s=arc-20160816; b=JdswmC4jX8DK7rn/m3BhaXcOpdTCOL5+GL+hg4US1X+OomeiGDIXTKCQyck79JHaPz fDMpDhm9MrbOh9pWdq3NxvkCe11KocWzjwWmRwAWieDzj3Tjbr1jHdCvKSktHhxxrEMs c7HABJs0yqqQgZnsBP7jxfdd1yNxaNRlSaT/pVo5gItCLGEkyGIMagGkzbMAtgm3IbB2 afqI3qsQ1PHPJeFM33FkHIm9pBLQ2IPMdhPXyssU2tpGlllF5mzObxtHqUU/uCmCL5VG FukMR69sYfqFqaQLKx/TDWFsR2LCpNExBN3zPoodoqvl9T+EFsLUfHlnX7q/K3ybRaEb xinA== 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=hF3abQWZBVX3OcEZC1+muydZc+hxmzmuOXsHVIQGXQY=; b=AhaDUuO3hUQdn09o8m24ZiRn9hdPSMS6w7+zYscEUV5yDdIuhYIYPASIXu1+QgJikQ mAXgWUHAx+q/vO9zfCr+Dx+PVCgAuGlwAVxt8+dyw/CCrNkqyNLOQWMpDPaRAxlFR6vN SR3YV3H9nw60LoHaxdxRPoLXJG4xRKaSvqdZiEZC1tPt67mt/MXKx3QcSyZ9155BkAFm AG3CTwvljG5oTPBxg1Jf8NkmFotjdI61SW2zOZSH0rIi28CvdUL5I8+0ypKWmJQJxJhH qN7KEUXnImNCirKqlei34dy8ar0RprX7+ZETPAPwYMeuibhzgBDRptL8HGWFjqFSvO5g t8uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bKDVheVY; 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 v8si10038393jas.68.2021.07.19.03.48.26; Mon, 19 Jul 2021 03:48:38 -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=bKDVheVY; 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 S236683AbhGSKHO (ORCPT + 99 others); Mon, 19 Jul 2021 06:07:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236580AbhGSKHL (ORCPT ); Mon, 19 Jul 2021 06:07:11 -0400 Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4003AC061574 for ; Mon, 19 Jul 2021 02:55:46 -0700 (PDT) Received: by mail-qv1-xf49.google.com with SMTP id t7-20020a0562140c67b02902f36ca6afdcso14034472qvj.7 for ; Mon, 19 Jul 2021 03:47:51 -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=hF3abQWZBVX3OcEZC1+muydZc+hxmzmuOXsHVIQGXQY=; b=bKDVheVY1IoxMnY0wSKdcwzVYL3+9RUBExVTBuQLvOyjLLO3PPt0/L9UEBmEHL+1Dx 4GCQT5nMdj7k5BCms5Cp4cMXS2yqRf69jgSSFeaoSz1jZ8avNGOl6b181XVKQ4cCFaUh 2EXb6bfTh+tcgwI2a383qfuwgtr2+1sZO2XBFsp8DH6NTZhuD0ICB8n4FNcbW7Hlzrda YHTa8rkvihWr9onnhlMHiBLIYzudPGEcwL/Mb87H+EpZpOzDbgM0KKrePPGhBHLoHkMU i2BYhTw5ZbitjRvVXlW5OqXmbQ5tYM1XNWQVTNkVnIgSDNNNia7XPNcXQe/0SlM0ppTf GepA== 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=hF3abQWZBVX3OcEZC1+muydZc+hxmzmuOXsHVIQGXQY=; b=AIBCvICP3c/TyB0PWjRP6ZOR4fBpn5+9PFBwPbfeqQlePfRcttnQCSHUDFiUZ76wJV HZ+9Zo6i6H7C2+mBETgHvziy8s+HqsK6WpThpgwA6OYwgYL0NuzhKCFrD6vTl4O79cSq Nfd8yxiqsIwgTC1/4I6+I3rI0p1BJ/7cdgb+Kfwk//jWUkxv9EKyiDjH1yPmkTeWNkeo 8Ote0j/+xmmzc42HqLrDoypsy5WgoxzIGuRIqwPeVXEgbIu5/WBqS+AjB3Lm1ncZNkPQ /mBvGK2S6QbUbbtrUoFdQ/jKU8DUO/P6DzaiFQ6F9s8YREJP29wgmhqZ6ZwRAN8VKEwX FRPg== X-Gm-Message-State: AOAM533wsoaP1wHzaRfzHl92CU1eA5kGb50b7F8T04ianmXGk5niyb40 YPT+RgsxE/1t2LL7/q8cRzVIQitISdhE X-Received: from luke.lon.corp.google.com ([2a00:79e0:d:210:1a96:a43f:6c2e:bb5a]) (user=qperret job=sendgmr) by 2002:a05:6214:1021:: with SMTP id k1mr24356756qvr.4.1626691670169; Mon, 19 Jul 2021 03:47:50 -0700 (PDT) Date: Mon, 19 Jul 2021 11:47:25 +0100 In-Reply-To: <20210719104735.3681732-1-qperret@google.com> Message-Id: <20210719104735.3681732-5-qperret@google.com> Mime-Version: 1.0 References: <20210719104735.3681732-1-qperret@google.com> X-Mailer: git-send-email 2.32.0.402.g57bb445576-goog Subject: [PATCH 04/14] 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. 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 bb73c5331b7c..a60653cbd8e5 100644 --- a/arch/arm64/kvm/hyp/pgtable.c +++ b/arch/arm64/kvm/hyp/pgtable.c @@ -40,6 +40,8 @@ #define KVM_PTE_LEAF_ATTR_HI GENMASK(63, 51) +#define KVM_PTE_LEAF_ATTR_IGNORED GENMASK(58, 55) + #define KVM_PTE_LEAF_ATTR_HI_S1_XN BIT(54) #define KVM_PTE_LEAF_ATTR_HI_S2_XN BIT(54) @@ -48,8 +50,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.402.g57bb445576-goog