[PATCH] KVM: Change [g|h]va_t as u64

From: Anshuman Khandual

Date: Thu Mar 05 2026 - 23:11:38 EST


Change both [g|h]va_t as u64 to be consistent with other address types.

Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx>
Cc: kvm@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Anshuman Khandual <anshuman.khandual@xxxxxxx>
---
include/linux/kvm_types.h | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/linux/kvm_types.h b/include/linux/kvm_types.h
index a568d8e6f4e8..c901ad01eb5d 100644
--- a/include/linux/kvm_types.h
+++ b/include/linux/kvm_types.h
@@ -61,15 +61,15 @@ enum kvm_mr_change;
* hfn - host frame number
*/

-typedef unsigned long gva_t;
-typedef u64 gpa_t;
-typedef u64 gfn_t;
+typedef u64 gva_t;
+typedef u64 gpa_t;
+typedef u64 gfn_t;

#define INVALID_GPA (~(gpa_t)0)

-typedef unsigned long hva_t;
-typedef u64 hpa_t;
-typedef u64 hfn_t;
+typedef u64 hva_t;
+typedef u64 hpa_t;
+typedef u64 hfn_t;

typedef hfn_t kvm_pfn_t;

--
2.30.2