Skip to content

Commit 80fbd28

Browse files
Sean Christophersonbonzini
authored andcommitted
KVM: x86: Unexport x86_fpu_cache and make it static
Make x86_fpu_cache static now that FPU allocation and destruction is handled entirely by common x86 code. Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 2067028 commit 80fbd28

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,6 @@ struct kvm_arch_async_pf {
13061306
extern u64 __read_mostly host_efer;
13071307

13081308
extern struct kvm_x86_ops kvm_x86_ops;
1309-
extern struct kmem_cache *x86_fpu_cache;
13101309

13111310
#define __KVM_HAVE_ARCH_VM_ALLOC
13121311
static inline struct kvm *kvm_arch_alloc_vm(void)

arch/x86/kvm/x86.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ u64 __read_mostly host_xcr0;
239239
u64 __read_mostly supported_xcr0;
240240
EXPORT_SYMBOL_GPL(supported_xcr0);
241241

242-
struct kmem_cache *x86_fpu_cache;
243-
EXPORT_SYMBOL_GPL(x86_fpu_cache);
242+
static struct kmem_cache *x86_fpu_cache;
244243

245244
static struct kmem_cache *x86_emulator_cache;
246245

0 commit comments

Comments
 (0)