summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu/mmu.c
diff options
context:
space:
mode:
authorMohammed Gamal <mgamal@redhat.com>2020-07-10 17:48:04 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-07-10 13:09:40 -0400
commitcd313569f5817782033b179f5dd81c2b611bbd18 (patch)
treec4ee14bacb3bef03117c58df71eba947290bb4ef /arch/x86/kvm/mmu/mmu.c
parent897861479c0640ed93ec82db78f8d839df32c4ac (diff)
KVM: x86: mmu: Move translate_gpa() to mmu.c
Also no point of it being inline since it's always called through function pointers. So remove that. Signed-off-by: Mohammed Gamal <mgamal@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200710154811.418214-3-mgamal@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu/mmu.c')
-rw-r--r--arch/x86/kvm/mmu/mmu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index 613c33149428..01e7277acb48 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -516,6 +516,12 @@ static bool check_mmio_spte(struct kvm_vcpu *vcpu, u64 spte)
return likely(kvm_gen == spte_gen);
}
+static gpa_t translate_gpa(struct kvm_vcpu *vcpu, gpa_t gpa, u32 access,
+ struct x86_exception *exception)
+{
+ return gpa;
+}
+
/*
* Sets the shadow PTE masks used by the MMU.
*