diff options
author | Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp> | 2015-11-26 21:14:34 +0900 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-11-26 15:31:24 +0100 |
commit | 98bba238429e200521594ed30dd1edad7faa0081 (patch) | |
tree | 75ebdc6beeab527a48e78760deb9c7b865dba98f /arch/c6x | |
parent | 4700579241d2d587765a58dddd1b2a89902767c0 (diff) | |
download | op-kernel-dev-98bba238429e200521594ed30dd1edad7faa0081.zip op-kernel-dev-98bba238429e200521594ed30dd1edad7faa0081.tar.gz |
KVM: x86: MMU: Move parent_pte handling from kvm_mmu_get_page() to link_shadow_page()
Every time kvm_mmu_get_page() is called with a non-NULL parent_pte
argument, link_shadow_page() follows that to set the parent entry so
that the new mapping will point to the returned page table.
Moving parent_pte handling there allows to clean up the code because
parent_pte is passed to kvm_mmu_get_page() just for mark_unsync() and
mmu_page_add_parent_pte().
In addition, the patch avoids calling mark_unsync() for other parents in
the sp->parent_ptes chain than the newly added parent_pte, because they
have been there since before the current page fault handling started.
Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/c6x')
0 files changed, 0 insertions, 0 deletions