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 <asm/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 typedef unsigned long hva_t;
42 typedef hfn_t kvm_pfn_t;
44 struct gfn_to_hva_cache {
49 struct kvm_memory_slot *memslot;
52 #endif /* __KVM_TYPES_H__ */