Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1439921ybt; Thu, 25 Jun 2020 06:15:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH99YgvAEve64jk8MJ5ur+QbeJt0Xirb1sEwhaRAE31n+Cw/IngqFuJJHMHb94t3cftaQN X-Received: by 2002:a17:906:2f0d:: with SMTP id v13mr22848270eji.220.1593090908525; Thu, 25 Jun 2020 06:15:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593090908; cv=none; d=google.com; s=arc-20160816; b=RxeROjYWarjeLnnNwKAal/ea0dFpKp1mnq2ybK8ZQAMdUB/xw7j/4D4ZGOwEkECpbj 8SSqS7iHLKiuR7Y4vFx3iJtgEWjYq7F183fNAfHbIUex9AKtlC+7j/2PKqF4OMP9fYQY ZfLn6kDzGytJ6saZdCt+TlCnZ/OlTwxad6Ish9zsaiyIkUxd51PQTmKoqQj/Te9Wx3h/ +lXeB8AVgsjqkHgdmaQ9AgJ+HtI8rr5NgBMHIpB1ZmBP7EeOnGgb1L6d5Oez80uKzieL X+9Ehq0aSvBasE8BCjjImC7mZdVPYKUpF4Px3QvN1oc874qICWlWyezKxtIcI4MHSrl6 AtGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=djiFW55yS1Rp4YNDz8isiFDt/Jj9YD2Q3nFMXytrXY8=; b=YjvrxNY8xhjSOHWJ/v0ihf+BQdPZRFkQ8ZMj+usvCHwUaFQ/1uprCURMVP8TZyXK5P Hz37QDAd33JYsAroXG1ylEhmzGo8JE5x5H4Hz/fx0rT2qM4Bmv6HUxnqkCOlaGwNXsSe xfd4qCRQ2F5mNFPmjCYGodGv4BBFfOs6RSFR4C0aP+4mfjEK7tp6sY+v7gbFGjwC1Tm6 mVDt5oekxtAA3d2NmzC7LrZd+zK8AscEvPOKH6EnqpJ1j/NK+YCA/KrxZHFWMrTq3Z/C 631fUUZxbur5WhAznDS209SY8KLC52in+GLYkgZfOJ8XsHQnAGBcDH2V3UEvIc5olEDn 1L+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=aR3924TG; 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 dn28si2739004edb.195.2020.06.25.06.14.44; Thu, 25 Jun 2020 06:15:08 -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=aR3924TG; 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 S2404854AbgFYNOa (ORCPT + 99 others); Thu, 25 Jun 2020 09:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404710AbgFYNO2 (ORCPT ); Thu, 25 Jun 2020 09:14:28 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BFB9C08C5C1 for ; Thu, 25 Jun 2020 06:14:27 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id z13so5798871wrw.5 for ; Thu, 25 Jun 2020 06:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=djiFW55yS1Rp4YNDz8isiFDt/Jj9YD2Q3nFMXytrXY8=; b=aR3924TG/GhiA+e7cSIyaJXA4Y+WubHOl2DXaNi1c0reM2jrYsW9uqw6yFadKgakVd XP/Ylg3kWsXPqPO0Ppu8rrrHbJPhaXOVHRa+esGXU6xwqh85CssuLdYju0YgANwUpFLQ es5wVqJK+4N3Ef7qF0XOda0fdxFiosUz/4tRhGvAA+oww2CasCmo0yBcKTETiOp1Ljiv YpNbGFi5F3sjN3M0z2JxhAflHCvzASzCC0A4VwKKideeVL33accPM86TTKg2K+mBsLtL /DZ3oFEbTF082pksDvRp/4Aukeo3/MT+qjhPr2+PRjoWyZyfJYoikkmbznirPdvyZ8hD 0xFg== 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:mime-version:content-transfer-encoding; bh=djiFW55yS1Rp4YNDz8isiFDt/Jj9YD2Q3nFMXytrXY8=; b=k3Z1GqeUKpbttOplHOGurksPZkcfYIUa8EhaJ3IbIIjlhyFpRUCm/q5lXgD+Njx7z4 qaf/noUctsxGAf3i9SraEcVm6DtQpbk4fteZ9f+Ahjbh8bMS27CXEi+v3nyq4Ihhy2jp YsYyV+jWuuUXJ3LW8gjgz/jWA/pEwQ2FwsZFUyDWehP2eLIXqrJO9HAnN56w/wK6KLn/ 7wyja8cdJqGT4+D6dl7/gABLenbIIHWDiVCdIHfdzVloBhD2cUyQAGUUtCoPB6PUNn7P DayNifr1d3y8DdLAM+13St1Z4Ql+ZONGVorYhsNqlja9sv01Kp/C/ocNfQskLSdwSQ+V KaGQ== X-Gm-Message-State: AOAM5319MLjMXKY7bYX9RhSl8tMcj6GKjrgf4rounKvAdsGKYsiPcg4K fq+gVDXpMcSjHN1JMMSiLS/DPg== X-Received: by 2002:adf:e647:: with SMTP id b7mr37709680wrn.170.1593090866123; Thu, 25 Jun 2020 06:14:26 -0700 (PDT) Received: from localhost ([2a01:4b00:8523:2d03:c126:6748:7a9d:2d]) by smtp.gmail.com with ESMTPSA id d13sm16942574wrn.61.2020.06.25.06.14.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Jun 2020 06:14:25 -0700 (PDT) From: David Brazdil To: Marc Zyngier , Will Deacon , Catalin Marinas , James Morse , Julien Thierry , Suzuki K Poulose Cc: kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, android-kvm@google.com, kernel-team@android.com, David Brazdil Subject: [PATCH v4 01/15] arm64: kvm: Fix symbol dependency in __hyp_call_panic_nvhe Date: Thu, 25 Jun 2020 14:14:06 +0100 Message-Id: <20200625131420.71444-2-dbrazdil@google.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200625131420.71444-1-dbrazdil@google.com> References: <20200625131420.71444-1-dbrazdil@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __hyp_call_panic_nvhe contains inline assembly which did not declare its dependency on the __hyp_panic_string symbol. The static-declared string has previously been kept alive because of a use in __hyp_call_panic_vhe. Fix this in preparation for separating the source files between VHE and nVHE when the two users land in two different compilation units. The static variable otherwise gets dropped when compiling the nVHE source file, causing an undefined symbol linker error later. 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 db1c4487d95d..9270b14157b5 100644 --- a/arch/arm64/kvm/hyp/switch.c +++ b/arch/arm64/kvm/hyp/switch.c @@ -897,7 +897,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.27.0