From: Dave Hansen Date: Mon, 11 Aug 2008 17:01:49 +0000 (-0700) Subject: KVM: Reduce stack usage in kvm_pv_mmu_op() X-Git-Tag: v2.6.28-rc1~269^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ad18fba05228fb1d47cdbc0339fe8b3fca1ca26;p=pandora-kernel.git KVM: Reduce stack usage in kvm_pv_mmu_op() 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 --- Reading git-diff-tree failed