Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760889Ab3EBRY0 (ORCPT ); Thu, 2 May 2013 13:24:26 -0400 Received: from terminus.zytor.com ([198.137.202.10]:33923 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759006Ab3EBRYY (ORCPT ); Thu, 2 May 2013 13:24:24 -0400 Date: Thu, 2 May 2013 10:23:46 -0700 From: tip-bot for Borislav Petkov Message-ID: Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org, penberg@kernel.org, bp@alien8.de, levinsasha928@gmail.com, mtosatti@redhat.com, tglx@linutronix.de, hpa@linux.intel.com, fengguang.wu@intel.com, bp@suse.de Reply-To: mingo@kernel.org, hpa@zytor.com, linux-kernel@vger.kernel.org, penberg@kernel.org, bp@alien8.de, levinsasha928@gmail.com, mtosatti@redhat.com, tglx@linutronix.de, bp@suse.de, fengguang.wu@intel.com, hpa@linux.intel.com In-Reply-To: <20130426095140.GA15361@pd.tnic> References: <20130426095140.GA15361@pd.tnic> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/kconfig: Add a Kconfig shortcut for building working KVM guest kernels Git-Commit-ID: 7e0320e733eec67e40d2b53e438d9971f079862d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3043 Lines: 88 Commit-ID: 7e0320e733eec67e40d2b53e438d9971f079862d Gitweb: http://git.kernel.org/tip/7e0320e733eec67e40d2b53e438d9971f079862d Author: Borislav Petkov AuthorDate: Fri, 26 Apr 2013 11:51:40 +0200 Committer: H. Peter Anvin CommitDate: Thu, 2 May 2013 10:13:07 -0700 x86/kconfig: Add a Kconfig shortcut for building working KVM guest kernels This is pretty useful for the case where people want to boot the resulting kernel in qemu/kvm or lkvm. Instead of going and searching for each required option through the Kconfig maze, this single option should simply enable everything required/good to have to boot the resulting kernel in the guest. Patch has been adapted from a version in the external lkvm tree. [ hpa: rebased to resolve a merge conflict ] Originally-by: Pekka Enberg Originally-by: Sasha Levin Signed-off-by: Borislav Petkov Cc: Marcelo Tosatti Cc: Pekka Enberg Cc: Sasha Levin Cc: Fengguang Wu Link: http://lkml.kernel.org/r/20130426095140.GA15361@pd.tnic Signed-off-by: Ingo Molnar Signed-off-by: H. Peter Anvin --- arch/x86/Kconfig | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5db2117..f724671f 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -649,6 +649,45 @@ config KVM_GUEST underlying device model, the host provides the guest with timing infrastructure such as time of day, and system time +config KVM_GUEST_COMMON_OPTIONS + bool "Enable commodity options for a standalone KVM guest" + depends on KVM_GUEST + select NET + select NETDEVICES + select BLOCK + select BLK_DEV + select NETWORK_FILESYSTEMS + select INET + select EXPERIMENTAL + select TTY + select SERIAL_8250 + select SERIAL_8250_CONSOLE + select IP_PNP + select IP_PNP_DHCP + select BINFMT_ELF + select PCI_MSI + select HAVE_ARCH_KGDB + select DEBUG_KERNEL + select KGDB + select KGDB_SERIAL_CONSOLE + select VIRTUALIZATION + select VIRTIO + select VIRTIO_RING + select VIRTIO_PCI + select VIRTIO_BLK + select VIRTIO_CONSOLE + select VIRTIO_NET + select 9P_FS + select NET_9P + select NET_9P_VIRTIO + ---help--- + Select guest kernel functionality which facilitates booting the + kernel as a guest in qemu or lkvm. This entails basic stuff like + serial support, kgdb, virtio and other so that you can be able to + have commodity functionality like serial output from the guest, + networking, seamless host file system integration into guest context + and other useful things. + source "arch/x86/lguest/Kconfig" config PARAVIRT_TIME_ACCOUNTING -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/