diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2011-09-22 04:56:39 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-12-27 04:16:56 -0500 |
commit | f57f2ef58f6703e6df70ed52a198920cb3e8edba (patch) | |
tree | 831564ca3314ef897fdcfcbd70ef91a52d369a13 /arch/x86/kvm/x86.c | |
parent | 505aef8f30a95f7e4abf2c07e54ded1521587ba0 (diff) |
KVM: MMU: fast prefetch spte on invlpg path
Fast prefetch spte for the unsync shadow page on invlpg path
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index a2154487917d..9c980ce26e61 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -4087,7 +4087,7 @@ int emulator_write_phys(struct kvm_vcpu *vcpu, gpa_t gpa, | |||
4087 | ret = kvm_write_guest(vcpu->kvm, gpa, val, bytes); | 4087 | ret = kvm_write_guest(vcpu->kvm, gpa, val, bytes); |
4088 | if (ret < 0) | 4088 | if (ret < 0) |
4089 | return 0; | 4089 | return 0; |
4090 | kvm_mmu_pte_write(vcpu, gpa, val, bytes, 1); | 4090 | kvm_mmu_pte_write(vcpu, gpa, val, bytes); |
4091 | return 1; | 4091 | return 1; |
4092 | } | 4092 | } |
4093 | 4093 | ||
@@ -4324,7 +4324,7 @@ static int emulator_cmpxchg_emulated(struct x86_emulate_ctxt *ctxt, | |||
4324 | if (!exchanged) | 4324 | if (!exchanged) |
4325 | return X86EMUL_CMPXCHG_FAILED; | 4325 | return X86EMUL_CMPXCHG_FAILED; |
4326 | 4326 | ||
4327 | kvm_mmu_pte_write(vcpu, gpa, new, bytes, 1); | 4327 | kvm_mmu_pte_write(vcpu, gpa, new, bytes); |
4328 | 4328 | ||
4329 | return X86EMUL_CONTINUE; | 4329 | return X86EMUL_CONTINUE; |
4330 | 4330 | ||