KVM: SVM: force a new asid when initializing the vmcb
authorAvi Kivity <avi@qumranet.com>
Mon, 14 Apr 2008 10:10:21 +0000 (13:10 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 15:21:32 +0000 (18:21 +0300)
Shutdown interception clears the vmcb, leaving the asid at zero (which is
illegal.  so force a new asid on vmcb initialization.

Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/svm.c

index 8d04aed..3379e13 100644 (file)
@@ -603,7 +603,7 @@ static void init_vmcb(struct vcpu_svm *svm)
                save->cr3 = 0;
                save->cr4 = 0;
        }
-
+       force_new_asid(&svm->vcpu);
 }
 
 static int svm_vcpu_reset(struct kvm_vcpu *vcpu)