linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: Add a Kconfig shortcut for a kvm-bootable kernel
@ 2013-04-12 18:19 Borislav Petkov
  2013-04-12 20:08 ` Randy Dunlap
  2013-04-14  9:31 ` Pekka Enberg
  0 siblings, 2 replies; 64+ messages in thread
From: Borislav Petkov @ 2013-04-12 18:19 UTC (permalink / raw)
  To: Ingo Molnar, H. Peter Anvin
  Cc: Pekka Enberg, Sasha Levin, Fengguang Wu, lkml, x86-ml

Right,

so I'm currently experimenting with my randconfig build scripts and
thought that maybe it would be a cool thing to not only do the random
builds only but also boot-test them in kvm. Which reminded me that we
have that KVMTOOL_TEST_ENABLE config option in the kvmtool with which we
can select all the stuff needed to boot the kernel in kvm.

So I copied it. I now have an all.config in the repo with
CONFIG_KVM_TEST_ENABLE=y in it so that the random builds can have the
required support.

So what do people think?

It is pretty helpful for such testing; AFAICT Fengguang is doing his
testing with kvm so he probably could use it too. And regardless, there
are more and more reasons to boot the kernel in kvm so having a single
option which selects the needed support makes more sense with time.

And I haven't picked up the 'make kvmconfig' functionality because it
is not strictly needed (yet) but it wouldn't hurt if we took it because
someone has a good reason for needing it.

Thanks.

--
>From efa9a7f7a460bc46d1dd37b691afa88070a34059 Mon Sep 17 00:00:00 2001
From: Borislav Petkov <bp@suse.de>
Date: Fri, 12 Apr 2013 20:01:47 +0200
Subject: [PATCH] x86: Add a Kconfig shortcut for a kvm-bootable 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 all stuff which is required to boot the resulting kernel
in the guest.

Originally-by: Pekka Enberg <penberg@kernel.org>
Originally-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Fengguang Wu <fengguang.wu@intel.com>
---
 arch/x86/Kconfig | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 70c0f3da0476..3ca241172812 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -596,6 +596,43 @@ config SCHED_OMIT_FRAME_POINTER
 
 	  If in doubt, say "Y".
 
+config KVM_TEST_ENABLE
+	bool "Enable options for a kernel suitable for testing in kvm"
+	select NET
+	select NETDEVICES
+	select PCI
+	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 stuff which is required for booting the kernel as a guest
+	  in qemu/kvm. This entails basic stuff like serial support, kgdb
+	  9p virtio and other basic functionality so that you can be able
+	  to have serial output from the guest, networking, etc.
+
 menuconfig PARAVIRT_GUEST
 	bool "Paravirtualized guest support"
 	---help---
-- 
1.8.2.135.g7b592fa

-- 
Regards/Gruss,
    Boris.

Sent from a fat crate under my desk. Formatting is fine.
--

^ permalink raw reply related	[flat|nested] 64+ messages in thread

end of thread, other threads:[~2013-06-23 11:02 UTC | newest]

Thread overview: 64+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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:x86/platform] x86, platform, kvm, kconfig: Turn existing .config's into KVM-capable configs tip-bot for Borislav Petkov
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

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).