From: tip-bot for Borislav Petkov <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
penberg@kernel.org, rdunlap@infradead.org, mmarek@suse.cz,
bp@alien8.de, tglx@linutronix.de, bp@suse.de,
rientjes@google.com
Subject: [tip:x86/platform] x86, platform, kvm, kconfig: Turn existing .config's into KVM-capable configs
Date: Tue, 28 May 2013 06:39:58 -0700 [thread overview]
Message-ID: <tip-46ff53874bd935ab9955dee56d60212857e89bf3@git.kernel.org> (raw)
In-Reply-To: <20130522144638.GB15085@pd.tnic>
Commit-ID: 46ff53874bd935ab9955dee56d60212857e89bf3
Gitweb: http://git.kernel.org/tip/46ff53874bd935ab9955dee56d60212857e89bf3
Author: Borislav Petkov <bp@alien8.de>
AuthorDate: Wed, 22 May 2013 16:46:39 +0200
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Tue, 28 May 2013 12:11:32 +0200
x86, platform, kvm, kconfig: Turn existing .config's into KVM-capable configs
Add an config file snippet which enables additional options
useful for running the kernel in a kvm guest. When you execute
'make kvmconfig' it merges those options with an already
existing user config before you build the kernel.
Based on an patch from the external lkvm tree.
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Michal Marek <mmarek@suse.cz>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: penberg@kernel.org
Cc: levinsasha928@gmail.com
Cc: mtosatti@redhat.com
Cc: fengguang.wu@intel.com
Link: http://lkml.kernel.org/r/20130522144638.GB15085@pd.tnic
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/Makefile | 6 ++++++
arch/x86/configs/kvm_guest.config | 28 ++++++++++++++++++++++++++++
2 files changed, 34 insertions(+)
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 5c47726..91ee171 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -220,6 +220,11 @@ archclean:
$(Q)$(MAKE) $(clean)=$(boot)
$(Q)$(MAKE) $(clean)=arch/x86/tools
+kvmconfig:
+ $(if $(wildcard $(objtree)/.config),, $(error You need an existing .config for this target))
+ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m -O $(objtree) $(objtree)/.config arch/x86/configs/kvm_guest.config
+ $(Q)yes "" | $(MAKE) oldconfig
+
define archhelp
echo '* bzImage - Compressed kernel image (arch/x86/boot/bzImage)'
echo ' install - Install kernel using'
@@ -233,4 +238,5 @@ define archhelp
echo ' bzdisk/fdimage*/isoimage also accept:'
echo ' FDARGS="..." arguments for the booted kernel'
echo ' FDINITRD=file initrd for the booted kernel'
+ echo ' kvmconfig - Enable additional options for guest kernel support'
endef
diff --git a/arch/x86/configs/kvm_guest.config b/arch/x86/configs/kvm_guest.config
new file mode 100644
index 0000000..f9affcc
--- /dev/null
+++ b/arch/x86/configs/kvm_guest.config
@@ -0,0 +1,28 @@
+CONFIG_NET=y
+CONFIG_NET_CORE=y
+CONFIG_NETDEVICES=y
+CONFIG_BLOCK=y
+CONFIG_BLK_DEV=y
+CONFIG_NETWORK_FILESYSTEMS=y
+CONFIG_INET=y
+CONFIG_TTY=y
+CONFIG_SERIAL_8250=y
+CONFIG_SERIAL_8250_CONSOLE=y
+CONFIG_IP_PNP=y
+CONFIG_IP_PNP_DHCP=y
+CONFIG_BINFMT_ELF=y
+CONFIG_PCI=y
+CONFIG_PCI_MSI=y
+CONFIG_DEBUG_KERNEL=y
+CONFIG_VIRTUALIZATION=y
+CONFIG_HYPERVISOR_GUEST=y
+CONFIG_PARAVIRT=y
+CONFIG_KVM_GUEST=y
+CONFIG_VIRTIO=y
+CONFIG_VIRTIO_PCI=y
+CONFIG_VIRTIO_BLK=y
+CONFIG_VIRTIO_CONSOLE=y
+CONFIG_VIRTIO_NET=y
+CONFIG_9P_FS=y
+CONFIG_NET_9P=y
+CONFIG_NET_9P_VIRTIO=y
next prev parent reply other threads:[~2013-05-28 13:40 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 18:19 [PATCH] x86: Add a Kconfig shortcut for a kvm-bootable kernel Borislav Petkov
2013-04-12 20:08 ` Randy Dunlap
2013-04-14 9:31 ` Pekka Enberg
2013-04-14 11:03 ` Borislav Petkov
2013-04-16 16:18 ` Borislav Petkov
2013-04-17 0:38 ` Sasha Levin
2013-04-17 7:50 ` Borislav Petkov
2013-04-17 23:25 ` Marcelo Tosatti
2013-04-18 9:46 ` Borislav Petkov
2013-04-18 9:55 ` Geert Uytterhoeven
2013-04-18 10:18 ` Borislav Petkov
2013-04-18 13:36 ` Marcelo Tosatti
2013-04-19 10:35 ` Borislav Petkov
2013-04-26 0:05 ` [PATCH -v2] x86: Add a Kconfig shortcut for kvm guest kernel Borislav Petkov
2013-04-26 6:42 ` Ingo Molnar
2013-04-26 9:51 ` [PATCH -v2.1] " Borislav Petkov
2013-04-30 16:49 ` [tip:x86/urgent] x86/kconfig: Add a Kconfig shortcut for building working KVM guest kernels tip-bot for Borislav Petkov
2013-05-01 19:53 ` David Rientjes
2013-05-01 20:35 ` Borislav Petkov
2013-05-01 21:00 ` David Rientjes
2013-05-01 21:10 ` Borislav Petkov
2013-05-01 21:30 ` David Rientjes
2013-05-01 21:56 ` Borislav Petkov
2013-05-01 22:09 ` David Rientjes
2013-05-01 22:28 ` Borislav Petkov
2013-05-01 22:37 ` David Rientjes
2013-05-01 23:02 ` Borislav Petkov
2013-05-01 23:04 ` H. Peter Anvin
2013-05-01 23:09 ` Borislav Petkov
2013-05-01 23:16 ` H. Peter Anvin
2013-05-01 23:23 ` Borislav Petkov
2013-05-02 7:06 ` Ingo Molnar
2013-05-02 17:31 ` H. Peter Anvin
2013-05-02 19:43 ` Ingo Molnar
2013-05-02 19:48 ` Borislav Petkov
2013-05-01 23:16 ` David Rientjes
2013-05-01 23:35 ` Borislav Petkov
2013-05-02 0:07 ` David Rientjes
2013-05-02 7:08 ` Ingo Molnar
2013-05-02 7:16 ` David Rientjes
2013-05-01 13:19 ` [PATCH -v2.1] x86: Add a Kconfig shortcut for kvm guest kernel Marcelo Tosatti
2013-05-01 23:21 ` Borislav Petkov
2013-05-02 17:23 ` [tip:x86/urgent] x86/kconfig: Add a Kconfig shortcut for building working KVM guest kernels tip-bot for Borislav Petkov
2013-05-02 18:06 ` David Rientjes
2013-05-02 18:07 ` H. Peter Anvin
2013-05-02 18:19 ` David Rientjes
2013-05-02 19:45 ` Ingo Molnar
2013-05-02 20:07 ` Borislav Petkov
2013-05-03 14:29 ` Borislav Petkov
2013-05-03 14:54 ` Randy Dunlap
2013-05-03 15:08 ` Borislav Petkov
2013-05-03 15:06 ` H. Peter Anvin
2013-05-03 15:10 ` Michal Marek
2013-05-03 15:31 ` Borislav Petkov
2013-05-03 16:53 ` David Rientjes
2013-05-03 17:10 ` H. Peter Anvin
2013-05-03 17:19 ` David Rientjes
2013-05-03 19:09 ` H. Peter Anvin
2013-05-03 23:36 ` Borislav Petkov
2013-05-22 14:46 ` [PATCH -v2] x86: Add a kvm config file Borislav Petkov
2013-05-22 17:55 ` Pekka Enberg
2013-05-28 13:39 ` tip-bot for Borislav Petkov [this message]
2013-06-21 8:04 ` [PATCH] x86/platform: Add kvmconfig to the phony targets Borislav Petkov
2013-06-23 11:02 ` [tip:x86/platform] " tip-bot for Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-46ff53874bd935ab9955dee56d60212857e89bf3@git.kernel.org \
--to=tipbot@zytor.com \
--cc=bp@alien8.de \
--cc=bp@suse.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=mmarek@suse.cz \
--cc=penberg@kernel.org \
--cc=rdunlap@infradead.org \
--cc=rientjes@google.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).