]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fix memory slot management functions for guest smp
authorAvi Kivity <avi@qumranet.com>
Tue, 17 Jul 2007 10:04:56 +0000 (13:04 +0300)
committerAvi Kivity <avi@qumranet.com>
Fri, 20 Jul 2007 17:16:29 +0000 (20:16 +0300)
commit0f63d0022e2ce6eb5d1a32614af006ee16ad1a0d
tree31aad8e119781b7df846a8f8d8522a82ff3e4b25
parent928b1c0df1941f704d9c170b0d9d7c66c8736cfb
KVM: Fix memory slot management functions for guest smp

The memory slot management functions were oriented against vcpu 0, where
they should be kvm-wide.  This causes hangs starting X on guest smp.

Fix by making the functions (and resultant tail in the mmu) non-vcpu-specific.
Unfortunately this reduces the efficiency of the mmu object cache a bit.  We
may have to revisit this later.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/mmu.c