From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 250A8C433E1 for ; Mon, 18 May 2020 15:56:04 +0000 (UTC) Received: from mm01.cs.columbia.edu (mm01.cs.columbia.edu [128.59.11.253]) by mail.kernel.org (Postfix) with ESMTP id A0FBF207D8 for ; Mon, 18 May 2020 15:56:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="jUCcan+N" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A0FBF207D8 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvmarm-bounces@lists.cs.columbia.edu Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 16E0E4B151; Mon, 18 May 2020 11:56:03 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Authentication-Results: mm01.cs.columbia.edu (amavisd-new); dkim=softfail (fail, message has been altered) header.i=@google.com Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b1x1dgzZCo16; Mon, 18 May 2020 11:56:02 -0400 (EDT) Received: from mm01.cs.columbia.edu (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id 155B44B12E; Mon, 18 May 2020 11:56:02 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mm01.cs.columbia.edu (Postfix) with ESMTP id D9E6A4B10F for ; Mon, 18 May 2020 11:56:00 -0400 (EDT) X-Virus-Scanned: at lists.cs.columbia.edu Received: from mm01.cs.columbia.edu ([127.0.0.1]) by localhost (mm01.cs.columbia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dq91BYZsbpMZ for ; Mon, 18 May 2020 11:56:00 -0400 (EDT) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by mm01.cs.columbia.edu (Postfix) with ESMTPS id DF9594B0ED for ; Mon, 18 May 2020 11:55:59 -0400 (EDT) Received: by mail-wr1-f65.google.com with SMTP id s8so12477812wrt.9 for ; Mon, 18 May 2020 08:55:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PtEh/eqO/jcM1mnHH6fVjI/HimaXnKzbvkPLBE0BPVI=; b=jUCcan+Nms1s70qgGIq39zMEO6T5qEC+yiZdoFL9PBCRCkQs5AUHTbRiAcAhI0lZ5y 2+Xqnr+pY68Sd5tq2onYhMA4ykp8LFiKYIRuP62Tjcyht8aAEHNMnfZpwNkyY8DQ/ZaM 8E2Tp0Xk9TIV1TBt455W9oAIvkpV7TtDj0yaluNRAygGidNh5suWfslpRiEe2ie6rdqw pPWH5//rz9ABUSurZU0iRUWSSwBn6VuDmMOOLPgzRndHHNsX1Ea7lwYtnxR3ZDqKdEBc PRz+Yvvizttbarx8SUIfvLvxYIyB29jqXPparoMQreul88KBAGoPE/XtONTIkm0DNYj0 lFtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PtEh/eqO/jcM1mnHH6fVjI/HimaXnKzbvkPLBE0BPVI=; b=UL4rzZT6pyNcwGmxHpyKbJBGu3A6n8wvn32kNS+iByoWg2Fr6hBGD5KkIPZMAhWaGO gNF8tmIfGj3ux1GhYNK/CGlYFv9RdvzqFNWUXv9ygmdLvJmtMwH1XHm/Y3mbyVIiqUAB OV152HBjd/OAgqFnfI0+snQv9PUG42aG2Ieo5Lu14+i2zQQPRlDECTtAj0vqOvvX0co1 qYlACfgPuPEHYH38WeM3OKOsq4+2nnEG4tYTPXSASGPTI+Xf65lJ39RsUPO+DrhgFw+c bEBTlicDWtXtR03Ydu2LyCZBCTwp0irQlJ6Hobh5OmuR/eiKMAY6/4ip55grc1qajc63 /S6w== X-Gm-Message-State: AOAM532Lv3aT1oLKAnOi9SmUfBnE7mWE2ekYnxo2AUYhU7Tysq4fCL7D bfoT7XkQuX1QAW2iU0ptCuxruA== X-Google-Smtp-Source: ABdhPJxt1Zaz2JVaB0TU+GicXYJwo+95dXbld8dQov8mZpcW9twBDQrd3PgWr5SfeOkk5/wD0DEL0A== X-Received: by 2002:adf:cd88:: with SMTP id q8mr20999524wrj.67.1589817358531; Mon, 18 May 2020 08:55:58 -0700 (PDT) Received: from google.com ([2a00:79e0:d:109:355c:447d:ad3d:ac5c]) by smtp.gmail.com with ESMTPSA id v126sm13452wmb.4.2020.05.18.08.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 08:55:57 -0700 (PDT) Date: Mon, 18 May 2020 16:55:53 +0100 From: Andrew Scull To: David Brazdil Subject: Re: [PATCH v2 04/14] arm64: kvm: Add build rules for separate nVHE object files Message-ID: <20200518155553.GB147668@google.com> References: <20200515105841.73532-1-dbrazdil@google.com> <20200515105841.73532-5-dbrazdil@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200515105841.73532-5-dbrazdil@google.com> Cc: Catalin Marinas , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Marc Zyngier , Will Deacon , kvmarm@lists.cs.columbia.edu X-BeenThere: kvmarm@lists.cs.columbia.edu X-Mailman-Version: 2.1.14 Precedence: list List-Id: Where KVM/ARM decisions are made List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu On Fri, May 15, 2020 at 11:58:31AM +0100, David Brazdil wrote: > diff --git a/arch/arm64/kernel/image-vars.h b/arch/arm64/kernel/image-vars.h > index 7f06ad93fc95..13850134fc28 100644 > --- a/arch/arm64/kernel/image-vars.h > +++ b/arch/arm64/kernel/image-vars.h > @@ -51,4 +51,16 @@ __efistub__ctype = _ctype; > > #endif > > +#ifdef CONFIG_KVM > + > +/* > + * KVM nVHE code has its own symbol namespace prefixed by __hyp_text_, to > + * isolate it from the kernel proper. The following symbols are legally > + * accessed by it, therefore provide aliases to make them linkable. > + * Do not include symbols which may not be safely accessed under hypervisor > + * memory mappings. > + */ nit: the prefix is not '__kvm_nvhe_' rather than '__hyp_text_' _______________________________________________ kvmarm mailing list kvmarm@lists.cs.columbia.edu https://lists.cs.columbia.edu/mailman/listinfo/kvmarm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3DCFC433E0 for ; Mon, 18 May 2020 15:56:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 7D0C120758 for ; Mon, 18 May 2020 15:56:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="tcuG+tjP"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="jUCcan+N" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D0C120758 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+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PEsXTdCNQh7cYJDl4vwkm1ojvKb10wPQKS8nWlEOSnM=; b=tcuG+tjPl3FGqw PSS8OJt63b/uCtmOXGO4V5fERpIakjkcugQjNjm+dXfaAI0uBk8Tp88hFOKXlFtK1mEeG/KhTJqc/ MO5Qm0dhYj9wqD12HomF6p29hHlQwTPYd3K5IYxmksjNdAUbH0gFHrL3ul5lEs9wrr/GoGmvDzPCE ZesYpKh7SYINJn/eUDFLf3O9NVj/B03gndycnEFD2BZ5ZmkyMgu41vObx/q7s3i79QTZDucnYA6qT 7nyN1oOOWAzpsQODHQtl9kh3zgbnZXOhsCLYJ4ZXY5OD0TJ6hGkip09/PW7DCmgU7pQudCL8rbi7r uSMB7MfgH+ubcXP16jcA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jai7m-00010p-AZ; Mon, 18 May 2020 15:56:18 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jai7X-0000ly-1c for linux-arm-kernel@lists.infradead.org; Mon, 18 May 2020 15:56:04 +0000 Received: by mail-wr1-x441.google.com with SMTP id l11so12563904wru.0 for ; Mon, 18 May 2020 08:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PtEh/eqO/jcM1mnHH6fVjI/HimaXnKzbvkPLBE0BPVI=; b=jUCcan+Nms1s70qgGIq39zMEO6T5qEC+yiZdoFL9PBCRCkQs5AUHTbRiAcAhI0lZ5y 2+Xqnr+pY68Sd5tq2onYhMA4ykp8LFiKYIRuP62Tjcyht8aAEHNMnfZpwNkyY8DQ/ZaM 8E2Tp0Xk9TIV1TBt455W9oAIvkpV7TtDj0yaluNRAygGidNh5suWfslpRiEe2ie6rdqw pPWH5//rz9ABUSurZU0iRUWSSwBn6VuDmMOOLPgzRndHHNsX1Ea7lwYtnxR3ZDqKdEBc PRz+Yvvizttbarx8SUIfvLvxYIyB29jqXPparoMQreul88KBAGoPE/XtONTIkm0DNYj0 lFtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PtEh/eqO/jcM1mnHH6fVjI/HimaXnKzbvkPLBE0BPVI=; b=qayTesVJEdBn6h17Ld8a6YkQ8Y4eYgD0JegVFTEhIrVHMoxLeLc02zXFYcZMsQFo4E oORFjTvuCAPvGHrVGRo6RQGmWR/ww5Z7TxgJV+vevSbu1ibvWW2Z+rDot/X9w8ImyxYp WPSPYn4YWtIqUBSvBzWG/UGKjj4I+O4MUtUBkFIi5Zu80zmoz0AIh9XiO3jvICAUqVFt GdOmbf3t4xtfoM3u337eYIHjSoHw5FdPbiXrfkfm9CTElgTX6JDjBG+oFowRhgaOhOsT K5J8zap4SpmTd1dbj4PVpO8eyHgwbu3I3LQGhpkceZuzhD+Gxyu02mxFp38qdDh7qVRj Rd4w== X-Gm-Message-State: AOAM533W3oLip5aWjlsZXBwUGUUnDN5cs5d3GzH94fHxO3KlupWHLZZ9 WoNPLjJCm9FW3rQTl35AX5BGkw== X-Google-Smtp-Source: ABdhPJxt1Zaz2JVaB0TU+GicXYJwo+95dXbld8dQov8mZpcW9twBDQrd3PgWr5SfeOkk5/wD0DEL0A== X-Received: by 2002:adf:cd88:: with SMTP id q8mr20999524wrj.67.1589817358531; Mon, 18 May 2020 08:55:58 -0700 (PDT) Received: from google.com ([2a00:79e0:d:109:355c:447d:ad3d:ac5c]) by smtp.gmail.com with ESMTPSA id v126sm13452wmb.4.2020.05.18.08.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 08:55:57 -0700 (PDT) Date: Mon, 18 May 2020 16:55:53 +0100 From: Andrew Scull To: David Brazdil Subject: Re: [PATCH v2 04/14] arm64: kvm: Add build rules for separate nVHE object files Message-ID: <20200518155553.GB147668@google.com> References: <20200515105841.73532-1-dbrazdil@google.com> <20200515105841.73532-5-dbrazdil@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200515105841.73532-5-dbrazdil@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200518_085603_132339_ADB8186F X-CRM114-Status: GOOD ( 13.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Suzuki K Poulose , Catalin Marinas , linux-kernel@vger.kernel.org, James Morse , linux-arm-kernel@lists.infradead.org, Marc Zyngier , Will Deacon , kvmarm@lists.cs.columbia.edu, Julien Thierry Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, May 15, 2020 at 11:58:31AM +0100, David Brazdil wrote: > diff --git a/arch/arm64/kernel/image-vars.h b/arch/arm64/kernel/image-vars.h > index 7f06ad93fc95..13850134fc28 100644 > --- a/arch/arm64/kernel/image-vars.h > +++ b/arch/arm64/kernel/image-vars.h > @@ -51,4 +51,16 @@ __efistub__ctype = _ctype; > > #endif > > +#ifdef CONFIG_KVM > + > +/* > + * KVM nVHE code has its own symbol namespace prefixed by __hyp_text_, to > + * isolate it from the kernel proper. The following symbols are legally > + * accessed by it, therefore provide aliases to make them linkable. > + * Do not include symbols which may not be safely accessed under hypervisor > + * memory mappings. > + */ nit: the prefix is not '__kvm_nvhe_' rather than '__hyp_text_' _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0955C433E0 for ; Mon, 18 May 2020 15:56:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 81D0C207E8 for ; Mon, 18 May 2020 15:56:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="jUCcan+N" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728368AbgERP4A (ORCPT ); Mon, 18 May 2020 11:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbgERP4A (ORCPT ); Mon, 18 May 2020 11:56:00 -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 1AB3EC061A0C for ; Mon, 18 May 2020 08:56:00 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id i15so12436431wrx.10 for ; Mon, 18 May 2020 08:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PtEh/eqO/jcM1mnHH6fVjI/HimaXnKzbvkPLBE0BPVI=; b=jUCcan+Nms1s70qgGIq39zMEO6T5qEC+yiZdoFL9PBCRCkQs5AUHTbRiAcAhI0lZ5y 2+Xqnr+pY68Sd5tq2onYhMA4ykp8LFiKYIRuP62Tjcyht8aAEHNMnfZpwNkyY8DQ/ZaM 8E2Tp0Xk9TIV1TBt455W9oAIvkpV7TtDj0yaluNRAygGidNh5suWfslpRiEe2ie6rdqw pPWH5//rz9ABUSurZU0iRUWSSwBn6VuDmMOOLPgzRndHHNsX1Ea7lwYtnxR3ZDqKdEBc PRz+Yvvizttbarx8SUIfvLvxYIyB29jqXPparoMQreul88KBAGoPE/XtONTIkm0DNYj0 lFtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PtEh/eqO/jcM1mnHH6fVjI/HimaXnKzbvkPLBE0BPVI=; b=MUU5EPE7yLiS4MqBNYFx//s+yoxruVSe2pUjIttvfK+IrrM6vrQugoMEQvFf0ZQlyC KHSOSMbGHTYUQ2MX63Q2bpHpIeuum+x2KCGQEOnwVqCLIeewNEmXMHXGP5mQ0k7k33XC 1sID5NpuqWtO46p8MkRzeyIGAuz/coyCmft12RfSqWZlRqtAJfh6sRW3vD+3WgwdWzIG Tk/BMZYMVqgQQ1bVgCEj+YFNHS5xtHAagQAekABc3zbyPVnDy63oSQAVqTHjjBVeHWt9 90GVy4xzMlpA3zoZUdL31v+nnG9zrUA8uMXlUdLiJs5oFM5At/SI1wWYfk31r3P0i3l+ 1Xkw== X-Gm-Message-State: AOAM5300YF9/F8KHsvnI/9OnqvCPNCl0RZDOOXUK4JFXeBsFf9I2/S5d yTAB0mjB1hPe3WmOQjI+6V4GYA== X-Google-Smtp-Source: ABdhPJxt1Zaz2JVaB0TU+GicXYJwo+95dXbld8dQov8mZpcW9twBDQrd3PgWr5SfeOkk5/wD0DEL0A== X-Received: by 2002:adf:cd88:: with SMTP id q8mr20999524wrj.67.1589817358531; Mon, 18 May 2020 08:55:58 -0700 (PDT) Received: from google.com ([2a00:79e0:d:109:355c:447d:ad3d:ac5c]) by smtp.gmail.com with ESMTPSA id v126sm13452wmb.4.2020.05.18.08.55.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 08:55:57 -0700 (PDT) Date: Mon, 18 May 2020 16:55:53 +0100 From: Andrew Scull To: David Brazdil Cc: Catalin Marinas , James Morse , Julien Thierry , Marc Zyngier , Suzuki K Poulose , Will Deacon , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 04/14] arm64: kvm: Add build rules for separate nVHE object files Message-ID: <20200518155553.GB147668@google.com> References: <20200515105841.73532-1-dbrazdil@google.com> <20200515105841.73532-5-dbrazdil@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200515105841.73532-5-dbrazdil@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 11:58:31AM +0100, David Brazdil wrote: > diff --git a/arch/arm64/kernel/image-vars.h b/arch/arm64/kernel/image-vars.h > index 7f06ad93fc95..13850134fc28 100644 > --- a/arch/arm64/kernel/image-vars.h > +++ b/arch/arm64/kernel/image-vars.h > @@ -51,4 +51,16 @@ __efistub__ctype = _ctype; > > #endif > > +#ifdef CONFIG_KVM > + > +/* > + * KVM nVHE code has its own symbol namespace prefixed by __hyp_text_, to > + * isolate it from the kernel proper. The following symbols are legally > + * accessed by it, therefore provide aliases to make them linkable. > + * Do not include symbols which may not be safely accessed under hypervisor > + * memory mappings. > + */ nit: the prefix is not '__kvm_nvhe_' rather than '__hyp_text_'