projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9571ed
)
KVM: SVM: force a new asid when initializing the vmcb
author
Avi Kivity
<avi@qumranet.com>
Mon, 14 Apr 2008 10:10:21 +0000
(13:10 +0300)
committer
Avi 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/svm.c
b/arch/x86/kvm/svm.c
index 8d04aed72f3a577cbc5a12d28d4edb759ed074fd..3379e13d9b2c0ae4215992e55666d40b1400f878 100644
(file)
--- a/
arch/x86/kvm/svm.c
+++ b/
arch/x86/kvm/svm.c
@@
-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)