diff options
Diffstat (limited to 'drivers/kvm/x86.h')
-rw-r--r-- | drivers/kvm/x86.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/kvm/x86.h b/drivers/kvm/x86.h index 4ca848536365..be84f2b89095 100644 --- a/drivers/kvm/x86.h +++ b/drivers/kvm/x86.h | |||
@@ -54,6 +54,8 @@ | |||
54 | 54 | ||
55 | #define IOPL_SHIFT 12 | 55 | #define IOPL_SHIFT 12 |
56 | 56 | ||
57 | #define KVM_ALIAS_SLOTS 4 | ||
58 | |||
57 | #define KVM_PERMILLE_MMU_PAGES 20 | 59 | #define KVM_PERMILLE_MMU_PAGES 20 |
58 | #define KVM_MIN_ALLOC_MMU_PAGES 64 | 60 | #define KVM_MIN_ALLOC_MMU_PAGES 64 |
59 | #define KVM_NUM_MMU_PAGES 1024 | 61 | #define KVM_NUM_MMU_PAGES 1024 |
@@ -255,6 +257,17 @@ struct kvm_vcpu_arch { | |||
255 | struct x86_emulate_ctxt emulate_ctxt; | 257 | struct x86_emulate_ctxt emulate_ctxt; |
256 | }; | 258 | }; |
257 | 259 | ||
260 | struct kvm_mem_alias { | ||
261 | gfn_t base_gfn; | ||
262 | unsigned long npages; | ||
263 | gfn_t target_gfn; | ||
264 | }; | ||
265 | |||
266 | struct kvm_arch{ | ||
267 | int naliases; | ||
268 | struct kvm_mem_alias aliases[KVM_ALIAS_SLOTS]; | ||
269 | }; | ||
270 | |||
258 | struct kvm_vcpu_stat { | 271 | struct kvm_vcpu_stat { |
259 | u32 pf_fixed; | 272 | u32 pf_fixed; |
260 | u32 pf_guest; | 273 | u32 pf_guest; |