diff options
author | Avi Kivity <avi@qumranet.com> | 2007-12-16 04:02:48 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 11:01:18 -0500 |
commit | edf884172e9828c6234b254208af04655855038d (patch) | |
tree | f5e5d1eecaed9737eced6ba60d09fe93149751c1 | |
parent | 9584bf2c93f56656dba0de8f6c75b54ca7995143 (diff) |
KVM: Move arch dependent files to new directory arch/x86/kvm/
This paves the way for multiple architecture support. Note that while
ioapic.c could potentially be shared with ia64, it is also moved.
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | arch/x86/Kconfig | 2 | ||||
-rw-r--r-- | arch/x86/Makefile | 2 | ||||
-rw-r--r-- | arch/x86/kvm/Kconfig (renamed from drivers/kvm/Kconfig) | 0 | ||||
-rw-r--r-- | arch/x86/kvm/Makefile (renamed from drivers/kvm/Makefile) | 7 | ||||
-rw-r--r-- | arch/x86/kvm/i8259.c (renamed from drivers/kvm/i8259.c) | 3 | ||||
-rw-r--r-- | arch/x86/kvm/ioapic.c (renamed from drivers/kvm/ioapic.c) | 4 | ||||
-rw-r--r-- | arch/x86/kvm/irq.c (renamed from drivers/kvm/irq.c) | 3 | ||||
-rw-r--r-- | arch/x86/kvm/irq.h (renamed from drivers/kvm/irq.h) | 3 | ||||
-rw-r--r-- | arch/x86/kvm/kvm_svm.h (renamed from drivers/kvm/kvm_svm.h) | 2 | ||||
-rw-r--r-- | arch/x86/kvm/lapic.c (renamed from drivers/kvm/lapic.c) | 4 | ||||
-rw-r--r-- | arch/x86/kvm/mmu.c (renamed from drivers/kvm/mmu.c) | 3 | ||||
-rw-r--r-- | arch/x86/kvm/mmu.h (renamed from drivers/kvm/mmu.h) | 2 | ||||
-rw-r--r-- | arch/x86/kvm/paging_tmpl.h (renamed from drivers/kvm/paging_tmpl.h) | 0 | ||||
-rw-r--r-- | arch/x86/kvm/segment_descriptor.h (renamed from drivers/kvm/segment_descriptor.h) | 0 | ||||
-rw-r--r-- | arch/x86/kvm/svm.c (renamed from drivers/kvm/svm.c) | 4 | ||||
-rw-r--r-- | arch/x86/kvm/svm.h (renamed from drivers/kvm/svm.h) | 0 | ||||
-rw-r--r-- | arch/x86/kvm/vmx.c (renamed from drivers/kvm/vmx.c) | 4 | ||||
-rw-r--r-- | arch/x86/kvm/vmx.h (renamed from drivers/kvm/vmx.h) | 0 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c (renamed from drivers/kvm/x86.c) | 4 | ||||
-rw-r--r-- | arch/x86/kvm/x86_emulate.c (renamed from drivers/kvm/x86_emulate.c) | 5 | ||||
-rw-r--r-- | drivers/Kconfig | 2 | ||||
-rw-r--r-- | drivers/Makefile | 1 | ||||
-rw-r--r-- | drivers/kvm/iodev.h | 2 | ||||
-rw-r--r-- | drivers/kvm/kvm_main.c | 2 | ||||
-rw-r--r-- | include/asm-x86/kvm_host.h (renamed from drivers/kvm/x86.h) | 9 | ||||
-rw-r--r-- | include/asm-x86/kvm_x86_emulate.h (renamed from drivers/kvm/x86_emulate.h) | 0 | ||||
-rw-r--r-- | include/linux/kvm_host.h (renamed from drivers/kvm/kvm.h) | 8 | ||||
-rw-r--r-- | include/linux/kvm_types.h (renamed from drivers/kvm/types.h) | 0 |
28 files changed, 35 insertions, 41 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index d289cfcf92c4..65b449134cf7 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -1599,4 +1599,6 @@ source "security/Kconfig" | |||
1599 | 1599 | ||
1600 | source "crypto/Kconfig" | 1600 | source "crypto/Kconfig" |
1601 | 1601 | ||
1602 | source "arch/x86/kvm/Kconfig" | ||
1603 | |||
1602 | source "lib/Kconfig" | 1604 | source "lib/Kconfig" |
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index b08f18261df6..da8f4129780b 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile | |||
@@ -7,6 +7,8 @@ else | |||
7 | KBUILD_DEFCONFIG := $(ARCH)_defconfig | 7 | KBUILD_DEFCONFIG := $(ARCH)_defconfig |
8 | endif | 8 | endif |
9 | 9 | ||
10 | core-$(CONFIG_KVM) += arch/x86/kvm/ | ||
11 | |||
10 | # BITS is used as extension for files which are available in a 32 bit | 12 | # BITS is used as extension for files which are available in a 32 bit |
11 | # and a 64 bit version to simplify shared Makefiles. | 13 | # and a 64 bit version to simplify shared Makefiles. |
12 | # e.g.: obj-y += foo_$(BITS).o | 14 | # e.g.: obj-y += foo_$(BITS).o |
diff --git a/drivers/kvm/Kconfig b/arch/x86/kvm/Kconfig index c83e1c9b5129..c83e1c9b5129 100644 --- a/drivers/kvm/Kconfig +++ b/arch/x86/kvm/Kconfig | |||
diff --git a/drivers/kvm/Makefile b/arch/x86/kvm/Makefile index cf18ad46e987..880ffe403b35 100644 --- a/drivers/kvm/Makefile +++ b/arch/x86/kvm/Makefile | |||
@@ -2,7 +2,12 @@ | |||
2 | # Makefile for Kernel-based Virtual Machine module | 2 | # Makefile for Kernel-based Virtual Machine module |
3 | # | 3 | # |
4 | 4 | ||
5 | kvm-objs := kvm_main.o x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o ioapic.o | 5 | common-objs = $(addprefix ../../../drivers/kvm/, kvm_main.o) |
6 | |||
7 | EXTRA_CFLAGS += -I drivers/kvm | ||
8 | |||
9 | kvm-objs := $(common-objs) x86.o mmu.o x86_emulate.o i8259.o irq.o lapic.o \ | ||
10 | ioapic.o | ||
6 | obj-$(CONFIG_KVM) += kvm.o | 11 | obj-$(CONFIG_KVM) += kvm.o |
7 | kvm-intel-objs = vmx.o | 12 | kvm-intel-objs = vmx.o |
8 | obj-$(CONFIG_KVM_INTEL) += kvm-intel.o | 13 | obj-$(CONFIG_KVM_INTEL) += kvm-intel.o |
diff --git a/drivers/kvm/i8259.c b/arch/x86/kvm/i8259.c index b3cad632f3d5..ab29cf2def47 100644 --- a/drivers/kvm/i8259.c +++ b/arch/x86/kvm/i8259.c | |||
@@ -27,7 +27,8 @@ | |||
27 | */ | 27 | */ |
28 | #include <linux/mm.h> | 28 | #include <linux/mm.h> |
29 | #include "irq.h" | 29 | #include "irq.h" |
30 | #include "kvm.h" | 30 | |
31 | #include <linux/kvm_host.h> | ||
31 | 32 | ||
32 | /* | 33 | /* |
33 | * set irq level. If an edge is detected, then the IRR is set to 1 | 34 | * set irq level. If an edge is detected, then the IRR is set to 1 |
diff --git a/drivers/kvm/ioapic.c b/arch/x86/kvm/ioapic.c index f8236774c1b4..72f12f75495d 100644 --- a/drivers/kvm/ioapic.c +++ b/arch/x86/kvm/ioapic.c | |||
@@ -26,9 +26,7 @@ | |||
26 | * Based on Xen 3.1 code. | 26 | * Based on Xen 3.1 code. |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "kvm.h" | 29 | #include <linux/kvm_host.h> |
30 | #include "x86.h" | ||
31 | |||
32 | #include <linux/kvm.h> | 30 | #include <linux/kvm.h> |
33 | #include <linux/mm.h> | 31 | #include <linux/mm.h> |
34 | #include <linux/highmem.h> | 32 | #include <linux/highmem.h> |
diff --git a/drivers/kvm/irq.c b/arch/x86/kvm/irq.c index 59b47c55fc76..07a09aad4fd6 100644 --- a/drivers/kvm/irq.c +++ b/arch/x86/kvm/irq.c | |||
@@ -20,9 +20,8 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | #include <linux/kvm_host.h> | ||
23 | 24 | ||
24 | #include "kvm.h" | ||
25 | #include "x86.h" | ||
26 | #include "irq.h" | 25 | #include "irq.h" |
27 | 26 | ||
28 | /* | 27 | /* |
diff --git a/drivers/kvm/irq.h b/arch/x86/kvm/irq.h index 6e023dc3f848..6316638eec9f 100644 --- a/drivers/kvm/irq.h +++ b/arch/x86/kvm/irq.h | |||
@@ -24,9 +24,8 @@ | |||
24 | 24 | ||
25 | #include <linux/mm_types.h> | 25 | #include <linux/mm_types.h> |
26 | #include <linux/hrtimer.h> | 26 | #include <linux/hrtimer.h> |
27 | #include <asm/kvm.h> | 27 | #include <linux/kvm_host.h> |
28 | #include "iodev.h" | 28 | #include "iodev.h" |
29 | #include "kvm.h" | ||
30 | 29 | ||
31 | struct kvm; | 30 | struct kvm; |
32 | struct kvm_vcpu; | 31 | struct kvm_vcpu; |
diff --git a/drivers/kvm/kvm_svm.h b/arch/x86/kvm/kvm_svm.h index a0e415daef5b..ecdfe97e4635 100644 --- a/drivers/kvm/kvm_svm.h +++ b/arch/x86/kvm/kvm_svm.h | |||
@@ -4,10 +4,10 @@ | |||
4 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
5 | #include <linux/types.h> | 5 | #include <linux/types.h> |
6 | #include <linux/list.h> | 6 | #include <linux/list.h> |
7 | #include <linux/kvm_host.h> | ||
7 | #include <asm/msr.h> | 8 | #include <asm/msr.h> |
8 | 9 | ||
9 | #include "svm.h" | 10 | #include "svm.h" |
10 | #include "kvm.h" | ||
11 | 11 | ||
12 | static const u32 host_save_user_msrs[] = { | 12 | static const u32 host_save_user_msrs[] = { |
13 | #ifdef CONFIG_X86_64 | 13 | #ifdef CONFIG_X86_64 |
diff --git a/drivers/kvm/lapic.c b/arch/x86/kvm/lapic.c index 8c74bf184a07..4076331b01ee 100644 --- a/drivers/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c | |||
@@ -17,9 +17,7 @@ | |||
17 | * the COPYING file in the top-level directory. | 17 | * the COPYING file in the top-level directory. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include "kvm.h" | 20 | #include <linux/kvm_host.h> |
21 | #include "x86.h" | ||
22 | |||
23 | #include <linux/kvm.h> | 21 | #include <linux/kvm.h> |
24 | #include <linux/mm.h> | 22 | #include <linux/mm.h> |
25 | #include <linux/highmem.h> | 23 | #include <linux/highmem.h> |
diff --git a/drivers/kvm/mmu.c b/arch/x86/kvm/mmu.c index c26d83f86a3a..401eb7ce3207 100644 --- a/drivers/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -18,10 +18,9 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include "vmx.h" | 20 | #include "vmx.h" |
21 | #include "kvm.h" | ||
22 | #include "x86.h" | ||
23 | #include "mmu.h" | 21 | #include "mmu.h" |
24 | 22 | ||
23 | #include <linux/kvm_host.h> | ||
25 | #include <linux/types.h> | 24 | #include <linux/types.h> |
26 | #include <linux/string.h> | 25 | #include <linux/string.h> |
27 | #include <linux/mm.h> | 26 | #include <linux/mm.h> |
diff --git a/drivers/kvm/mmu.h b/arch/x86/kvm/mmu.h index cbfc272262df..1fce19ec7a23 100644 --- a/drivers/kvm/mmu.h +++ b/arch/x86/kvm/mmu.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef __KVM_X86_MMU_H | 1 | #ifndef __KVM_X86_MMU_H |
2 | #define __KVM_X86_MMU_H | 2 | #define __KVM_X86_MMU_H |
3 | 3 | ||
4 | #include "kvm.h" | 4 | #include <linux/kvm_host.h> |
5 | 5 | ||
6 | static inline void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu) | 6 | static inline void kvm_mmu_free_some_pages(struct kvm_vcpu *vcpu) |
7 | { | 7 | { |
diff --git a/drivers/kvm/paging_tmpl.h b/arch/x86/kvm/paging_tmpl.h index 56b88f7e83ef..56b88f7e83ef 100644 --- a/drivers/kvm/paging_tmpl.h +++ b/arch/x86/kvm/paging_tmpl.h | |||
diff --git a/drivers/kvm/segment_descriptor.h b/arch/x86/kvm/segment_descriptor.h index 56fc4c873389..56fc4c873389 100644 --- a/drivers/kvm/segment_descriptor.h +++ b/arch/x86/kvm/segment_descriptor.h | |||
diff --git a/drivers/kvm/svm.c b/arch/x86/kvm/svm.c index e606f6d18669..3d4b71a94440 100644 --- a/drivers/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -13,9 +13,9 @@ | |||
13 | * the COPYING file in the top-level directory. | 13 | * the COPYING file in the top-level directory. |
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | #include "x86.h" | 16 | #include <linux/kvm_host.h> |
17 | |||
17 | #include "kvm_svm.h" | 18 | #include "kvm_svm.h" |
18 | #include "x86_emulate.h" | ||
19 | #include "irq.h" | 19 | #include "irq.h" |
20 | #include "mmu.h" | 20 | #include "mmu.h" |
21 | 21 | ||
diff --git a/drivers/kvm/svm.h b/arch/x86/kvm/svm.h index 5fd50491b555..5fd50491b555 100644 --- a/drivers/kvm/svm.h +++ b/arch/x86/kvm/svm.h | |||
diff --git a/drivers/kvm/vmx.c b/arch/x86/kvm/vmx.c index 11ca2340d38f..fc494aff5d8b 100644 --- a/drivers/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -15,14 +15,12 @@ | |||
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include "kvm.h" | ||
19 | #include "x86.h" | ||
20 | #include "x86_emulate.h" | ||
21 | #include "irq.h" | 18 | #include "irq.h" |
22 | #include "vmx.h" | 19 | #include "vmx.h" |
23 | #include "segment_descriptor.h" | 20 | #include "segment_descriptor.h" |
24 | #include "mmu.h" | 21 | #include "mmu.h" |
25 | 22 | ||
23 | #include <linux/kvm_host.h> | ||
26 | #include <linux/module.h> | 24 | #include <linux/module.h> |
27 | #include <linux/kernel.h> | 25 | #include <linux/kernel.h> |
28 | #include <linux/mm.h> | 26 | #include <linux/mm.h> |
diff --git a/drivers/kvm/vmx.h b/arch/x86/kvm/vmx.h index d52ae8d7303d..d52ae8d7303d 100644 --- a/drivers/kvm/vmx.h +++ b/arch/x86/kvm/vmx.h | |||
diff --git a/drivers/kvm/x86.c b/arch/x86/kvm/x86.c index b37c0093d728..5902c5cbc1bb 100644 --- a/drivers/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -14,9 +14,7 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include "kvm.h" | 17 | #include <linux/kvm_host.h> |
18 | #include "x86.h" | ||
19 | #include "x86_emulate.h" | ||
20 | #include "segment_descriptor.h" | 18 | #include "segment_descriptor.h" |
21 | #include "irq.h" | 19 | #include "irq.h" |
22 | #include "mmu.h" | 20 | #include "mmu.h" |
diff --git a/drivers/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c index 50b133f68743..79586003397a 100644 --- a/drivers/kvm/x86_emulate.c +++ b/arch/x86/kvm/x86_emulate.c | |||
@@ -25,12 +25,11 @@ | |||
25 | #include <public/xen.h> | 25 | #include <public/xen.h> |
26 | #define DPRINTF(_f, _a ...) printf(_f , ## _a) | 26 | #define DPRINTF(_f, _a ...) printf(_f , ## _a) |
27 | #else | 27 | #else |
28 | #include "kvm.h" | 28 | #include <linux/kvm_host.h> |
29 | #include "x86.h" | ||
30 | #define DPRINTF(x...) do {} while (0) | 29 | #define DPRINTF(x...) do {} while (0) |
31 | #endif | 30 | #endif |
32 | #include "x86_emulate.h" | ||
33 | #include <linux/module.h> | 31 | #include <linux/module.h> |
32 | #include <asm/kvm_x86_emulate.h> | ||
34 | 33 | ||
35 | /* | 34 | /* |
36 | * Opcode effective-address decode tables. | 35 | * Opcode effective-address decode tables. |
diff --git a/drivers/Kconfig b/drivers/Kconfig index f4076d9e9902..08d4ae201597 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig | |||
@@ -90,8 +90,6 @@ source "drivers/dca/Kconfig" | |||
90 | 90 | ||
91 | source "drivers/auxdisplay/Kconfig" | 91 | source "drivers/auxdisplay/Kconfig" |
92 | 92 | ||
93 | source "drivers/kvm/Kconfig" | ||
94 | |||
95 | source "drivers/uio/Kconfig" | 93 | source "drivers/uio/Kconfig" |
96 | 94 | ||
97 | source "drivers/virtio/Kconfig" | 95 | source "drivers/virtio/Kconfig" |
diff --git a/drivers/Makefile b/drivers/Makefile index d92d4d82d001..9e1f808e43cf 100644 --- a/drivers/Makefile +++ b/drivers/Makefile | |||
@@ -47,7 +47,6 @@ obj-$(CONFIG_SPI) += spi/ | |||
47 | obj-$(CONFIG_PCCARD) += pcmcia/ | 47 | obj-$(CONFIG_PCCARD) += pcmcia/ |
48 | obj-$(CONFIG_DIO) += dio/ | 48 | obj-$(CONFIG_DIO) += dio/ |
49 | obj-$(CONFIG_SBUS) += sbus/ | 49 | obj-$(CONFIG_SBUS) += sbus/ |
50 | obj-$(CONFIG_KVM) += kvm/ | ||
51 | obj-$(CONFIG_ZORRO) += zorro/ | 50 | obj-$(CONFIG_ZORRO) += zorro/ |
52 | obj-$(CONFIG_MAC) += macintosh/ | 51 | obj-$(CONFIG_MAC) += macintosh/ |
53 | obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/ | 52 | obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/ |
diff --git a/drivers/kvm/iodev.h b/drivers/kvm/iodev.h index eb9e8a71843a..c14e642027b2 100644 --- a/drivers/kvm/iodev.h +++ b/drivers/kvm/iodev.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #ifndef __KVM_IODEV_H__ | 16 | #ifndef __KVM_IODEV_H__ |
17 | #define __KVM_IODEV_H__ | 17 | #define __KVM_IODEV_H__ |
18 | 18 | ||
19 | #include "types.h" | 19 | #include <linux/kvm_types.h> |
20 | 20 | ||
21 | struct kvm_io_device { | 21 | struct kvm_io_device { |
22 | void (*read)(struct kvm_io_device *this, | 22 | void (*read)(struct kvm_io_device *this, |
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index ae2a1bf640bc..4026d7d64296 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -15,9 +15,9 @@ | |||
15 | * | 15 | * |
16 | */ | 16 | */ |
17 | 17 | ||
18 | #include "kvm.h" | ||
19 | #include "iodev.h" | 18 | #include "iodev.h" |
20 | 19 | ||
20 | #include <linux/kvm_host.h> | ||
21 | #include <linux/kvm.h> | 21 | #include <linux/kvm.h> |
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | #include <linux/errno.h> | 23 | #include <linux/errno.h> |
diff --git a/drivers/kvm/x86.h b/include/asm-x86/kvm_host.h index dfb8091971a9..28940e1a9713 100644 --- a/drivers/kvm/x86.h +++ b/include/asm-x86/kvm_host.h | |||
@@ -8,19 +8,18 @@ | |||
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef KVM_X86_H | 11 | #ifndef ASM_KVM_HOST_H |
12 | #define KVM_X86_H | 12 | #define ASM_KVM_HOST_H |
13 | 13 | ||
14 | #include <linux/types.h> | 14 | #include <linux/types.h> |
15 | #include <linux/mm.h> | 15 | #include <linux/mm.h> |
16 | 16 | ||
17 | #include <linux/kvm.h> | 17 | #include <linux/kvm.h> |
18 | #include <linux/kvm_para.h> | 18 | #include <linux/kvm_para.h> |
19 | #include <linux/kvm_types.h> | ||
19 | 20 | ||
20 | #include <asm/desc.h> | 21 | #include <asm/desc.h> |
21 | 22 | ||
22 | #include "types.h" | ||
23 | |||
24 | #define CR3_PAE_RESERVED_BITS ((X86_CR3_PWT | X86_CR3_PCD) - 1) | 23 | #define CR3_PAE_RESERVED_BITS ((X86_CR3_PWT | X86_CR3_PCD) - 1) |
25 | #define CR3_NONPAE_RESERVED_BITS ((PAGE_SIZE-1) & ~(X86_CR3_PWT | X86_CR3_PCD)) | 24 | #define CR3_NONPAE_RESERVED_BITS ((PAGE_SIZE-1) & ~(X86_CR3_PWT | X86_CR3_PCD)) |
26 | #define CR3_L_MODE_RESERVED_BITS (CR3_NONPAE_RESERVED_BITS|0xFFFFFF0000000000ULL) | 25 | #define CR3_L_MODE_RESERVED_BITS (CR3_NONPAE_RESERVED_BITS|0xFFFFFF0000000000ULL) |
@@ -102,7 +101,7 @@ enum { | |||
102 | VCPU_SREG_LDTR, | 101 | VCPU_SREG_LDTR, |
103 | }; | 102 | }; |
104 | 103 | ||
105 | #include "x86_emulate.h" | 104 | #include <asm/kvm_x86_emulate.h> |
106 | 105 | ||
107 | #define KVM_NR_MEM_OBJS 40 | 106 | #define KVM_NR_MEM_OBJS 40 |
108 | 107 | ||
diff --git a/drivers/kvm/x86_emulate.h b/include/asm-x86/kvm_x86_emulate.h index 7db91b9bdcd4..7db91b9bdcd4 100644 --- a/drivers/kvm/x86_emulate.h +++ b/include/asm-x86/kvm_x86_emulate.h | |||
diff --git a/drivers/kvm/kvm.h b/include/linux/kvm_host.h index bf6a3b330a3d..a85d5b6943de 100644 --- a/drivers/kvm/kvm.h +++ b/include/linux/kvm_host.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __KVM_H | 1 | #ifndef __KVM_HOST_H |
2 | #define __KVM_H | 2 | #define __KVM_HOST_H |
3 | 3 | ||
4 | /* | 4 | /* |
5 | * This work is licensed under the terms of the GNU GPL, version 2. See | 5 | * This work is licensed under the terms of the GNU GPL, version 2. See |
@@ -20,9 +20,9 @@ | |||
20 | #include <linux/kvm.h> | 20 | #include <linux/kvm.h> |
21 | #include <linux/kvm_para.h> | 21 | #include <linux/kvm_para.h> |
22 | 22 | ||
23 | #include "types.h" | 23 | #include <linux/kvm_types.h> |
24 | 24 | ||
25 | #include "x86.h" | 25 | #include <asm/kvm_host.h> |
26 | 26 | ||
27 | #define KVM_MAX_VCPUS 4 | 27 | #define KVM_MAX_VCPUS 4 |
28 | #define KVM_MEMORY_SLOTS 8 | 28 | #define KVM_MEMORY_SLOTS 8 |
diff --git a/drivers/kvm/types.h b/include/linux/kvm_types.h index 1c4e46decb22..1c4e46decb22 100644 --- a/drivers/kvm/types.h +++ b/include/linux/kvm_types.h | |||