]> err.no Git - linux-2.6/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)
commit90cb0529dd230548a7f0d6b315997be854caea1b
tree31aad8e119781b7df846a8f8d8522a82ff3e4b25
parentd55e2cb20123cdb5020ec4a2b2f1eace5038c292
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