2008-02-26 00:20:29

by Yinghai Lu

[permalink] [raw]
Subject: [PATCH] x86: PARAVIRT needed by PARAVIRT_GUEST or X86_VSMP


so it could be off automatically when PARAVIRT_GUEST or X86_VSMP is not there

Signed-off-by: Yinghai Lu <[email protected]>

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 92b53ec..5bbb385 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -379,6 +379,8 @@ source "arch/x86/lguest/Kconfig"

endif

+if PARAVIRT_GUEST || X86_VSMP
+
config PARAVIRT
bool "Enable paravirtualization code"
depends on !(X86_VISWS || X86_VOYAGER)
@@ -388,6 +390,8 @@ config PARAVIRT
over full virtualization. However, when run without a hypervisor
the kernel is theoretically slower and slightly larger.

+endif
+
config ACPI_SRAT
def_bool y
depends on X86_32 && ACPI && NUMA && (X86_SUMMIT || X86_GENERICARCH)


2008-02-26 07:30:24

by Ingo Molnar

[permalink] [raw]
Subject: Re: [PATCH] x86: PARAVIRT needed by PARAVIRT_GUEST or X86_VSMP


* Yinghai Lu <[email protected]> wrote:

> so it could be off automatically when PARAVIRT_GUEST or X86_VSMP is
> not there

thanks, applied. This whole VSMP + PARAVIRT business has to be done
cleaner though before it's upstream ready, all the Kconfig magic looks
rather twisted.

Ingo