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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6AA3BECAAA1 for ; Fri, 9 Sep 2022 10:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=nnRLZkllJ/cQSTA7sg5iaMSQ/cveUEZh9jt0rBtsD8w=; b=noPbbagziEo5X2 6g06244eJ3KEYHrQqhs7x8GkPR+GvrE5vMJgEWAy8M0+5EYX+LG6DLbzX4CryqbSVaj1/lqsCztIm 4/au2fDQeLMGn0Asu2hogEkz8TvGGmDlT5WUEO4r3xLRtaWBjrciA4Ugprk1XAFwWmvd22BamScQ3 n0COt8hmMhVoQY3yj7qyytzEL6bPQO5PEOwAgqWp37RQ7I2Vk5DDuXpPbDLbEjvW4N7CEj5yEYcFE ADh0IsFjY5JyFyGLyXPQQ90the5ZcGg54Osx6aKRILTG2XFpG5/D4NnVasbMaCHEMZY0HPAcflaFB PpY7LuBD8XKH/1G4RS1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWaq8-00FE5E-3w; Fri, 09 Sep 2022 10:02:24 +0000 Received: from out2.migadu.com ([2001:41d0:2:aacc::]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oWaq4-00FE1o-RX for linux-arm-kernel@lists.infradead.org; Fri, 09 Sep 2022 10:02:22 +0000 Date: Fri, 9 Sep 2022 11:01:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1662717734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=y+xjoGI2hXYxhtWycnHQ5wVfTyWAv6wxDKxQfifkzGE=; b=H/eWJT/R1Z4XEOiJ5IipKnqK4w0Ktqh9UISGSPXNj4o6TG6DnAmSkeLdTgLE79dKj1gQCu QLDEro/hUuZC1g8Dj3bLWkAk+UtkuFp+0JS67sUFtN8+3FZYI4/23LyMd6z/5Aiu+XWExY qHZcFWGLtK4ubaxK54AHX0RuMNini74= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: James Morse , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , Will Deacon , Quentin Perret , Ricardo Koller , Reiji Watanabe , David Matlack , Ben Gardon , Paolo Bonzini , Gavin Shan , Peter Xu , Sean Christopherson , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org Subject: Re: [PATCH 00/14] KVM: arm64: Parallel stage-2 fault handling Message-ID: References: <20220830194132.962932-1-oliver.upton@linux.dev> <87o7vsvn4m.wl-maz@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <87o7vsvn4m.wl-maz@kernel.org> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220909_030221_351696_0E308AFA X-CRM114-Status: GOOD ( 14.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hey Marc, On Tue, Sep 06, 2022 at 11:00:09AM +0100, Marc Zyngier wrote: [...] > This fails to build on -rc4: > > MODPOST vmlinux.symvers > MODINFO modules.builtin.modinfo > GEN modules.builtin > CC .vmlinux.export.o > LD .tmp_vmlinux.kallsyms1 > ld: Unexpected GOT/PLT entries detected! > ld: Unexpected run-time procedure linkages detected! > ld: ID map text too big or misaligned > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_walk': > (.hyp.text+0xdc0c): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xdc1c): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_get_leaf': > (.hyp.text+0xdc80): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xdc90): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_hyp_map': > (.hyp.text+0xddb0): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xddc0): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_hyp_unmap': > (.hyp.text+0xde44): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xde50): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_hyp_destroy': > (.hyp.text+0xdf40): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xdf50): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_stage2_map': > (.hyp.text+0xe16c): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xe17c): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_stage2_set_owner': > (.hyp.text+0xe264): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xe274): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_stage2_unmap': > (.hyp.text+0xe2d4): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xe2e4): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_stage2_flush': > (.hyp.text+0xe5b4): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xe5c4): undefined reference to `__kvm_nvhe___rcu_read_unlock' > ld: arch/arm64/kvm/hyp/nvhe/kvm_nvhe.o: in function `__kvm_nvhe_kvm_pgtable_stage2_destroy': > (.hyp.text+0xe6f0): undefined reference to `__kvm_nvhe___rcu_read_lock' > ld: (.hyp.text+0xe700): undefined reference to `__kvm_nvhe___rcu_read_unlock' > make[3]: *** [Makefile:1169: vmlinux] Error 1 > make[2]: *** [debian/rules:7: build-arch] Error 2 > > as this drags the RCU read-lock into EL2, and that's not going to > work... The following fixes it, but I wonder how you tested it. Ugh. I was carrying a patch on top of my series to handle compilation issues with rseq_test, I managed to squash the equivalent of below in that patch. Nonetheless, I *did* actually test it to get the numbers above :) -- Thanks, Oliver > diff --git a/arch/arm64/include/asm/kvm_pgtable.h b/arch/arm64/include/asm/kvm_pgtable.h > index dc839db86a1a..adf170122daf 100644 > --- a/arch/arm64/include/asm/kvm_pgtable.h > +++ b/arch/arm64/include/asm/kvm_pgtable.h > @@ -580,7 +580,7 @@ enum kvm_pgtable_prot kvm_pgtable_stage2_pte_prot(kvm_pte_t pte); > */ > enum kvm_pgtable_prot kvm_pgtable_hyp_pte_prot(kvm_pte_t pte); > > -#if defined(__KVM_NVHE_HYPERVISOR___) > +#if defined(__KVM_NVHE_HYPERVISOR__) > > static inline void kvm_pgtable_walk_begin(void) {} > static inline void kvm_pgtable_walk_end(void) {} > > -- > Without deviation from the norm, progress is not possible. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel