KVM: x86: MMU: Move initialization of parent_ptes out from kvm_mmu_alloc_page()
authorTakuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Fri, 20 Nov 2015 08:46:29 +0000 (17:46 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Nov 2015 16:27:06 +0000 (17:27 +0100)
commit4700579241d2d587765a58dddd1b2a89902767c0
tree614e2e96dd8acc2d8f84ee48ad80db91e8f6928b
parent77fbbbd2f09fae486190bb2bd7142647dc2a6e8b
KVM: x86: MMU: Move initialization of parent_ptes out from kvm_mmu_alloc_page()

Make kvm_mmu_alloc_page() do just what its name tells to do, and remove
the extra allocation error check and zero-initialization of parent_ptes:
shadow page headers allocated by kmem_cache_zalloc() are always in the
per-VCPU pools.

Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c