]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit7b53aa56508479507c6e5667bb252ca7c2cd19cf
treed2020d70e6578f0d6405cba3f3b5a1ccdc62a581
parent313899477f7578d37e82ead1af10f794a6da3c90
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