KVM: x86/mmu: Replace UNMAPPED_GVA with INVALID_GPA for gva_to_gpa()
authorHou Wenlong <houwenlong.hwl@antgroup.com>
Fri, 1 Jul 2022 09:24:13 +0000 (17:24 +0800)
committerSean Christopherson <seanjc@google.com>
Tue, 12 Jul 2022 22:31:12 +0000 (22:31 +0000)
commit6e1d2a3f25d518cc3d9703115c6fbec704a6c5bb
tree71e4b4a4c0046d3e42b1484711a1dc506b084fb3
parent156b9d76e8822f2956c15029acf2d4b171502f3a
KVM: x86/mmu: Replace UNMAPPED_GVA with INVALID_GPA for gva_to_gpa()

The result of gva_to_gpa() is physical address not virtual address,
it is odd that UNMAPPED_GVA macro is used as the result for physical
address. Replace UNMAPPED_GVA with INVALID_GPA and drop UNMAPPED_GVA
macro.

No functional change intended.

Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/6104978956449467d3c68f1ad7f2c2f6d771d0ee.1656667239.git.houwenlong.hwl@antgroup.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu/paging_tmpl.h
arch/x86/kvm/vmx/sgx.c
arch/x86/kvm/x86.c