]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
KVM: Reduce stack usage in kvm_pv_mmu_op()
authorDave Hansen <dave@linux.vnet.ibm.com>
Mon, 11 Aug 2008 17:01:49 +0000 (10:01 -0700)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:18 +0000 (10:15 +0200)
commit6ad18fba05228fb1d47cdbc0339fe8b3fca1ca26
tree4b64607dad75aa55dd397784d469d03244f0dfe7
parentb772ff362ec6b821c8a5227a3355e263f917bfad
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 <dave@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
include/asm-x86/kvm_host.h