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)
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>

No differences found