aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorHollis Blanchard <hollisb@us.ibm.com>2007-12-03 16:30:23 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:17 -0500
commitd77a39d982431ef9efc7e7a1690cee2ce252b95e (patch)
treeddef3adf23b7e6e794215177016e1b063e575be4 /drivers/kvm/kvm.h
parentb1fd3d30ba46360fc94d40ee8dc1f7a4338b19be (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.h21
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
53typedef unsigned long gva_t;
54typedef u64 gpa_t;
55typedef unsigned long gfn_t;
56
57typedef unsigned long hva_t;
58typedef u64 hpa_t;
59typedef unsigned long hfn_t;
60
61#define NR_PTE_CHAIN_ENTRIES 5 44#define NR_PTE_CHAIN_ENTRIES 5
62 45
63struct kvm_pte_chain { 46struct kvm_pte_chain {