]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fix vcpu freeing for guest smp
authorAvi Kivity <avi@qumranet.com>
Tue, 5 Jun 2007 09:17:03 +0000 (12:17 +0300)
committerAvi Kivity <avi@qumranet.com>
Mon, 16 Jul 2007 09:05:45 +0000 (12:05 +0300)
commite936e6f447288ce71e3cbd5c1c64ae025b23ebc3
treed2020d70e6578f0d6405cba3f3b5a1ccdc62a581
parentc16d9d16faedb82136fb2f94e100a389cc0b4a89
KVM: Fix vcpu freeing for guest smp

A vcpu can pin up to four mmu shadow pages, which means the freeing
loop will never terminate.  Fix by first unpinning shadow pages on
all vcpus, then freeing shadow pages.

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