aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-07-02 19:29:48 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-02 19:29:48 -0400
commit52e8ad9066b57510e600acc4bbc4455a81732c6c (patch)
treeb0f0eda0e51561964c7702f96d39c7ddb7858b1c
parent1982269a5c51c70cddceb8d157f07b522aee0a2d (diff)
parentcb7b80237a9f41edf2ebd899bc6a443db05578c5 (diff)
Merge branch 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 platform updates from Ingo Molnar: "Two changes: - A Kconfig dependency fix/cleanup - Introduce the 'make kvmconfig' KVM configuration helper utility that turns the current .config into a KVM-bootable config. Useful for debugging specific native kernel configs that have no KVM config options enabled on VM setups." * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/platform: Make X86_GOLDFISH depend on X86_EXTENDED_PLATFORM x86/platform: Add kvmconfig to the phony targets x86, platform, kvm, kconfig: Turn existing .config's into KVM-capable configs
-rw-r--r--arch/x86/Kconfig2
-rw-r--r--arch/x86/Makefile7
-rw-r--r--arch/x86/configs/kvm_guest.config28
3 files changed, 37 insertions, 0 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 34d1db1e7f40..d98b665e6536 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -336,6 +336,7 @@ config X86_EXTENDED_PLATFORM
336 336
337 If you enable this option then you'll be able to select support 337 If you enable this option then you'll be able to select support
338 for the following (non-PC) 32 bit x86 platforms: 338 for the following (non-PC) 32 bit x86 platforms:
339 Goldfish (Android emulator)
339 AMD Elan 340 AMD Elan
340 NUMAQ (IBM/Sequent) 341 NUMAQ (IBM/Sequent)
341 RDC R-321x SoC 342 RDC R-321x SoC
@@ -410,6 +411,7 @@ config X86_UV
410config X86_GOLDFISH 411config X86_GOLDFISH
411 bool "Goldfish (Virtual Platform)" 412 bool "Goldfish (Virtual Platform)"
412 depends on X86_32 413 depends on X86_32
414 depends on X86_EXTENDED_PLATFORM
413 ---help--- 415 ---help---
414 Enable support for the Goldfish virtual platform used primarily 416 Enable support for the Goldfish virtual platform used primarily
415 for Android development. Unless you are building for the Android 417 for Android development. Unless you are building for the Android
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 5c477260294f..07639c656fcd 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -220,6 +220,12 @@ archclean:
220 $(Q)$(MAKE) $(clean)=$(boot) 220 $(Q)$(MAKE) $(clean)=$(boot)
221 $(Q)$(MAKE) $(clean)=arch/x86/tools 221 $(Q)$(MAKE) $(clean)=arch/x86/tools
222 222
223PHONY += kvmconfig
224kvmconfig:
225 $(if $(wildcard $(objtree)/.config),, $(error You need an existing .config for this target))
226 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m -O $(objtree) $(objtree)/.config arch/x86/configs/kvm_guest.config
227 $(Q)yes "" | $(MAKE) oldconfig
228
223define archhelp 229define archhelp
224 echo '* bzImage - Compressed kernel image (arch/x86/boot/bzImage)' 230 echo '* bzImage - Compressed kernel image (arch/x86/boot/bzImage)'
225 echo ' install - Install kernel using' 231 echo ' install - Install kernel using'
@@ -233,4 +239,5 @@ define archhelp
233 echo ' bzdisk/fdimage*/isoimage also accept:' 239 echo ' bzdisk/fdimage*/isoimage also accept:'
234 echo ' FDARGS="..." arguments for the booted kernel' 240 echo ' FDARGS="..." arguments for the booted kernel'
235 echo ' FDINITRD=file initrd for the booted kernel' 241 echo ' FDINITRD=file initrd for the booted kernel'
242 echo ' kvmconfig - Enable additional options for guest kernel support'
236endef 243endef
diff --git a/arch/x86/configs/kvm_guest.config b/arch/x86/configs/kvm_guest.config
new file mode 100644
index 000000000000..f9affcc3b9f1
--- /dev/null
+++ b/arch/x86/configs/kvm_guest.config
@@ -0,0 +1,28 @@
1CONFIG_NET=y
2CONFIG_NET_CORE=y
3CONFIG_NETDEVICES=y
4CONFIG_BLOCK=y
5CONFIG_BLK_DEV=y
6CONFIG_NETWORK_FILESYSTEMS=y
7CONFIG_INET=y
8CONFIG_TTY=y
9CONFIG_SERIAL_8250=y
10CONFIG_SERIAL_8250_CONSOLE=y
11CONFIG_IP_PNP=y
12CONFIG_IP_PNP_DHCP=y
13CONFIG_BINFMT_ELF=y
14CONFIG_PCI=y
15CONFIG_PCI_MSI=y
16CONFIG_DEBUG_KERNEL=y
17CONFIG_VIRTUALIZATION=y
18CONFIG_HYPERVISOR_GUEST=y
19CONFIG_PARAVIRT=y
20CONFIG_KVM_GUEST=y
21CONFIG_VIRTIO=y
22CONFIG_VIRTIO_PCI=y
23CONFIG_VIRTIO_BLK=y
24CONFIG_VIRTIO_CONSOLE=y
25CONFIG_VIRTIO_NET=y
26CONFIG_9P_FS=y
27CONFIG_NET_9P=y
28CONFIG_NET_9P_VIRTIO=y