From patchwork Fri Apr 26 00:05:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Borislav Petkov X-Patchwork-Id: 2490441 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6D433DF5B1 for ; Fri, 26 Apr 2013 00:06:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932637Ab3DZAGB (ORCPT ); Thu, 25 Apr 2013 20:06:01 -0400 Received: from mail.skyhub.de ([78.46.96.112]:56387 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932250Ab3DZAGA (ORCPT ); Thu, 25 Apr 2013 20:06:00 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1366934758; bh=MKatGC25j0X7C+JHHu6bldtirz4lOmae0S3zp0rogH4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=CXWv8tKwVjN7YHgaWLfuO6TEvHE1wRHupBm18m QFiY4DzsNCsvlfHN0heDaIjdnaxIA0TwP2kGPsjwpjETL06r1hXvxftr22C7+anWHuB cRJxZfKUQuyJ17THFTYuQYg90z9KW7/roZjtgjSZs82rZ6WOa4qNq7Xl1RfJ4u5RGk= Received: from mail.skyhub.de ([127.0.0.1]) by localhost (door.skyhub.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id IFWtzJdMWnF1; Fri, 26 Apr 2013 02:05:57 +0200 (CEST) Received: from liondog.tnic (p54B468B8.dip0.t-ipconnect.de [84.180.104.184]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6B4CE1D9DE6; Fri, 26 Apr 2013 02:05:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alien8.de; s=alien8; t=1366934757; bh=MKatGC25j0X7C+JHHu6bldtirz4lOmae0S3zp0rogH4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=gNr4lYQO1cloSJYtfR2QJlfJ6rWK3+P3f0FtZw WSfN6jdXbE/XJyHl6TSADKhLJLTo7aRSEUoCbBvu3swA2f3X2uKYJhQLb53DQrlXex1 XGamuxRU3Qvu6QhQMvBPbcfEm6rOWiPZJ+Zt6mM8a3Eja0VXf4bKMTzcTkyfJe0Kl8= Received: by liondog.tnic (Postfix, from userid 1000) id AE2D3100802; Fri, 26 Apr 2013 02:05:53 +0200 (CEST) Date: Fri, 26 Apr 2013 02:05:53 +0200 From: Borislav Petkov To: Marcelo Tosatti Cc: Pekka Enberg , Ingo Molnar , "H. Peter Anvin" , Sasha Levin , Fengguang Wu , lkml , x86-ml , kvm@vger.kernel.org Subject: [PATCH -v2] x86: Add a Kconfig shortcut for kvm guest kernel Message-ID: <20130426000553.GE32607@pd.tnic> References: <20130412181956.GA13099@pd.tnic> <516A7760.7030907@kernel.org> <20130414110320.GB20547@pd.tnic> <20130416161852.GH5332@pd.tnic> <20130417232507.GC31059@amt.cnet> <20130418094629.GC21719@pd.tnic> <20130418133631.GA30965@amt.cnet> <20130419103519.GB21981@pd.tnic> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130419103519.GB21981@pd.tnic> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Borislav Petkov Date: Tue, 16 Apr 2013 18:24:34 +0200 Subject: [PATCH -v2] x86: Add a Kconfig shortcut for kvm guest kernel This is pretty useful for the case where people want to boot the resulting kernel in qemu/kvm. 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. Cc: Fengguang Wu Originally-by: Pekka Enberg Originally-by: Sasha Levin Signed-off-by: Borislav Petkov --- Here's v2 which should be addressing all review comments so far. arch/x86/Kconfig | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 5651374d179f..76a95ffa959a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -680,6 +680,44 @@ 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_COMMODITY_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/kvm. 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, etc. + source "arch/x86/lguest/Kconfig" config PARAVIRT_TIME_ACCOUNTING