From 8fd82e2f770502da502987b7529d137dc2962db4 Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Mon, 6 Jun 2011 15:45:28 -0700 Subject: HVM-310 Cleanup includes and extern function definitions in kvm_vmx.c --- kvm_impl.h | 59 ----------------------------------------------------------- 1 file changed, 59 deletions(-) (limited to 'kvm_impl.h') diff --git a/kvm_impl.h b/kvm_impl.h index 3b2142b..02960ca 100644 --- a/kvm_impl.h +++ b/kvm_impl.h @@ -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 -- cgit v1.2.3