[lkml]   [2006]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 3/3] KVM: Fix mmu reset locking when setting cr0
From: Yaniv Kamay <>

An mmu reset needs to be called with the kvm lock held.

Signed-off-by: Yaniv Kamay <>
Signed-off-by: Avi Kivity <>

Index: linux-2.6/drivers/kvm/kvm_main.c
--- linux-2.6.orig/drivers/kvm/kvm_main.c
+++ linux-2.6/drivers/kvm/kvm_main.c
@@ -1045,7 +1045,9 @@ static void set_cr0(struct kvm_vcpu *vcp

__set_cr0(vcpu, cr0);
+ spin_lock(&vcpu->kvm->lock);
+ spin_unlock(&vcpu->kvm->lock);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2006-11-20 11:31    [W:0.033 / U:1.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site