mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
92b5265d38
commit
7de5bdc96c
1 changed files with 0 additions and 5 deletions
|
@ -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,
|
sp = kvm_mmu_get_page(vcpu, pseudo_gfn, iterator.addr,
|
||||||
iterator.level - 1,
|
iterator.level - 1,
|
||||||
1, ACC_ALL, iterator.sptep);
|
1, ACC_ALL, iterator.sptep);
|
||||||
if (!sp) {
|
|
||||||
pgprintk("nonpaging_map: ENOMEM\n");
|
|
||||||
kvm_release_pfn_clean(pfn);
|
|
||||||
return -ENOMEM;
|
|
||||||
}
|
|
||||||
|
|
||||||
mmu_spte_set(iterator.sptep,
|
mmu_spte_set(iterator.sptep,
|
||||||
__pa(sp->spt)
|
__pa(sp->spt)
|
||||||
|
|
Loading…
Add table
Reference in a new issue