OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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
|
history
diff --git
a/arch/x86/kvm/svm.c
b/arch/x86/kvm/svm.c
index
8d04aed
..
3379e13
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)