summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/vmid.c
diff options
context:
space:
mode:
authorShameer Kolothum <shameerali.kolothum.thodi@huawei.com>2021-11-22 12:18:42 +0000
committerMarc Zyngier <maz@kernel.org>2022-02-08 14:46:28 +0000
commitf8051e960922a9de8e42159103d5d9c697ef17ec (patch)
treee734f064279df88a0416843d54aeca3045bde303 /arch/arm64/kvm/vmid.c
parent417838392f2e657ee25cc30e373ff4c35a0faa90 (diff)
downloadlinux-stable-f8051e960922a9de8e42159103d5d9c697ef17ec.tar.gz
linux-stable-f8051e960922a9de8e42159103d5d9c697ef17ec.tar.bz2
linux-stable-f8051e960922a9de8e42159103d5d9c697ef17ec.zip
KVM: arm64: Make VMID bits accessible outside of allocator
Since we already set the kvm_arm_vmid_bits in the VMID allocator init function, make it accessible outside as well so that it can be used in the subsequent patch. Suggested-by: Will Deacon <will@kernel.org> Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20211122121844.867-3-shameerali.kolothum.thodi@huawei.com
Diffstat (limited to 'arch/arm64/kvm/vmid.c')
-rw-r--r--arch/arm64/kvm/vmid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/vmid.c b/arch/arm64/kvm/vmid.c
index aa01c97f7df0..9aff692b6b7d 100644
--- a/arch/arm64/kvm/vmid.c
+++ b/arch/arm64/kvm/vmid.c
@@ -16,7 +16,7 @@
#include <asm/kvm_asm.h>
#include <asm/kvm_mmu.h>
-static unsigned int kvm_arm_vmid_bits;
+unsigned int kvm_arm_vmid_bits;
static DEFINE_RAW_SPINLOCK(cpu_vmid_lock);
static atomic64_t vmid_generation;