Message ID | 20201209131746.85622-3-dbrazdil@google.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=W7ES=FN=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> 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=-16.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 A6CDFC4361B for <linux-arm-kernel@archiver.kernel.org>; Wed, 9 Dec 2020 13:19:20 +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 63EF7207C8 for <linux-arm-kernel@archiver.kernel.org>; Wed, 9 Dec 2020 13:19:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 63EF7207C8 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+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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WCuXConvyMlMsIK5JHeVOc+N+hDOEmV+leeijpoc3jA=; b=BQ7+pzyT9+ixfq8+bfwbDzpEl XBLetZakUjWsx2b+Q9H3rX2DnHj1dnojNRmVZrLbYqqW9RzTgDDCwpGWLzpm98Kv2jSi/f2FeHc7u qzczaZW4iAoKlqpVOekoMDmV2J/3zk8bHiNk+Q7jlkayIqmV25nuFQjw8Pgv76ILSHcnxdMkgfST4 00hOOIWaHJZZqcsOSWmmo3qMQbBFovWsXbDAT0bpPZQZ652XLEsaEFU8FE6OMvbZW/sSHogYPaXdJ pYlh3MjoGYNDr3ibkqFBgVjg5LIIQJXqSZ5iA9FTwD7IKARRYo/oVCN9c1PeuLgVxxtxt4xutCJN6 o10bOmPEw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmzM2-0003D4-4Y; Wed, 09 Dec 2020 13:18:02 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmzLv-0003BL-H0 for linux-arm-kernel@lists.infradead.org; Wed, 09 Dec 2020 13:17:56 +0000 Received: by mail-wm1-x342.google.com with SMTP id c198so1454748wmd.0 for <linux-arm-kernel@lists.infradead.org>; Wed, 09 Dec 2020 05:17:55 -0800 (PST) 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=ODR//cwk6hwl4QVv9WxKniuODKXuHa0De3QF5nrHIF8=; b=D9l4XlNV7e+nqwFqjwgoM8i0tZtjPXnV/1t9K4p0LHGAHrDPuK6Uh4KI0K1Ccf4rYR RyzWt8rtG2bUkWDMfweQh4sRU//DySGqA6cTqBEqWrjCga2vPp0k8VLsnHuhaRz8WW0p PIh6vQZhhs+WknKoOizMB6X9fo2KSgguJmaznyyhXFHP3tg8lgDhJP4ZEDwdn+hc3nwc CJe6Say+NGiW2MOE3ooxvI8ONCt2j+yYmQP9X7HEsWluFyovewhRwyv7SS9kVpnRoZi9 Xsgl/EBsv8L0ZK5fNxVuQD0bOcT1j24yA9hR6pEk1+ESD99B5RZPMzRIQimFBNqgTeTp wicg== 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=ODR//cwk6hwl4QVv9WxKniuODKXuHa0De3QF5nrHIF8=; b=GKuCYPh+Zkl13vmm2QGLzbEv/8swCU7LnbexcsLGorXBBoTitr6B5NXrm3xEqZQmJP QhmaXIdxurC3lIIy+SX3xHLgsEDmghiZ14EEjRdkDkcreFBp0IaV0zFeiiO5kXU7xJIM WTT3i8hfMIBAUY7Pzdz+f3ZJKmBgFK4aTM15PuJskNloqLgLk57ZhIpH4sBJqNvg+Uqq TAHqa5hHf8t35A3y5/cgYxPJRdLItkX19O1kq1G0dON7jp55gxECXWJqKhvcuT2siQvF R8vCQLoLZ+fbcZZxitGK4RucFIGGdVSpgO5TU9y8WAB9vBP/tIe1f++cV63dVKKqQFDJ wFDg== X-Gm-Message-State: AOAM532JEVnE2QPrv6qZf5vfMzGiOgAFD01YNLhQYrvJfXPMCmLSzvO6 lzTUvqQUytgtxiZPMhwOrc/GdQ== X-Google-Smtp-Source: ABdhPJxiJo216uaUR1rOvqNVgnsgrbK2oTOt+NyDqS8ioUu6zr1yo3ZpJ7RnHh81iFNCSDXZK4u0DQ== X-Received: by 2002:a7b:c843:: with SMTP id c3mr2777094wml.100.1607519874381; Wed, 09 Dec 2020 05:17:54 -0800 (PST) Received: from localhost ([2a01:4b00:8523:2d03:9d1b:d0eb:db43:6cd2]) by smtp.gmail.com with ESMTPSA id q25sm3750194wmq.37.2020.12.09.05.17.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 09 Dec 2020 05:17:53 -0800 (PST) From: David Brazdil <dbrazdil@google.com> To: kvmarm@lists.cs.columbia.edu Subject: [PATCH 2/9] KVM: arm64: Rename .idmap.text in hyp linker script Date: Wed, 9 Dec 2020 13:17:39 +0000 Message-Id: <20201209131746.85622-3-dbrazdil@google.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201209131746.85622-1-dbrazdil@google.com> References: <20201209131746.85622-1-dbrazdil@google.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201209_081755_658906_CD559B94 X-CRM114-Status: GOOD ( 15.73 ) 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: kernel-team@android.com, Suzuki K Poulose <suzuki.poulose@arm.com>, Catalin Marinas <catalin.marinas@arm.com>, linux-kernel@vger.kernel.org, James Morse <james.morse@arm.com>, linux-arm-kernel@lists.infradead.org, Marc Zyngier <maz@kernel.org>, David Brazdil <dbrazdil@google.com>, Will Deacon <will@kernel.org>, Ard Biesheuvel <ardb@kernel.org>, Julien Thierry <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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
KVM: arm64: Relocate absolute hyp VAs
|
expand
|
diff --git a/arch/arm64/kvm/hyp/nvhe/hyp-init.S b/arch/arm64/kvm/hyp/nvhe/hyp-init.S index 31b060a44045..68fd64f2313e 100644 --- a/arch/arm64/kvm/hyp/nvhe/hyp-init.S +++ b/arch/arm64/kvm/hyp/nvhe/hyp-init.S @@ -18,7 +18,7 @@ #include <asm/virt.h> .text - .pushsection .hyp.idmap.text, "ax" + .pushsection .idmap.text, "ax" .align 11 diff --git a/arch/arm64/kvm/hyp/nvhe/hyp.lds.S b/arch/arm64/kvm/hyp/nvhe/hyp.lds.S index 1206d0d754d5..70ac48ccede7 100644 --- a/arch/arm64/kvm/hyp/nvhe/hyp.lds.S +++ b/arch/arm64/kvm/hyp/nvhe/hyp.lds.S @@ -12,6 +12,7 @@ #include <asm/memory.h> SECTIONS { + HYP_SECTION(.idmap.text) HYP_SECTION(.text) /* * .hyp..data..percpu needs to be page aligned to maintain the same
So far hyp-init.S created a .hyp.idmap.text section directly, without relying on the hyp linker script to prefix its name. Change it to create .idmap.text and add a HYP_SECTION entry to hyp.lds.S. This way all .hyp* sections go through the linker script and can be instrumented there. Signed-off-by: David Brazdil <dbrazdil@google.com> --- arch/arm64/kvm/hyp/nvhe/hyp-init.S | 2 +- arch/arm64/kvm/hyp/nvhe/hyp.lds.S | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)