diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-10-28 18:16:58 -0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-11-11 20:53:34 +0200 |
commit | c41ef344de212bd918f7765af21b5008628c03e0 (patch) | |
tree | 036f03910d6ee4edb46d12df751eeb7e6db2e671 /arch | |
parent | 3ad4f597058301c97f362e500a32f63f5c950a45 (diff) | |
download | linux-c41ef344de212bd918f7765af21b5008628c03e0.tar.gz linux-c41ef344de212bd918f7765af21b5008628c03e0.tar.bz2 linux-c41ef344de212bd918f7765af21b5008628c03e0.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 2a5e64881d9b..f1983d9477cd 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -314,7 +314,7 @@ static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu) if (r) goto out; r = mmu_topup_memory_cache(&vcpu->arch.mmu_rmap_desc_cache, - rmap_desc_cache, 1); + rmap_desc_cache, 4); if (r) goto out; r = mmu_topup_memory_cache_page(&vcpu->arch.mmu_page_cache, 8); |