Browse Source

KVM: SVM: force a new asid when initializing the vmcb

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>
Avi Kivity 17 years ago
parent
commit
a79d2f1805
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/x86/kvm/svm.c

+ 1 - 1
arch/x86/kvm/svm.c

@@ -603,7 +603,7 @@ static void init_vmcb(struct vcpu_svm *svm)
 		save->cr3 = 0;
 		save->cr3 = 0;
 		save->cr4 = 0;
 		save->cr4 = 0;
 	}
 	}
-
+	force_new_asid(&svm->vcpu);
 }
 }
 
 
 static int svm_vcpu_reset(struct kvm_vcpu *vcpu)
 static int svm_vcpu_reset(struct kvm_vcpu *vcpu)