KVM: MMU: increase per-vcpu rmap cache alloc size
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 28 Oct 2008 20:16:58 +0000 (18:16 -0200)
committerAvi Kivity <avi@redhat.com>
Tue, 11 Nov 2008 18:53:34 +0000 (20:53 +0200)
commitc41ef344de212bd918f7765af21b5008628c03e0
tree036f03910d6ee4edb46d12df751eeb7e6db2e671
parent3ad4f597058301c97f362e500a32f63f5c950a45
KVM: MMU: increase per-vcpu rmap cache alloc size

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>
arch/x86/kvm/mmu.c