projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afc2f79
)
KVM: MMU: Use kvm_mmu_sync_roots() in kvm_mmu_load()
author
Takuya Yoshikawa
<yoshikawa_takuya_b1@lab.ntt.co.jp>
Thu, 9 May 2013 06:45:12 +0000
(15:45 +0900)
committer
Gleb Natapov
<gleb@redhat.com>
Sun, 12 May 2013 11:52:55 +0000
(14:52 +0300)
No need to open-code this function.
Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/mmu.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/mmu.c
b/arch/x86/kvm/mmu.c
index 004cc87b781c2694a0f6428ef8b6614ff60711b7..40d7b2ddc6c549c6b06267ccc4d2b762c47888fd 100644
(file)
--- a/
arch/x86/kvm/mmu.c
+++ b/
arch/x86/kvm/mmu.c
@@
-3764,9
+3764,7
@@
int kvm_mmu_load(struct kvm_vcpu *vcpu)
if (r)
goto out;
r = mmu_alloc_roots(vcpu);
- spin_lock(&vcpu->kvm->mmu_lock);
- mmu_sync_roots(vcpu);
- spin_unlock(&vcpu->kvm->mmu_lock);
+ kvm_mmu_sync_roots(vcpu);
if (r)
goto out;
/* set_cr3() should ensure TLB has been flushed */