Message ID | 20200915104643.2543892-15-ascull@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=n+mw=CY=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1D0A114F6 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 15 Sep 2020 11:06:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C700921D1B for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 15 Sep 2020 11:06:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="q67FxO3V"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="i7eptY7r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C700921D1B Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:From:Subject:References:Mime-Version:Message-Id: In-Reply-To:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=XOpkipJVLs3njNIrMMkhC1Oo16M96jTMbIZ7ncQ55yc=; b=q67FxO3Vh3Y7Kj+XMYTGndRwM Tk19dlxjaqVL7ULtrcODYskWN7GpQ9/d0OY0sp6dGDdzd616+Wgx0ml03+pngqohSxARrz/1fUyUe Opn7gJmM+MsKck6OPTPmLC3FE3ltrA9CfESdDEfLUo3Q077d7WBBPRZIhC75GHTwx/FEb8DgNSaES 4/REz1+61ozr+VxLUEgBF+Al5nPdGktkZjX3HNhkn1b24cPYYV55ugXueYa38c/Mu+eq7V5uZtM7u Pb0UJuvPmROsYGZavxm8ev9brFfPTsFhDVjBtz+DkLgQNzf1+jPGcanggvoaPuH5mp9GxoesxOg8V 5oNtFbkWA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kI8jR-0007Of-Od; Tue, 15 Sep 2020 11:02:42 +0000 Received: from mail-wr1-x449.google.com ([2a00:1450:4864:20::449]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kI8Uf-0000yr-GJ for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2020 10:47:35 +0000 Received: by mail-wr1-x449.google.com with SMTP id n15so1054742wrv.23 for <linux-arm-kernel@lists.infradead.org>; Tue, 15 Sep 2020 03:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=WKgOSDUYFOb+eJkVxGRKW9bVuNnxPXprClF7pwLCXS8=; b=i7eptY7rhVtgm9AV0JoR4VmOxw1r+oeBdnk5HqzhjpiQcviDhcs0nVqDUXP+zvQfnT ClG0GH7mVRjpNVHqotD59O2EAC1c3OsslIop9/dqW5hLOJSy2ovXlxy1w6RTzq+kAZHq FNlthgFEjh6EpzpfxNy+J+9ev7/5ku4danbVQp9gyH7oo8Gbs2fxwv1JBzarUPBG9qhc AJRMdXne7Ef98lbviuYeGo3F09/BntmCU3SqxeR1Rvs/9kjLrnlSRqi6iY3ayfUVJ4NG v36RU9JwEjjni3o5LjoyA1WzpftWNSG/2I6LHrbUCCDKliTIDiA2836cz88svlMIh5PC mzHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=WKgOSDUYFOb+eJkVxGRKW9bVuNnxPXprClF7pwLCXS8=; b=kP7rqRBLgcsUYNp9hRd1voSUz2hM8767Sk8/LmZnDmOxHXBsf4WQgrD1O8aJvtncdQ WMeBOLMqgfnnHSxQF5H3ZvYLhledoN+aiOWLl2aKXWW9lqlL7GJKeRbmuYNhfrOh1WWn Yn06F+d2d0v9+uScUpFgQGfaCEsNIjrLCU72XY3X1KoCfenmXBkFgkI9q5m87HTCFoEn gCJNAzhUkrnbjWlFl5g3Yx8IQW3tslikPna5fx7PJecHs9f0DfKxq6k3g6Yg/GIc/EGT 2TFyqpsQIaP6v6AJv79oQnq3ZeJYe1gzqMOYa2u0u1JMSTz5q23UgBvd/v68uHyVA5Eq NYPA== X-Gm-Message-State: AOAM532jHZsGvMXzsW0zOszsaKqBEwYlEA3++TmEVa9Dd+iF0iR6KWo0 Vn6qXYWDc4GKwssIY7NIQugKaMaRgVE= X-Google-Smtp-Source: ABdhPJyMC7oTGqBQzTGN39DyKULVolR1w+A+piT6pirZQBCz8TCQ6ZtKjxnjV1vO9/cmKvNmPAsWUKqFuEY= X-Received: from ascull.lon.corp.google.com ([2a00:79e0:d:109:4a0f:cfff:fe4a:6363]) (user=ascull job=sendgmr) by 2002:a7b:c14f:: with SMTP id z15mr472005wmi.1.1600166839909; Tue, 15 Sep 2020 03:47:19 -0700 (PDT) Date: Tue, 15 Sep 2020 11:46:38 +0100 In-Reply-To: <20200915104643.2543892-1-ascull@google.com> Message-Id: <20200915104643.2543892-15-ascull@google.com> Mime-Version: 1.0 References: <20200915104643.2543892-1-ascull@google.com> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog Subject: [PATCH v4 14/19] KVM: arm64: nVHE: Pass pointers consistently to hyp-init From: Andrew Scull <ascull@google.com> To: kvmarm@lists.cs.columbia.edu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200915_064725_750159_148F100D X-CRM114-Status: GOOD ( 13.19 ) X-Spam-Score: -7.7 (-------) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-7.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:449 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -7.5 USER_IN_DEF_DKIM_WL From: address is in the default DKIM white-list 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_MED DKIMwl.org - Medium sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org, kernel-team@android.com, suzuki.poulose@arm.com, maz@kernel.org, Sudeep Holla <sudeep.holla@arm.com>, james.morse@arm.com, Andrew Scull <ascull@google.com>, catalin.marinas@arm.com, will@kernel.org, julien.thierry.kdev@gmail.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Introduce separate nVHE hyp context
|
expand
|
diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index ae4b34f91e94..6b7180072c8d 100644 --- a/arch/arm64/kvm/arm.c +++ b/arch/arm64/kvm/arm.c @@ -1278,6 +1278,7 @@ static void cpu_init_hyp_mode(void) pgd_ptr = kvm_mmu_get_httbr(); hyp_stack_ptr = __this_cpu_read(kvm_arm_hyp_stack_page) + PAGE_SIZE; + hyp_stack_ptr = kern_hyp_va(hyp_stack_ptr); vector_ptr = (unsigned long)kern_hyp_va(kvm_ksym_ref(__kvm_hyp_host_vector)); /* diff --git a/arch/arm64/kvm/hyp/nvhe/hyp-init.S b/arch/arm64/kvm/hyp/nvhe/hyp-init.S index d9434e90c06d..abe885e26fe2 100644 --- a/arch/arm64/kvm/hyp/nvhe/hyp-init.S +++ b/arch/arm64/kvm/hyp/nvhe/hyp-init.S @@ -114,7 +114,6 @@ alternative_else_nop_endif isb /* Set the stack and new vectors */ - kern_hyp_va x1 mov sp, x1 msr vbar_el2, x2
Rather than some being kernel pointer and others being hyp pointers, standardize on all pointers being hyp pointers. Signed-off-by: Andrew Scull <ascull@google.com> --- arch/arm64/kvm/arm.c | 1 + arch/arm64/kvm/hyp/nvhe/hyp-init.S | 1 - 2 files changed, 1 insertion(+), 1 deletion(-)