diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-02 19:29:48 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-02 19:29:48 -0400 |
| commit | 52e8ad9066b57510e600acc4bbc4455a81732c6c (patch) | |
| tree | b0f0eda0e51561964c7702f96d39c7ddb7858b1c | |
| parent | 1982269a5c51c70cddceb8d157f07b522aee0a2d (diff) | |
| parent | cb7b80237a9f41edf2ebd899bc6a443db05578c5 (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/Kconfig | 2 | ||||
| -rw-r--r-- | arch/x86/Makefile | 7 | ||||
| -rw-r--r-- | arch/x86/configs/kvm_guest.config | 28 |
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 | |||
| 410 | config X86_GOLDFISH | 411 | config 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 | ||
| 223 | PHONY += kvmconfig | ||
| 224 | kvmconfig: | ||
| 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 | |||
| 223 | define archhelp | 229 | define 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' | ||
| 236 | endef | 243 | endef |
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 @@ | |||
| 1 | CONFIG_NET=y | ||
| 2 | CONFIG_NET_CORE=y | ||
| 3 | CONFIG_NETDEVICES=y | ||
| 4 | CONFIG_BLOCK=y | ||
| 5 | CONFIG_BLK_DEV=y | ||
| 6 | CONFIG_NETWORK_FILESYSTEMS=y | ||
| 7 | CONFIG_INET=y | ||
| 8 | CONFIG_TTY=y | ||
| 9 | CONFIG_SERIAL_8250=y | ||
| 10 | CONFIG_SERIAL_8250_CONSOLE=y | ||
| 11 | CONFIG_IP_PNP=y | ||
| 12 | CONFIG_IP_PNP_DHCP=y | ||
| 13 | CONFIG_BINFMT_ELF=y | ||
| 14 | CONFIG_PCI=y | ||
| 15 | CONFIG_PCI_MSI=y | ||
| 16 | CONFIG_DEBUG_KERNEL=y | ||
| 17 | CONFIG_VIRTUALIZATION=y | ||
| 18 | CONFIG_HYPERVISOR_GUEST=y | ||
| 19 | CONFIG_PARAVIRT=y | ||
| 20 | CONFIG_KVM_GUEST=y | ||
| 21 | CONFIG_VIRTIO=y | ||
| 22 | CONFIG_VIRTIO_PCI=y | ||
| 23 | CONFIG_VIRTIO_BLK=y | ||
| 24 | CONFIG_VIRTIO_CONSOLE=y | ||
| 25 | CONFIG_VIRTIO_NET=y | ||
| 26 | CONFIG_9P_FS=y | ||
| 27 | CONFIG_NET_9P=y | ||
| 28 | CONFIG_NET_9P_VIRTIO=y | ||
