KVM: do not treat noslot pfn as a error pfn
This patch filters noslot pfn out from error pfns based on Marcelo comment: noslot pfn is not a error pfn After this patch, - is_noslot_pfn indicates that the gfn is not in slot - is_error_pfn indicates that the gfn is in slot but the error is occurred when translate the gfn to pfn - is_error_noslot_pfn indicates that the pfn either it is error pfns or it is noslot pfn And is_invalid_pfn can be removed, it makes the code more clean Signed-off-by:Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Signed-off-by:
Marcelo Tosatti <mtosatti@redhat.com>
Showing
- arch/powerpc/kvm/book3s_32_mmu_host.c 1 addition, 1 deletionarch/powerpc/kvm/book3s_32_mmu_host.c
- arch/powerpc/kvm/book3s_64_mmu_host.c 1 addition, 1 deletionarch/powerpc/kvm/book3s_64_mmu_host.c
- arch/powerpc/kvm/e500_tlb.c 1 addition, 1 deletionarch/powerpc/kvm/e500_tlb.c
- arch/x86/kvm/mmu.c 2 additions, 2 deletionsarch/x86/kvm/mmu.c
- arch/x86/kvm/paging_tmpl.h 1 addition, 1 deletionarch/x86/kvm/paging_tmpl.h
- arch/x86/kvm/x86.c 1 addition, 1 deletionarch/x86/kvm/x86.c
- include/linux/kvm_host.h 20 additions, 8 deletionsinclude/linux/kvm_host.h
- virt/kvm/iommu.c 2 additions, 2 deletionsvirt/kvm/iommu.c
- virt/kvm/kvm_main.c 3 additions, 3 deletionsvirt/kvm/kvm_main.c
Loading
Please register or sign in to comment