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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 59cbc5b1d905..be3a0e7ecae4 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -55,6 +55,7 @@
55#define KVM_NUM_MMU_PAGES 256 55#define KVM_NUM_MMU_PAGES 256
56#define KVM_MIN_FREE_MMU_PAGES 5 56#define KVM_MIN_FREE_MMU_PAGES 5
57#define KVM_REFILL_PAGES 25 57#define KVM_REFILL_PAGES 25
58#define KVM_MAX_CPUID_ENTRIES 40
58 59
59#define FX_IMAGE_SIZE 512 60#define FX_IMAGE_SIZE 512
60#define FX_IMAGE_ALIGN 16 61#define FX_IMAGE_ALIGN 16
@@ -286,6 +287,9 @@ struct kvm_vcpu {
286 u32 ar; 287 u32 ar;
287 } tr, es, ds, fs, gs; 288 } tr, es, ds, fs, gs;
288 } rmode; 289 } rmode;
290
291 int cpuid_nent;
292 struct kvm_cpuid_entry cpuid_entries[KVM_MAX_CPUID_ENTRIES];
289}; 293};
290 294
291struct kvm_memory_slot { 295struct kvm_memory_slot {
@@ -446,6 +450,7 @@ void realmode_set_cr(struct kvm_vcpu *vcpu, int cr, unsigned long value,
446 450
447struct x86_emulate_ctxt; 451struct x86_emulate_ctxt;
448 452
453void kvm_emulate_cpuid(struct kvm_vcpu *vcpu);
449int emulate_invlpg(struct kvm_vcpu *vcpu, gva_t address); 454int emulate_invlpg(struct kvm_vcpu *vcpu, gva_t address);
450int emulate_clts(struct kvm_vcpu *vcpu); 455int emulate_clts(struct kvm_vcpu *vcpu);
451int emulator_get_dr(struct x86_emulate_ctxt* ctxt, int dr, 456int emulator_get_dr(struct x86_emulate_ctxt* ctxt, int dr,