KVM: MMU: drop zeroing on mmu_memory_cache_alloc
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 8 Jan 2009 19:44:19 +0000 (17:44 -0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:03:04 +0000 (11:03 +0200)
commit9903a927a4aea4b1ea42356a8453fca664df0b18
treeef37f4db8da36c2dccda4b75568a80a9c582250c
parentff81ff10b4417952919dcc0bd67effa9ceb411c0
KVM: MMU: drop zeroing on mmu_memory_cache_alloc

Zeroing on mmu_memory_cache_alloc is unnecessary since:

- Smaller areas are pre-allocated with kmem_cache_zalloc.
- Page pointed by ->spt is overwritten with prefetch_page
  and entries in page pointed by ->gfns are initialized
  before reading.

[avi: zeroing pages is unnecessary]

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