提交 fb56dbb3 编写于 作者: A Avi Kivity

KVM: Export include/linux/kvm.h only if $ARCH actually supports KVM

Currently, make headers_check barfs due to <asm/kvm.h>, which <linux/kvm.h>
includes, not existing.  Rather than add a zillion <asm/kvm.h>s, export kvm.h
only if the arch actually supports it.
Signed-off-by: NAvi Kivity <avi@qumranet.com>
上级 d2308784
...@@ -107,6 +107,7 @@ config ARCH_SUPPORTS_OPROFILE ...@@ -107,6 +107,7 @@ config ARCH_SUPPORTS_OPROFILE
bool bool
default y default y
select HAVE_KVM
config ZONE_DMA32 config ZONE_DMA32
bool bool
......
# #
# KVM configuration # KVM configuration
# #
config HAVE_KVM
bool
menuconfig VIRTUALIZATION menuconfig VIRTUALIZATION
bool "Virtualization" bool "Virtualization"
depends on X86 depends on HAVE_KVM || X86
default y default y
---help--- ---help---
Say Y here to get to see options for using your Linux host to run other Say Y here to get to see options for using your Linux host to run other
...@@ -16,7 +19,7 @@ if VIRTUALIZATION ...@@ -16,7 +19,7 @@ if VIRTUALIZATION
config KVM config KVM
tristate "Kernel-based Virtual Machine (KVM) support" tristate "Kernel-based Virtual Machine (KVM) support"
depends on X86 && EXPERIMENTAL depends on HAVE_KVM && EXPERIMENTAL
select PREEMPT_NOTIFIERS select PREEMPT_NOTIFIERS
select ANON_INODES select ANON_INODES
---help--- ---help---
......
...@@ -255,7 +255,7 @@ unifdef-y += kd.h ...@@ -255,7 +255,7 @@ unifdef-y += kd.h
unifdef-y += kernelcapi.h unifdef-y += kernelcapi.h
unifdef-y += kernel.h unifdef-y += kernel.h
unifdef-y += keyboard.h unifdef-y += keyboard.h
unifdef-y += kvm.h unifdef-$(CONFIG_HAVE_KVM) += kvm.h
unifdef-y += llc.h unifdef-y += llc.h
unifdef-y += loop.h unifdef-y += loop.h
unifdef-y += lp.h unifdef-y += lp.h
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册