KVM: arm64: Use mtree_empty() to determine if SMCCC filter configured
authorOliver Upton <oliver.upton@linux.dev>
Wed, 4 Oct 2023 23:49:47 +0000 (23:49 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 5 Oct 2023 09:33:15 +0000 (09:33 +0000)
commit4202bcac5e65de2d7193b7e27984b810ba33aada
treed8bdecdcd6ff755decaac31c9f3795a8f5d75ed9
parentd34b76489ea0c6168d230d4f9ad065422ba5f6d6
KVM: arm64: Use mtree_empty() to determine if SMCCC filter configured

The smccc_filter maple tree is only populated if userspace attempted to
configure it. Use the state of the maple tree to determine if the filter
has been configured, eliminating the VM flag.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20231004234947.207507-4-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hypercalls.c