Skip to content

Commit e52ad1d

Browse files
Maxim Levitskysean-jc
authored andcommitted
KVM: x86: drop x86.h include from cpuid.h
Drop x86.h include from cpuid.h to allow the x86.h to include the cpuid.h instead. Also fix various places where x86.h was implicitly included via cpuid.h Signed-off-by: Maxim Levitsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] [sean: fixup a missed include in mtrr.c] Signed-off-by: Sean Christopherson <[email protected]>
1 parent eecf398 commit e52ad1d

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed

arch/x86/kvm/cpuid.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#ifndef ARCH_X86_KVM_CPUID_H
33
#define ARCH_X86_KVM_CPUID_H
44

5-
#include "x86.h"
65
#include "reverse_cpuid.h"
76
#include <asm/cpu.h>
87
#include <asm/processor.h>

arch/x86/kvm/mmu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <linux/kvm_host.h>
66
#include "kvm_cache_regs.h"
7+
#include "x86.h"
78
#include "cpuid.h"
89

910
extern bool __read_mostly enable_mmio_caching;

arch/x86/kvm/mtrr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <asm/mtrr.h>
2020

2121
#include "cpuid.h"
22+
#include "x86.h"
2223

2324
static u64 *find_mtrr(struct kvm_vcpu *vcpu, unsigned int msr)
2425
{

arch/x86/kvm/vmx/hyperv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <linux/errno.h>
55
#include <linux/smp.h>
66

7+
#include "x86.h"
78
#include "../cpuid.h"
89
#include "hyperv.h"
910
#include "nested.h"

arch/x86/kvm/vmx/nested.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <asm/debugreg.h>
88
#include <asm/mmu_context.h>
99

10+
#include "x86.h"
1011
#include "cpuid.h"
1112
#include "hyperv.h"
1213
#include "mmu.h"
@@ -16,7 +17,6 @@
1617
#include "sgx.h"
1718
#include "trace.h"
1819
#include "vmx.h"
19-
#include "x86.h"
2020
#include "smm.h"
2121

2222
static bool __read_mostly enable_shadow_vmcs = 1;

arch/x86/kvm/vmx/sgx.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44

55
#include <asm/sgx.h>
66

7-
#include "cpuid.h"
7+
#include "x86.h"
88
#include "kvm_cache_regs.h"
99
#include "nested.h"
1010
#include "sgx.h"
1111
#include "vmx.h"
12-
#include "x86.h"
1312

1413
bool __read_mostly enable_sgx = 1;
1514
module_param_named(sgx, enable_sgx, bool, 0444);

0 commit comments

Comments
 (0)