diff options
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 be18620bd65..3b0ba5ab710 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 { |