KVM: arm64: nv: Select XARRAY_MULTI to fix build error
authorRandy Dunlap <rdunlap@infradead.org>
Wed, 16 Aug 2023 21:09:49 +0000 (14:09 -0700)
committerMarc Zyngier <maz@kernel.org>
Thu, 17 Aug 2023 09:24:00 +0000 (10:24 +0100)
commit60046980bf60ed8846113b484d666a5fdf413be4
treee15568d0adbb95bfc52f177e77546c87adf845fd
parent03fb54d0aa73cc14e51f6611eb3289e4fec15184
KVM: arm64: nv: Select XARRAY_MULTI to fix build error

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: e58ec47bf68d ("KVM: arm64: nv: Add trap forwarding infrastructure")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: kvmarm@lists.linux.dev
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230816210949.17117-1-rdunlap@infradead.org
arch/arm64/kvm/Kconfig