aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
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 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
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 {