]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] KVM: MMU: Replace atomic allocations by preallocated objects
authorAvi Kivity <avi@qumranet.com>
Sat, 6 Jan 2007 00:36:53 +0000 (16:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 6 Jan 2007 07:55:27 +0000 (23:55 -0800)
commit52a58f607f43d02c06c57fbd8cb04ed043533fde
tree619f30567c9e13b79830301023bef58b98b8f433
parentaaf39abdc52912529931d52a6b3cf04450ee162f
[PATCH] KVM: MMU: Replace atomic allocations by preallocated objects

The mmu sometimes needs memory for reverse mapping and parent pte chains.
however, we can't allocate from within the mmu because of the atomic context.

So, move the allocations to a central place that can be executed before the
main mmu machinery, where we can bail out on failure before any damage is
done.

(error handling is deffered for now, but the basic structure is there)

Signed-off-by: Avi Kivity <avi@qumranet.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/mmu.c
drivers/kvm/paging_tmpl.h