diff options
author | Robert Mustacchi <rm@joyent.com> | 2011-06-06 15:45:28 -0700 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2011-06-06 15:45:28 -0700 |
commit | 8fd82e2f770502da502987b7529d137dc2962db4 (patch) | |
tree | 4911aff6cc31a7fe08a4609ba27cbdb6f5895393 /kvm_impl.h | |
parent | 18e279fbbd087ed9d6d3ce36a0623ca20ec62e0a (diff) | |
download | illumos-kvm-8fd82e2f770502da502987b7529d137dc2962db4.tar.gz |
HVM-310 Cleanup includes and extern function definitions in kvm_vmx.c
Diffstat (limited to 'kvm_impl.h')
-rw-r--r-- | kvm_impl.h | 59 |
1 files changed, 0 insertions, 59 deletions
@@ -93,63 +93,4 @@ typedef struct kvm_stats { #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) #endif /*ARRAY_SIZE*/ -#define KVM_CPUALL -1 - -typedef void (*kvm_xcall_t)(void *); - -/* - * XXX - * All the follwoing definitions are ones that are expected to just be in - * x86/x86.c by Linux. However we currently have the things that need them - * spread out across two files. For now we are putting them here, but this - * should not last very long. - */ -#define KVM_NR_SHARED_MSRS 16 - -typedef struct kvm_shared_msrs_global { - int nr; - uint32_t msrs[KVM_NR_SHARED_MSRS]; -} kvm_shared_msrs_global_t; - -struct kvm_vcpu; - -typedef struct kvm_user_return_notifier { - void (*on_user_return)(struct kvm_vcpu *, - struct kvm_user_return_notifier *); -} kvm_user_return_notifier_t; - -typedef struct kvm_shared_msrs { - struct kvm_user_return_notifier urn; - int registered; - struct kvm_shared_msr_values { - uint64_t host; - uint64_t curr; - } values[KVM_NR_SHARED_MSRS]; -} kvm_shared_msrs_t; - -/* - * fxsave fpu state. Taken from x86_64/processor.h. To be killed when - * we have asm/x86/processor.h - */ -typedef struct fxsave { - uint16_t cwd; - uint16_t swd; - uint16_t twd; - uint16_t fop; - uint64_t rip; - uint64_t rdp; - uint32_t mxcsr; - uint32_t mxcsr_mask; - uint32_t st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */ -#ifdef CONFIG_X86_64 - uint32_t xmm_space[64]; /* 16*16 bytes for each XMM-reg = 256 bytes */ -#else - uint32_t xmm_space[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */ -#endif -} fxsave_t; - -#ifndef offsetof -#define offsetof(s, m) ((size_t)(&((s *)0)->m)) -#endif - #endif |