diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2012-08-03 03:37:54 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-08-06 09:04:50 -0400 |
commit | 6c8ee57be9350c5c2cafdd6a99d0462d528676e2 (patch) | |
tree | b2ce398a6613895bc94b975ab00f787baf830b2d /arch/x86/kvm/mmu.c | |
parent | 16b854c889673d988285719bc020543a730f9ac6 (diff) |
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.c | 2 |
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, | |||
2512 | 2512 | ||
2513 | slot = gfn_to_memslot_dirty_bitmap(vcpu, gfn, no_dirty_log); | 2513 | slot = gfn_to_memslot_dirty_bitmap(vcpu, gfn, no_dirty_log); |
2514 | if (!slot) | 2514 | if (!slot) |
2515 | return get_fault_pfn(); | 2515 | return KVM_PFN_ERR_FAULT; |
2516 | 2516 | ||
2517 | hva = gfn_to_hva_memslot(slot, gfn); | 2517 | hva = gfn_to_hva_memslot(slot, gfn); |
2518 | 2518 | ||