From patchwork Fri Feb 22 08:23:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 159001 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1454548jaa; Fri, 22 Feb 2019 00:23:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IaWxOMHGP0heXAkybUynw7gt29trv3OaWwTV5P1x43UpbirBqvCDK337GnE44WJs8OpzN6D X-Received: by 2002:a63:4652:: with SMTP id v18mr2778779pgk.356.1550823837668; Fri, 22 Feb 2019 00:23:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550823837; cv=none; d=google.com; s=arc-20160816; b=R8+vxHyXCyY0BIZB/b4KzSYc+MwG4t3IwfI8eLk0ae8wP7iOmN2iYoLX9x4ynkCTn2 5ko0mopEHMXvSQDWnJpRD/wihMUuHlqYUUfMMpwGc1qHnWCkox+eFDB120vByPEUWcgO lR2XBd9nw92YIoyoBOMsgXglCzpFgm0S+gchvjFScF80yJedU6B1UZeKU9xUcDeLBKJG fXm1v3bat1J67IXjmT6sWm9Iu3tgjB/iG85sHoCnndj7PDjVcUwHTrasq00yXW8tO0Nd Y3JwECN7pjBBDNVgIKoPx3iT+U3Tait6/vEd2EtOT8DAyGej8xoMk8lrGMPQ49E7qULD c/Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=bgi/EwWWX2Li81Mw0qcYS+JuoX7DsHGY+9JFpKlkgdc=; b=1DwwtRml1MU7kU58usYLpdmwr9ucHO+CvLofuLRBFdD6xfP0fvhzAZO7PLHwN3rdyJ Dfy8IIWSNlGpL0kAc14jXX1fsC1EsTsXrD/SmT6lp58HB7xdYKSDIDqFlZzC7kE05/7o 2ChF3DhrXNcGvvsXK28cm4Z1aR4UCDldzHPSweAqgNjZjgxuBRBmb61QcMOQRhJ1orUp jxCKtaRUR3PfsX9zmmjLZ9qf7xXqFj3OL2OX2CREHAvXR2a+rHuCz++2FqF/1Zn6ipmk mQj4fkKmGM80pSnT52ARSYOoUzttPsP/d7G/3r5lzGBavIbZY/HokxqdFCbflGPJOOnZ Ng/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=glVX89Xf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si792602plr.316.2019.02.22.00.23.57; Fri, 22 Feb 2019 00:23:57 -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=@linaro.org header.s=google header.b=glVX89Xf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726833AbfBVIX4 (ORCPT + 32 others); Fri, 22 Feb 2019 03:23:56 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38682 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfBVIXz (ORCPT ); Fri, 22 Feb 2019 03:23:55 -0500 Received: by mail-pg1-f194.google.com with SMTP id m2so795318pgl.5 for ; Fri, 22 Feb 2019 00:23:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bgi/EwWWX2Li81Mw0qcYS+JuoX7DsHGY+9JFpKlkgdc=; b=glVX89XfORwvW7FkND8gZJzWrHSHwaG4itLrZHBr4FtkNJ6lMhUsHHTNzqDKS+iDZU bDGk298KA7z/RP0due2fQziBZ1CPnNU5zcNXON30p1+uPXUpkTTxg1TvH1i771k0me3p VAQys7QShIJSO7z3/1EpSU4HBnERZ7ZESzp98tv8XgB37kyCSfqd6sr/13ohOgbRHjEb nlVeJ/tRVyyq6BG92HILxgNZs42uQ7uk6hV695t8Hhm07nf1JeSlHTJGs09pQdG2KWox DgFleQLZaYeMp2ARvyttG9DHqV1d/+6Dm5adgI16HdcMCRNk1O+awlRX7d4wh396+frB zrtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bgi/EwWWX2Li81Mw0qcYS+JuoX7DsHGY+9JFpKlkgdc=; b=OE/oODjByPe2n9f+PJ/yj1sUST5a2HWdZEwEGzIE/v8+OIo9c3KJJ39emNfVcvmxLe k8tsjT3b+Ee035GbVBRbS906/I40z1PfLQTiQQbOm2+iQuw8njkY+ur9B/g/1vy5VKG8 OOIDViwZ+6JWc7rCkr5sTWdfyNlPEM/Hz24GOqMyCf4Menljsa4xXsVxFE6skVs510A+ Ls+qAQRMVqeJz5eodAdxdorFFZRtSdeOp6ChdZHBCLvQ+fxd3UtFN2Q/+Qb/5M4EfV7U FFVv7sHIKndaJ+3Mt+0k89qavM2Gh/Fw0Mh9ACGQCmNmBRtmiphHy6ORh+5bH3xqK67q PTcg== X-Gm-Message-State: AHQUAuZQa7nP0GJY2h2QYs/CubiBHocf5eZc1YNqB//DbzjjHuwvDBH6 vwSmMEJI2GtjmtrpCDWyDMRfJQ== X-Received: by 2002:a62:e716:: with SMTP id s22mr2984891pfh.35.1550823834722; Fri, 22 Feb 2019 00:23:54 -0800 (PST) Received: from localhost.localdomain (li1195-158.members.linode.com. [45.79.96.158]) by smtp.gmail.com with ESMTPSA id y22sm133821pfn.136.2019.02.22.00.23.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Feb 2019 00:23:54 -0800 (PST) From: Leo Yan To: Christoffer Dall , Marc Zyngier , Catalin Marinas , Will Deacon , Mark Rutland , James Morse , Andre Przywara , Jun Yao , Paolo Bonzini , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v1 3/4] KVM: arm/arm64: Define TCR_EL2_T0SZ_MASK as TCR_T0SZ_MASK Date: Fri, 22 Feb 2019 16:23:25 +0800 Message-Id: <20190222082327.3312-4-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190222082327.3312-1-leo.yan@linaro.org> References: <20190222082327.3312-1-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define macro TCR_EL2_T0SZ_MASK as TCR_T0SZ_MASK, so can remove the hard number 0x3f. Signed-off-by: Leo Yan --- arch/arm64/include/asm/kvm_arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Mark Rutland diff --git a/arch/arm64/include/asm/kvm_arm.h b/arch/arm64/include/asm/kvm_arm.h index 6f602af5263c..d945a787f36e 100644 --- a/arch/arm64/include/asm/kvm_arm.h +++ b/arch/arm64/include/asm/kvm_arm.h @@ -99,7 +99,7 @@ #define TCR_EL2_SH0_MASK TCR_SH0_MASK #define TCR_EL2_ORGN0_MASK TCR_ORGN0_MASK #define TCR_EL2_IRGN0_MASK TCR_IRGN0_MASK -#define TCR_EL2_T0SZ_MASK 0x3f +#define TCR_EL2_T0SZ_MASK TCR_T0SZ_MASK #define TCR_EL2_MASK (TCR_EL2_TG0_MASK | TCR_EL2_SH0_MASK | \ TCR_EL2_ORGN0_MASK | TCR_EL2_IRGN0_MASK | TCR_EL2_T0SZ_MASK)