KVM: MMU: increase per-vcpu rmap cache alloc size
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 6 Aug 2009 17:39:55 +0000 (14:39 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:17:14 +0000 (20:17 -0700)
commit6bbd18645e02de44d024e738bb1469ef0977f7f6
treec6c5495c9cdbbedc53e00704ea17bdc46572c118
parent12daed95faec51a60736776a35ce4b0d1541c346
KVM: MMU: increase per-vcpu rmap cache alloc size

(cherry picked from commit c41ef344de212bd918f7765af21b5008628c03e0)

The page fault path can use two rmap_desc structures, if:

- walk_addr's dirty pte update allocates one rmap_desc.
- mmu_lock is dropped, sptes are zapped resulting in rmap_desc being
  freed.
- fetch->mmu_set_spte allocates another rmap_desc.

Increase to 4 for safety.

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