summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorXiao Guangrong2012-08-03 09:37:54 +0200
committerAvi Kivity2012-08-06 15:04:50 +0200
commit6c8ee57be9350c5c2cafdd6a99d0462d528676e2 (patch)
treeb2ce398a6613895bc94b975ab00f787baf830b2d /arch/x86/kvm/mmu.c
parentKVM: iommu: fix releasing unmapped page (diff)
downloadkernel-qcow2-linux-6c8ee57be9350c5c2cafdd6a99d0462d528676e2.tar.gz
kernel-qcow2-linux-6c8ee57be9350c5c2cafdd6a99d0462d528676e2.tar.xz
kernel-qcow2-linux-6c8ee57be9350c5c2cafdd6a99d0462d528676e2.zip
KVM: introduce KVM_PFN_ERR_FAULT
After that, the exported and un-inline function, get_fault_pfn, can be removed Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index aa9a987ddefb..9cf90c8d5843 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2512,7 +2512,7 @@ static pfn_t pte_prefetch_gfn_to_pfn(struct kvm_vcpu *vcpu, gfn_t gfn,
slot = gfn_to_memslot_dirty_bitmap(vcpu, gfn, no_dirty_log);
if (!slot)
- return get_fault_pfn();
+ return KVM_PFN_ERR_FAULT;
hva = gfn_to_hva_memslot(slot, gfn);