Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4401538ybc; Fri, 15 Nov 2019 04:10:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzi0nuLAqWkIjHIHoooU8iicK4/RQhdoH1v4whcJq+LCwJDb79TrItg6u5D70ssuWolaQNR X-Received: by 2002:a17:906:c45:: with SMTP id t5mr445096ejf.296.1573819821970; Fri, 15 Nov 2019 04:10:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573819821; cv=none; d=google.com; s=arc-20160816; b=Qw1NfTBfsWjCAx3bksNlnLOlwL5PvB+LNO9PhuC4XczLRYxjvi9HHwjmqxm8C//3jl H3JaOCtoVwkZ4KBYCFmAAm8mL+Ledz8asCrfJ/FUt7qzGFZBhPwJwxctBbU27d8sqiez 7ef+2edUj2nOndH3lJLl1kxTn+iqlo+l/1s2wgYxwguCgxtBAJfA33qZxgRFgvyUw14w ectethuZETk5UrCQBKWR7RabgFUjXldPeWssGZapvaIGGvmCrisvfP8tXhc5/oID4vyk 7ope6s+4f4IcsXwx+QrQ9+vUhhs16QGoo446ZYFol2XPAgmaZa+sEQ/JjdI8+pI0IeNn FosA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:subject:autocrypt:from:references:cc:to:dkim-signature; bh=E4ZX0hjj0syMBJd/2pI0HYj0xT+J9JiqGE5QqIQMejw=; b=foOHtNtGSReO/IEWH0A25daHQIvJfCZVfP6LdNhkY/f3Rt/eghk7A7R23oNQ+oyrwa jScQTXz7HgrTxr13i9oiox/HaNgb42IXxgX8c0JcwPMoL1+6NoEwZEcu3tPiFL48u8LM jyN8Kif4ak+nGAtZBA5L8B5wyctYR3JKABJ1wAfu0/Ui9O4IQgesBRjK0D0qESJv+KFn ykai4HTHZ9mapBNcXH15Bk2roFpdgYrClrInEDR4O/q0RfPfnFTsvVR2iI90M79F30kl xjbfBgs8On4/TvgSvDq6j8JJ+TITkI0h7rTsLfWIE6ljXq8nhu1HPxvV0ZOPdi3EM3R6 IMMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oth-regensburg.de header.s=mta01-20160622 header.b=dUdf82Kg; 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=oth-regensburg.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26si3775214edc.25.2019.11.15.04.09.56; Fri, 15 Nov 2019 04:10:21 -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=@oth-regensburg.de header.s=mta01-20160622 header.b=dUdf82Kg; 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=oth-regensburg.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727254AbfKOMIO (ORCPT + 99 others); Fri, 15 Nov 2019 07:08:14 -0500 Received: from mta01.hs-regensburg.de ([194.95.104.11]:40008 "EHLO mta01.hs-regensburg.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726983AbfKOMIN (ORCPT ); Fri, 15 Nov 2019 07:08:13 -0500 X-Greylist: delayed 439 seconds by postgrey-1.27 at vger.kernel.org; Fri, 15 Nov 2019 07:08:12 EST Received: from E16S02.hs-regensburg.de (e16s02.hs-regensburg.de [IPv6:2001:638:a01:8013::92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "E16S02", Issuer "E16S02" (not verified)) by mta01.hs-regensburg.de (Postfix) with ESMTPS id 47Dxkp3gcJzy96; Fri, 15 Nov 2019 13:00:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oth-regensburg.de; s=mta01-20160622; t=1573819250; bh=E4ZX0hjj0syMBJd/2pI0HYj0xT+J9JiqGE5QqIQMejw=; h=To:CC:References:From:Subject:Date:In-Reply-To:From; b=dUdf82KgdforJcVK/HBrnvBF7Lkz8VknQVCRwnBCxkuiiGMfNG72b0JCCLFULrYGt If9/IbzOG4O5dkXbAj5OdBS66Bbu54Plmscohw13juYJPjmIg7EqZfohBC7Gnj8HmX q5TE0GhyjtArfksqusiRb/N4yolT7qMCEA1Ge/6jtowFgTkwmQdkpTdeYWKMMvAPaO XNWYwTl2z7q0VAZ5RZDSf3MiIJItJ3hY8mJk2sS7XheEuxTsuBm0i733eFO1St1YYz ea8WvHPVmLTf/MJNjZ+Vfhkk9GMHSZgyBBypOIjLz/QhFrON2GF31BA8uWnm6tok4g yFY1TN0H8kdGw== Received: from [172.16.2.24] (194.95.106.138) by E16S02.hs-regensburg.de (2001:638:a01:8013::92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Fri, 15 Nov 2019 13:00:50 +0100 To: Peng Fan , "catalin.marinas@arm.com" , "will@kernel.org" CC: "allison@lohutok.net" , "tglx@linutronix.de" , "james.morse@arm.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "jan.kiszka@siemens.com" , Alice Guo , dl-linux-imx References: <1573810972-2159-1-git-send-email-peng.fan@nxp.com> <1573810972-2159-2-git-send-email-peng.fan@nxp.com> From: Ralf Ramsauer Autocrypt: addr=ralf.ramsauer@oth-regensburg.de; keydata= mQINBFsT8OUBEADEz1dVva7HkfpQUsAH71/4RzV23kannVpJhTOhy9wLEJclj0cGMvvWFyaw 9lTRxKfmWgDNThCvNziuPgJdaZ3KMlCuF9QOsW/e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8BBgBCAAmFiEEwC21WtwwwZeIvCQq c/lNEchSUswFAlsT8OUCGwwFCQWjmoAACgkQc/lNEchSUswevA//RM2YQI1Z3QMBRMr/5As0 2zXcJFp+j07wkO9avm8U7GwjPjLHGVvs44rTSc0IKSsIKCJDSqNod9jd2iR39lr5/FpRiRk/ 7A1ACZUagASNC+PiyCCjlg34bWulzVmb5ozjqKQqgYww4c6D0P44JDUtedVbKd7HdwjjzP0P cubSgAohnXzrkp3gtVg07KeoQyiZctJqJu9Z84MiXMIQ+G75mFkIJEL4WYIkcJ9pamUHX71Y T1s6qtrqXemn25w87TioHUMcW4wRXhHHJ4gDbe/P9wb9XKS41ks0kiTia1ZcFsf6QQzoCoK1 R8ahGzsqvCRHMR7fU5w25qXAPfS5ENZgH0KcAVi1bDjwDyhQk3PfPiraiHmtEz2IlthAPpRD Drr0lqCvDFNtqaC+ZI0eOmTvy6/zfVh7ODmaDq1KqMu5EB9ojHXM7N6XXN8OubY+lNx+q0T5 STssqr8EKkrHp6rw2OQHCX7uaEQri2GEJW4HowVvlashmxC4bxR8B4gbm+EB8gR8PD7BSZQG k5NkPOqUZJXq1HO+d5Udk1WdT+mkFGwIMN/U9t3gJNWkab+aAYg1mKwdz7B+10j51vbQbFgY 2/n9jtl/AFgfYQocbJta5+0fOwIJObNFpLAotvtFNF+Q164Bc3E7Njh230nFduU/9BnmCpOQ RncIIYr0LjXAAzY= Subject: Re: [PATCH 2/2] arm64: export __hyp_stub_vectors Message-ID: <5e39d7b3-ae14-285a-2269-8150a4c49896@oth-regensburg.de> Date: Fri, 15 Nov 2019 13:00:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1573810972-2159-2-git-send-email-peng.fan@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-PH Content-Transfer-Encoding: 8bit X-Originating-IP: [194.95.106.138] X-ClientProxiedBy: E16S03.hs-regensburg.de (2001:638:a01:8013::93) To E16S02.hs-regensburg.de (2001:638:a01:8013::92) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peng, On 11/15/19 10:45 AM, Peng Fan wrote: > From: Peng Fan > > External hypervisors, like Jailhouse, need this address when they are > deactivated, in order to restore original state. > > Signed-off-by: Peng Fan > --- > arch/arm64/include/asm/virt.h | 2 ++ > arch/arm64/kernel/hyp-stub.S | 1 + > 2 files changed, 3 insertions(+) > > diff --git a/arch/arm64/include/asm/virt.h b/arch/arm64/include/asm/virt.h > index 0958ed6191aa..b1b48353e3b3 100644 > --- a/arch/arm64/include/asm/virt.h > +++ b/arch/arm64/include/asm/virt.h > @@ -62,6 +62,8 @@ > */ > extern u32 __boot_cpu_mode[2]; > > +extern char __hyp_stub_vectors[]; > + In jailhouse, we call it: driver/main.c:extern unsigned int __hyp_stub_vectors[]; > void __hyp_set_vectors(phys_addr_t phys_vector_base); > void __hyp_reset_vectors(void); > > diff --git a/arch/arm64/kernel/hyp-stub.S b/arch/arm64/kernel/hyp-stub.S > index f17af9a39562..22b728fb14bd 100644 > --- a/arch/arm64/kernel/hyp-stub.S > +++ b/arch/arm64/kernel/hyp-stub.S > @@ -38,6 +38,7 @@ ENTRY(__hyp_stub_vectors) > ventry el1_fiq_invalid // FIQ 32-bit EL1 > ventry el1_error_invalid // Error 32-bit EL1 > ENDPROC(__hyp_stub_vectors) > +EXPORT_SYMBOL(__hyp_stub_vectors); _GPL? I wrote, with the same motivation, almost the same patch a while ago: https://github.com/siemens/linux/commit/15b46bf77bdb5c6b1889f729efc3bf424ddfad9c Back then, I had to import asm-generic/export.h. Is it now indirectly included? Thanks Ralf > > .align 11 > >