1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __KVM_TYPES_H__
4 #define __KVM_TYPES_H__
10 struct kvm_irq_routing_table;
11 struct kvm_memory_slot;
14 struct kvm_userspace_memory_region;
21 #include <linux/types.h>
26 * gva - guest virtual address
27 * gpa - guest physical address
28 * gfn - guest frame number
29 * hva - host virtual address
30 * hpa - host physical address
31 * hfn - host frame number
34 typedef unsigned long gva_t;
38 #define GPA_INVALID (~(gpa_t)0)
40 typedef unsigned long hva_t;
44 typedef hfn_t kvm_pfn_t;
46 struct gfn_to_hva_cache {
51 struct kvm_memory_slot *memslot;
54 struct gfn_to_pfn_cache {
61 #endif /* __KVM_TYPES_H__ */