KVM: MMU: Optimize page unshadowing
authorAvi Kivity <avi@redhat.com>
Tue, 6 Jan 2009 11:00:27 +0000 (13:00 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:02 +0000 (11:03 +0200)
commit4677a3b693e035f186e2875259b9a0bb94c42fbe
treebd5aec1050ee534ef9e9dc5c8628f81bf815a96c
parentc8a73f186bf62235b6fb5dd52601d641917dd50b
KVM: MMU: Optimize page unshadowing

Using kvm_mmu_lookup_page() will result in multiple scans of the hash chains;
use hlist_for_each_entry_safe() to achieve a single scan instead.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c