diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-06-08 08:05:57 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-08-01 03:46:25 -0400 |
commit | 5304efde6ae27deeeae79b97af709d4ceecc336e (patch) | |
tree | 139f023edce5da3276ae4f53e4be09e5377d3338 /arch | |
parent | 4f78fd08e91c52f097d64a42d903b76fe52a3a0f (diff) |
KVM: MMU: use wrapper function to flush local tlb
Use kvm_mmu_flush_tlb() function instead of calling
kvm_x86_ops->tlb_flush(vcpu) directly.
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 098a0b8616b0..e087f855461d 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -1984,7 +1984,7 @@ static void mmu_set_spte(struct kvm_vcpu *vcpu, u64 *sptep, | |||
1984 | reset_host_protection)) { | 1984 | reset_host_protection)) { |
1985 | if (write_fault) | 1985 | if (write_fault) |
1986 | *ptwrite = 1; | 1986 | *ptwrite = 1; |
1987 | kvm_x86_ops->tlb_flush(vcpu); | 1987 | kvm_mmu_flush_tlb(vcpu); |
1988 | } | 1988 | } |
1989 | 1989 | ||
1990 | pgprintk("%s: setting spte %llx\n", __func__, *sptep); | 1990 | pgprintk("%s: setting spte %llx\n", __func__, *sptep); |