KVM: MMU: Consolidate two guest pte reads in kvm_mmu_pte_write()
authorAvi Kivity <avi@redhat.com>
Mon, 15 Mar 2010 11:59:53 +0000 (13:59 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:37 +0000 (12:15 +0300)
commit72016f3a4221799a0b1fdf443ef6e29db572a9bb
treeba1d110deb5e714ea39bd3c3ea4b1dcbd81352e9
parentd57e2c0740bbdd768dcbafe58cf62174f31d7c2d
KVM: MMU: Consolidate two guest pte reads in kvm_mmu_pte_write()

kvm_mmu_pte_write() reads guest ptes in two different occasions, both to
allow a 32-bit pae guest to update a pte with 4-byte writes.  Consolidate
these into a single read, which also allows us to consolidate another read
from an invlpg speculating a gpte into the shadow page table.

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