Skip to contentSkip to conversation

powerpc: Make KVM_GUEST default to n

PATCH In review Anton Blanchard 2 participants 2 messages Aug 5, 2011 – Aug 9, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Make KVM_GUEST default to n

KVM_GUEST adds a 1 MB array to the kernel (kvm_tmp) which grew my kernel enough to cause it to fail to boot.

Dynamically allocating or reducing the size of this array is a good idea, but in the meantime I think it makes sense to make KVM_GUEST default to n in order to minimise surprises.

---

arch/powerpc/platforms/Kconfig +1 -1
Index: linux-powerpc/arch/powerpc/platforms/Kconfig
===================================================================
@@ -24,7 +24,7 @@ source "arch/powerpc/platforms/wsp/Kconf
 
 config KVM_GUEST
 	bool "KVM Guest support"
-	default y
+	default n
 	---help---
 	  This option enables various optimizations for running under the KVM
 	  hypervisor. Overhead for the kernel when not running inside KVM should
#1 lore raw
Quoted 8 lines · Anton Blanchard

KVM_GUEST adds a 1 MB array to the kernel (kvm_tmp) which grew my kernel enough to cause it to fail to boot.

Dynamically allocating or reducing the size of this array is a good idea, but in the meantime I think it makes sense to make KVM_GUEST default to n in order to minimise surprises.

Hrm - the idea was that the code is so little intrusive that it could simply always be enabled. But yeah, maybe this should be default n.

Ben, could you please pull this into your ppc tree for now? I don't think I'll manage to clean up my tree and send out a pull request before KVM Forum.

Alex

Quoted 15 lines

---

Index: linux-powerpc/arch/powerpc/platforms/Kconfig
===================================================================

arch/powerpc/platforms/Kconfig +1 -1
@@ -24,7 +24,7 @@ source "arch/powerpc/platforms/wsp/Kconf
 
  config KVM_GUEST
  	bool "KVM Guest support"
-	default y
+	default n
  	---help---
  	  This option enables various optimizations for running under the KVM
  	  hypervisor. Overhead for the kernel when not running inside KVM should