]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
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 8d04aed72f3a577cbc5a12d28d4edb759ed074fd..3379e13d9b2c0ae4215992e55666d40b1400f878 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)