diff options
author | Hou Wenlong <houwenlong.hwl@antgroup.com> | 2022-07-01 12:24:13 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2022-07-13 01:31:12 +0300 |
commit | 6e1d2a3f25d518cc3d9703115c6fbec704a6c5bb (patch) | |
tree | 71e4b4a4c0046d3e42b1484711a1dc506b084fb3 /arch/x86/include/asm | |
parent | 156b9d76e8822f2956c15029acf2d4b171502f3a (diff) | |
download | linux-6e1d2a3f25d518cc3d9703115c6fbec704a6c5bb.tar.xz |
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>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index de5a149d0971..dd6a26f7d46c 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -129,7 +129,6 @@ #define INVALID_PAGE (~(hpa_t)0) #define VALID_PAGE(x) ((x) != INVALID_PAGE) -#define UNMAPPED_GVA (~(gpa_t)0) #define INVALID_GPA (~(gpa_t)0) /* KVM Hugepage definitions for x86 */ |