From patchwork Fri Feb 22 08:23:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 158999 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1454430jaa; Fri, 22 Feb 2019 00:23:47 -0800 (PST) X-Google-Smtp-Source: AHgI3IbtTIYojrSEmnX2Noa1+zEHLGLR4zVwyU8IXJ1myFD7dAPE+JEp+WspADJHuVbH4U0/6DqM X-Received: by 2002:a62:e802:: with SMTP id c2mr1867309pfi.249.1550823827910; Fri, 22 Feb 2019 00:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550823827; cv=none; d=google.com; s=arc-20160816; b=0plHTcQAXUyVmsVySmh8nyirf3s5NM3K6OjgNNwRivyyTHxeqOV6e06k8Sh9xJbbmU fzn5UINTehX+X50Gs+m0aOrlXyzjw894uJ94aioQWbtYA/y8TbMNebyfLXaJhp1waAga sXsVSes4DYN4KUcn5UPZjLG7l2yK0RSRHaZ1gfRzt1Ur0LpwTEpI6WI00RBtJojyECVi T9V4CRtf9CxE/LkMSoYUbvf0DCfERW57wT5cslF3U3uBUrA717XWx4bYrj1PvwA1RVYk 3xa6NBoG+rk0oAN/UKW0cp3MOcEGijtHdib7gj3CdYODB+3lHUdoRztfsztQemLVWYkx tMdQ== 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=CWZpOa7KU5IoSG9K/3vLaR3fHpcin2VffNYLaVd5Roo=; b=P1Jnu1xW2NpzRN5PXLf80k/3c7l4PdwJWYlYmHFOaQ9Qa9L+1xxKT11/OCEHYRcrLI AZhEEsIQYLRsGLSba1bDz8Y4nzGRQlBg9DdN9d5dS+s0weXpTeSxafJKLWEMXfGK224S Oc709kjGS+2PxsmO27Ft8RI6Y+q3mOJi+3NFroVZO5/AohNajSmNzla9CfWdXpIn//r0 ji6GpYVdMz+Ni4Z6A8Av2dhohFxZyr3X4Bd6ktS2cNqhnOPHd0nWsGJgtQoFaJLywUL8 CUeaVudecwOUJBo3ydqIKHCHqUBYn53ev1662tpYViY9L7AC46aHtubj8uuZaYDiGaWT 5Aqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9JykKxL; 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.47; Fri, 22 Feb 2019 00:23:47 -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=E9JykKxL; 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 S1726555AbfBVIXq (ORCPT + 32 others); Fri, 22 Feb 2019 03:23:46 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35951 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfBVIXp (ORCPT ); Fri, 22 Feb 2019 03:23:45 -0500 Received: by mail-pl1-f196.google.com with SMTP id k2so778350plt.3 for ; Fri, 22 Feb 2019 00:23:45 -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=CWZpOa7KU5IoSG9K/3vLaR3fHpcin2VffNYLaVd5Roo=; b=E9JykKxLXU3+k4vQJjpERuNJgwqlLMYvxWPzlcoDPM4s+cbq4WMQ0swQVCbYdMDISL iJKV68RQ/EIyFU3hfa8393jPd6Aqbq6IBo2ph/gROiRMlHFGhQSyQ/UY/+HBwhDWK967 Ayz64rJ09cxSRy1x06vCxiU9EaBJCnx8LMa5kzfj8e+zbJpKACzO4ixm2dw1JCJ5rwR6 N4wHGXkLrKU50tsEGFyYyRrAG5kmj/J+HvSLF0lDGv570H6htjawDDrc5ZqhxrhU2IzK tI2juO2pHVCJY99UuLB+Y5mU13QgvatV2cyQWjrjfspX123dEnZifYcd8tNqxYU/DOj+ I8Ug== 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=CWZpOa7KU5IoSG9K/3vLaR3fHpcin2VffNYLaVd5Roo=; b=aw83wWKAEPLzOtx8h76VFM0p1MjRbD5kaoo8+cgKm1yFOTrv+hbrmDrmaxj6AjL16X sJ9LWOF0wvxKpUyrtVC7UkkgrTohy6sC9pG+c3DlZxOp5aB61qssmOP6tOBDJybZ6Yuo 8uiCzc9WX6aqBFZier7QURnRh2kgVbhiB+R+MJcOn9BTP7qM3+udoEGGUlmwULmLXB7Y rWzsvup7ZkQ8pyh7cGxzW1wGJU42D3kx92oUS+T6n0f2OTCccNT1Uc2EXEKNubHhr1TJ VbYNHoyw3os1XoeddZz05DLS3uSoo4OwJAr4ynFyGmHCqOhcidZ9Rau9a8ItsszsOZJg mjhA== X-Gm-Message-State: AHQUAubSY8CxRd66uC9vHINdnDOLTKI0PRXyvbREoYmGg347dRWKvLYd ClqfIYfPeaFTyKe5foqa/XFXUA== X-Received: by 2002:a17:902:45:: with SMTP id 63mr3010111pla.281.1550823824594; Fri, 22 Feb 2019 00:23:44 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Feb 2019 00:23:43 -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 1/4] KVM: arm64: Use macro to replace hard number Date: Fri, 22 Feb 2019 16:23:23 +0800 Message-Id: <20190222082327.3312-2-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 Use macro for ID_AA64MMFR1_EL1.VH bits shift instead of 8 directly. Signed-off-by: Leo Yan --- arch/arm64/kernel/head.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Mark Rutland diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 4471f570a295..3ac377e9fd28 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -490,7 +490,7 @@ ENTRY(el2_setup) * kernel is intended to run at EL2. */ mrs x2, id_aa64mmfr1_el1 - ubfx x2, x2, #8, #4 + ubfx x2, x2, #ID_AA64MMFR1_VHE_SHIFT, #4 #else mov x2, xzr #endif