aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/i8254.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2009-06-23 14:05:14 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:02 -0400
commit894a9c5543abf6f88d36dc1b9f5d90f35db09cb3 (patch)
tree3fff94c380904dfef66ec7182c4dae59d7c85763 /arch/x86/kvm/i8254.c
parentec04b2604c3707a46db1d26d98f82b11d0844669 (diff)
KVM: x86: missing locking in PIT/IRQCHIP/SET_BSP_CPU ioctl paths
Correct missing locking in a few places in x86's vm_ioctl handling path. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/i8254.c')
-rw-r--r--arch/x86/kvm/i8254.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c
index 15fc95b2fc05..bcd00c76d69e 100644
--- a/arch/x86/kvm/i8254.c
+++ b/arch/x86/kvm/i8254.c
@@ -345,9 +345,7 @@ static void pit_load_count(struct kvm *kvm, int channel, u32 val)
345 345
346void kvm_pit_load_count(struct kvm *kvm, int channel, u32 val) 346void kvm_pit_load_count(struct kvm *kvm, int channel, u32 val)
347{ 347{
348 mutex_lock(&kvm->arch.vpit->pit_state.lock);
349 pit_load_count(kvm, channel, val); 348 pit_load_count(kvm, channel, val);
350 mutex_unlock(&kvm->arch.vpit->pit_state.lock);
351} 349}
352 350
353static inline struct kvm_pit *dev_to_pit(struct kvm_io_device *dev) 351static inline struct kvm_pit *dev_to_pit(struct kvm_io_device *dev)