From: Dave Hansen Date: Thu, 6 Aug 2009 17:39:52 +0000 (-0300) Subject: KVM: Reduce stack usage in kvm_pv_mmu_op() X-Git-Tag: v2.6.27.32~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea618866ead0126be93107cdf700b43e7c1854f3;p=pandora-kernel.git KVM: Reduce stack usage in kvm_pv_mmu_op() (cherry picked from commit 6ad18fba05228fb1d47cdbc0339fe8b3fca1ca26) We're in a hot path. We can't use kmalloc() because it might impact performance. So, we just stick the buffer that we need into the kvm_vcpu_arch structure. This is used very often, so it is not really a waste. We also have to move the buffer structure's definition to the arch-specific x86 kvm header. Signed-off-by: Dave Hansen Signed-off-by: Avi Kivity Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed