]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: arm/arm64: vgic: expose (un)lock_all_vcpus
authorEric Auger <eric.auger@redhat.com>
Thu, 23 Mar 2017 10:51:52 +0000 (11:51 +0100)
committerChristoffer Dall <cdall@linaro.org>
Mon, 8 May 2017 12:33:17 +0000 (14:33 +0200)
We need to use those helpers in vgic-its.c so let's
expose them in the private vgic header.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <cdall@linaro.org>
virt/kvm/arm/vgic/vgic-kvm-device.c
virt/kvm/arm/vgic/vgic.h

index d181d2baee9c4d6c5a5d93a569110e9030bc5e7a..859bfa871b3015e01c3fc08f26e127815007e738 100644 (file)
@@ -259,13 +259,13 @@ static void unlock_vcpus(struct kvm *kvm, int vcpu_lock_idx)
        }
 }
 
-static void unlock_all_vcpus(struct kvm *kvm)
+void unlock_all_vcpus(struct kvm *kvm)
 {
        unlock_vcpus(kvm, atomic_read(&kvm->online_vcpus) - 1);
 }
 
 /* Returns true if all vcpus were locked, false otherwise */
-static bool lock_all_vcpus(struct kvm *kvm)
+bool lock_all_vcpus(struct kvm *kvm)
 {
        struct kvm_vcpu *tmp_vcpu;
        int c;
index 44445dac0835479832e739bc820c086d7ea06ec6..a48f33b04b2d0488360318a7347f9e4e3db638bd 100644 (file)
@@ -179,4 +179,7 @@ int vgic_init(struct kvm *kvm);
 int vgic_debug_init(struct kvm *kvm);
 int vgic_debug_destroy(struct kvm *kvm);
 
+bool lock_all_vcpus(struct kvm *kvm);
+void unlock_all_vcpus(struct kvm *kvm);
+
 #endif