Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp729776ybj; Thu, 7 May 2020 06:24:42 -0700 (PDT) X-Google-Smtp-Source: APiQypKtTUYulbvD0tDqUw/aOWtgUBVfI6y1IH4x5y2CRCEnXrOiopqE4nVqsitGkDmvxtjT4GPT X-Received: by 2002:a05:6402:1597:: with SMTP id c23mr12440749edv.353.1588857882825; Thu, 07 May 2020 06:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588857882; cv=none; d=google.com; s=arc-20160816; b=Pil1kNxvUx5fyxeMQ3KU8beLYN1xg1mZdaUmT1VIQ0AXkuoA04xZV6SuTs1qadGIuO DRfqd7UMMPrHqnmSmY16Qehe1Ok8w30eBW8MjKPBrc7QbWmhSURtOTk8Pavjt49EKLXy wtRAuuicxPO6UwZPqCuqN3TcSvSUNKOEsv1PpGl5sfv3CIFGpxAt8XpT1CbTRsgVrxn0 UBviV0CVMpdwEM95mKHsB8nCSmbvzOpDd+DSjM56StG5js5n18FaU83BU1X8sg4GanPh R/BLgQhtljbD7ZDdBaKZC+huK5XQFTH2FcVgpZpT+l26vY5p2AVTWIoG9mWnor6jgEYo f7Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date:dkim-signature; bh=B4ZP4LRv1p7QH27XKzYbVNyClvp/9VQ4aC4HAAvN1n4=; b=E8w3/CJ2HzJ30NoQ1jzk4LJtI3NPhL+JqyCFZfKLoeErLOHmifAaUCwxNYrw56GCC3 r/zy7uyDw8nfHxkJLKU9vJjGHBU6huh5YLmID+Bg36+jQf3IKLYpTq7AeLugW8zinmzQ RPkpa2RxxFImgaGEM9Wb/PiTPD0/OBdi9J+0KTjWvltvEk0c70RtgaV7s8nDeBsFiIka tLeaPe9Hp+auyP9I9dqATYg+sz4f0lN/pK269e3f7Qmx5GkWhnbvEJvkkDkwQY/hWl3v LhBbDLqxDjAhyJeWe9qWJu4lslFfsehRpoZpMYX6q4RsmTgaJZQlMrlU0HqPUCft28ci s25A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Mvxv/k6N"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s5si3063312edx.330.2020.05.07.06.24.15; Thu, 07 May 2020 06:24:42 -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=@kernel.org header.s=default header.b="Mvxv/k6N"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbgEGNWi (ORCPT + 99 others); Thu, 7 May 2020 09:22:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:41494 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726235AbgEGNWh (ORCPT ); Thu, 7 May 2020 09:22:37 -0400 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B8A5920838; Thu, 7 May 2020 13:22:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588857756; bh=dU2Zo4Cy68Npnqp73m+WYREuX5FjtiM6YUcFyZ5Glks=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Mvxv/k6N6eZhza7DRddP/HQFLzYxG1sOPRTBagBbVSX+mWQuvMoyOdQz41Z3PkSNw oY9IRopODgKsVRXGmEjvlVkYEpRPYzNoS/8IeFzGzM6Pg/zSJNlzRW/nwfHqf6AByO 2H9Y99Vq60RECr/Ej/t+r3afxre/15Nkp/hfXcXo= Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jWgTz-00AGtt-4Z; Thu, 07 May 2020 14:22:35 +0100 Date: Thu, 07 May 2020 14:22:34 +0100 Message-ID: <87blmzj2w5.wl-maz@kernel.org> From: Marc Zyngier To: David Brazdil Cc: Catalin Marinas , James Morse , Julien Thierry , Suzuki K Poulose , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/15] arm64: kvm: Fix symbol dependency in __hyp_call_panic_nvhe In-Reply-To: <20200430144831.59194-4-dbrazdil@google.com> References: <20200430144831.59194-1-dbrazdil@google.com> <20200430144831.59194-4-dbrazdil@google.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/26 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: dbrazdil@google.com, catalin.marinas@arm.com, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Apr 2020 15:48:19 +0100, David Brazdil wrote: > > __hyp_call_panic_nvhe contains inline assembly which did not declare > its dependency on the __hyp_panic_string symbol. > > Signed-off-by: David Brazdil > --- > arch/arm64/kvm/hyp/switch.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/kvm/hyp/switch.c b/arch/arm64/kvm/hyp/switch.c > index 8a1e81a400e0..7a7c08029d81 100644 > --- a/arch/arm64/kvm/hyp/switch.c > +++ b/arch/arm64/kvm/hyp/switch.c > @@ -836,7 +836,7 @@ static void __hyp_text __hyp_call_panic_nvhe(u64 spsr, u64 elr, u64 par, > * making sure it is a kernel address and not a PC-relative > * reference. > */ > - asm volatile("ldr %0, =__hyp_panic_string" : "=r" (str_va)); > + asm volatile("ldr %0, =%1" : "=r" (str_va) : "S" (__hyp_panic_string)); > > __hyp_do_panic(str_va, > spsr, elr, > -- > 2.26.1 > > What breaks without this constraint? Is it a fix that should go in early? Otherwise looks good. Thanks, M. -- Without deviation from the norm, progress is not possible.