Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp261763pxu; Tue, 5 Jan 2021 10:09:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+wzWsvqobj5etBd5mkpYtDv1CwoqgyzOy1iDaS6uk6l5H2/sPVdFCMkFdB8lKS+VaEZ/K X-Received: by 2002:a17:906:ce2b:: with SMTP id sd11mr335342ejb.334.1609870158956; Tue, 05 Jan 2021 10:09:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609870158; cv=none; d=google.com; s=arc-20160816; b=PIsl15aldaa2mZaX+u+825Q93l26bCnff9stTL1TlydvkrQJtXpqXRkwgBPavVXH3c mTukmudF2O+R0diNEr+CFDtU9iRek6PyIlfHcBNeRwgIIyOq2gAChwFnCFu+GuO3ZjKS FsNpnSws8c7KxcKqNVm0cdpQDl7Ej7BhJpxd4J9uJZWfKv/oPLeiNSPMBUL+DJIdBdWQ LiIM1FFF7U94eFKKgeY+qMg3aUhXgOhIAIZxLlUOuZOAjAFCnnfdWxtZl5A5qbqXrIIS rdj7MCVuJDCiNyIkuTQAjgwHGXsNOz04YhgJUI+fKMmHSlDqATUqMdwBUD7+ctCBd+6x dL9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=X/13wAME+aCvCn5cqIsjPJwjMTVT6zNfbY7h8F95inU=; b=betF7weB1229FmJv7m1SzjlGjEPUebshlJe8OEHM/3Dk8Jf6CPyzeN4vK08rizwNfa ZIL+Khcfj1KWHnGjTrqigGZSB+eQ/TNWo7f4y9fuiNw2+eQEiwlHf/zXWDXhx77+Y4dT KFkTn7n557mDnKiiFcBhZtFydrALRu2lcaVGxNsFo94bGw7uIl4Uh9rlIyobd6MG26gN wcpWuJtgVT1aYZ1yGbIOCqsF5zYWAT0me9qe3BLRj57/+5Ki5b93cEswYUbI8p4tlpqq 8Gg1D7tcCISQABEnP64j5gCfv3MBb+jwhA7Hr0rbOtv03iUB1sncmCxiiRy5ffnycNBS TSGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wN3JmV9n; 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 d21si183277eds.481.2021.01.05.10.08.55; Tue, 05 Jan 2021 10:09:18 -0800 (PST) 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=wN3JmV9n; 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 S1730701AbhAESGi (ORCPT + 99 others); Tue, 5 Jan 2021 13:06:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727971AbhAESGh (ORCPT ); Tue, 5 Jan 2021 13:06:37 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17EABC061795 for ; Tue, 5 Jan 2021 10:05:57 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id c133so360933wme.4 for ; Tue, 05 Jan 2021 10:05:57 -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=X/13wAME+aCvCn5cqIsjPJwjMTVT6zNfbY7h8F95inU=; b=wN3JmV9nSFl9HK96BxwqTYn8/5UMJbxbz7CdJ8zLp9QDqHWYIr3oZGc4uAOw8rjKLq ETvqki58TnkhhMU0ZfEFIV77MlBPFlzO6+h17IU+14xd8Nsin6C9PEw8brMKfiL0DRb5 7c0MmBmJFCilyM6rPfjXrkmU/QT25TSvmBKGpQWse1fdHtSTRTkIM8yVIv4cysMFfPBs N7woQ89PdailPKQd2ASmnmkRfySg0Vp79bgqYLXO0vzza6WKA4zV8jVJ66sIbeiIknVw grv9cfR0BaqYEdtyf/Z5tWlBNvt83zbHFsqtKqM2QMqAywqAU1MTqHg5LhwoynxmvWgW lwZA== 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=X/13wAME+aCvCn5cqIsjPJwjMTVT6zNfbY7h8F95inU=; b=OmbsZMBkUDEIn33gQHENvMIgnF8Notg6VJEEZs2Qt+hU4169p1dZp3DSXVzW+hFzXn UBjKwCmYPsSKixvykugubHUlLJTFn4+dfEph9F2dUD/gqRFfh0SlDo4ahlonR3Jc/4bb dWvMcop3/Ak7xyAia5RQTbPDX9gW6u85ZnoA49SoWYPLXdL3YobYqM9FjibwxkiK9HxE 8S6x/mfovuxBoILYwOUFLILHXR9n1c66iEsLK1W5eF7hfkdykBTBhlcW8TUnodKmcpGi aOy/nxsLG7LCtp+iVooMXGWiYscGg3bYy3HXPUaRbHWP0r/gv/5tlqsGhmhKMvtdXfP5 edQg== X-Gm-Message-State: AOAM530FdZKu7jBKfjXOTeV+hk/SU+8d/rj6RDcSIarAtxWbNy7Vj0HN QTMk2Jed/5g8J81ETgEvYbmWEQ== X-Received: by 2002:a7b:c849:: with SMTP id c9mr312455wml.11.1609869955809; Tue, 05 Jan 2021 10:05:55 -0800 (PST) Received: from localhost ([2a01:4b00:8523:2d03:4957:71a5:7b5c:c94f]) by smtp.gmail.com with ESMTPSA id j15sm718938wrr.85.2021.01.05.10.05.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jan 2021 10:05:54 -0800 (PST) From: David Brazdil To: kvmarm@lists.cs.columbia.edu Cc: Catalin Marinas , Will Deacon , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Ard Biesheuvel , Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, David Brazdil Subject: [PATCH v2 1/8] KVM: arm64: Rename .idmap.text in hyp linker script Date: Tue, 5 Jan 2021 18:05:34 +0000 Message-Id: <20210105180541.65031-2-dbrazdil@google.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210105180541.65031-1-dbrazdil@google.com> References: <20210105180541.65031-1-dbrazdil@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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(-) 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 .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 SECTIONS { + HYP_SECTION(.idmap.text) HYP_SECTION(.text) /* * .hyp..data..percpu needs to be page aligned to maintain the same -- 2.29.2.729.g45daf8777d-goog