summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2012-09-07 14:15:03 +0800
committerAvi Kivity <avi@redhat.com>2012-09-10 11:26:16 +0300
commit7de5bdc96c372ab875408c86e0099958dba89f56 (patch)
treeb67ff1a3675a43fad0d74a32155e4fdbc8eb1c89 /arch/x86
parent92b5265d38f6a4d33e9d43974f176f18547687d6 (diff)
downloadop-kernel-dev-7de5bdc96c372ab875408c86e0099958dba89f56.zip
op-kernel-dev-7de5bdc96c372ab875408c86e0099958dba89f56.tar.gz
KVM: MMU: remove unnecessary check
Checking the return of kvm_mmu_get_page is unnecessary since it is guaranteed by memory cache Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/mmu.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 399c177..aa0b469 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2616,11 +2616,6 @@ static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write,
sp = kvm_mmu_get_page(vcpu, pseudo_gfn, iterator.addr,
iterator.level - 1,
1, ACC_ALL, iterator.sptep);
- if (!sp) {
- pgprintk("nonpaging_map: ENOMEM\n");
- kvm_release_pfn_clean(pfn);
- return -ENOMEM;
- }
mmu_spte_set(iterator.sptep,
__pa(sp->spt)
OpenPOWER on IntegriCloud