KVM: MMU: limit rmap chain length
commit14596338f2a9ad1f461f2683d41a8bc279962c40
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 1 Sep 2009 15:15:13 +0000 (1 12:15 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:37 +0000 (8 20:33 -0700)
tree634e1f17409d7725af8672d32a85fb10f0709710
parent64fdbdd67cf0779b79ba763ee3b4d1ca560006d1
KVM: MMU: limit rmap chain length

(cherry picked from commit 53a27b39ff4d2492f84b1fdc2f0047175f0b0b93)

Otherwise the host can spend too long traversing an rmap chain, which
happens under a spinlock.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c