diff options
author | Hollis Blanchard <hollisb@us.ibm.com> | 2007-12-03 16:30:23 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:17 -0500 |
commit | d77a39d982431ef9efc7e7a1690cee2ce252b95e (patch) | |
tree | ddef3adf23b7e6e794215177016e1b063e575be4 /drivers/kvm/kvm.h | |
parent | b1fd3d30ba46360fc94d40ee8dc1f7a4338b19be (diff) |
KVM: Portability: Move address types to their own header file
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index be18620bd656..3b0ba5ab7104 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -20,6 +20,8 @@ | |||
20 | #include <linux/kvm.h> | 20 | #include <linux/kvm.h> |
21 | #include <linux/kvm_para.h> | 21 | #include <linux/kvm_para.h> |
22 | 22 | ||
23 | #include "types.h" | ||
24 | |||
23 | #define KVM_MAX_VCPUS 4 | 25 | #define KVM_MAX_VCPUS 4 |
24 | #define KVM_ALIAS_SLOTS 4 | 26 | #define KVM_ALIAS_SLOTS 4 |
25 | #define KVM_MEMORY_SLOTS 8 | 27 | #define KVM_MEMORY_SLOTS 8 |
@@ -39,25 +41,6 @@ | |||
39 | */ | 41 | */ |
40 | #define KVM_REQ_TLB_FLUSH 0 | 42 | #define KVM_REQ_TLB_FLUSH 0 |
41 | 43 | ||
42 | /* | ||
43 | * Address types: | ||
44 | * | ||
45 | * gva - guest virtual address | ||
46 | * gpa - guest physical address | ||
47 | * gfn - guest frame number | ||
48 | * hva - host virtual address | ||
49 | * hpa - host physical address | ||
50 | * hfn - host frame number | ||
51 | */ | ||
52 | |||
53 | typedef unsigned long gva_t; | ||
54 | typedef u64 gpa_t; | ||
55 | typedef unsigned long gfn_t; | ||
56 | |||
57 | typedef unsigned long hva_t; | ||
58 | typedef u64 hpa_t; | ||
59 | typedef unsigned long hfn_t; | ||
60 | |||
61 | #define NR_PTE_CHAIN_ENTRIES 5 | 44 | #define NR_PTE_CHAIN_ENTRIES 5 |
62 | 45 | ||
63 | struct kvm_pte_chain { | 46 | struct kvm_pte_chain { |