From patchwork Wed Aug 16 21:09:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 13355682 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 19E01C27C41 for ; Wed, 16 Aug 2023 21:10:22 +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:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=J8uOsDiYp1weYKGL/LhSyLb7H8kA0AE+eeI4OGowWhk=; b=PN/IKJCtR+xW1T uo1pgT6gW0JvR4WL9MBIGv+4PMBzt13OkqBcHrayzykv0gC5OS1eswksdw3sPz/LAOAkx4pRTsgTJ i4A4oBmOHCpTNh2XXLTMqIiFzgBPaqfumB5cHqlnM4SncXUqE4gDWZfOFdrCQkf+mNFaFX6M0jTlq 8lTXwNPXXE6rUsXjMaosyHRmjJzbywfBCVb6/r2+CRTm693jYlw57mlyjWCViKbYO65Y1qgi7HNpz IleJLrdDSNQFtl8Im8qwo4PV3Xd8Y6Is8P1aegFQqV8GrAxvpZfvL3uGipLwC6oBGa25mXwrRjePO 2uTJcSmZqnQfgifIysQA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWNm4-0050sI-1c; Wed, 16 Aug 2023 21:09:52 +0000 Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qWNm2-0050rm-18; Wed, 16 Aug 2023 21:09:50 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Marc Zyngier , Oliver Upton , kvmarm@lists.linux.dev, Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: [PATCH] KVM: arm64: nv: select XARRAY_MULTI to fix build error Date: Wed, 16 Aug 2023 14:09:49 -0700 Message-ID: <20230816210949.17117-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org populate_nv_trap_config() uses xa_store_range(), which is only built when XARRAY_MULTI is set, so select that symbol to prevent the build error. aarch64-linux-ld: arch/arm64/kvm/emulate-nested.o: in function `populate_nv_trap_config': emulate-nested.c:(.init.text+0x17c): undefined reference to `xa_store_range' Fixes: d15fe1b2d2cc ("KVM: arm64: nv: Add trap forwarding infrastructure") Signed-off-by: Randy Dunlap Cc: Marc Zyngier Cc: Oliver Upton Cc: kvmarm@lists.linux.dev Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-kernel@lists.infradead.org --- arch/arm64/kvm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig @@ -43,6 +43,7 @@ menuconfig KVM select SCHED_INFO select GUEST_PERF_EVENTS if PERF_EVENTS select INTERVAL_TREE + select XARRAY_MULTI help Support hosting virtualized guest machines.