diff options
author | Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp> | 2016-02-22 17:23:41 +0900 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-23 14:20:27 +0100 |
commit | e9ee956e311d3d0a1506995b98e8de0b30773e1a (patch) | |
tree | 22a743413d6cb366f6ecd690d04a47b664720ba7 /virt/kvm/kvm_main.c | |
parent | ded5874946baa15b56b531f638f9c706266deb7b (diff) | |
download | lwn-e9ee956e311d3d0a1506995b98e8de0b30773e1a.tar.gz lwn-e9ee956e311d3d0a1506995b98e8de0b30773e1a.zip |
KVM: x86: MMU: Move handle_mmio_page_fault() call to kvm_mmu_page_fault()
Rather than placing a handle_mmio_page_fault() call in each
vcpu->arch.mmu.page_fault() handler, moving it up to
kvm_mmu_page_fault() makes the code better:
- avoids code duplication
- for kvm_arch_async_page_ready(), which is the other caller of
vcpu->arch.mmu.page_fault(), removes an extra error_code check
- avoids returning both RET_MMIO_PF_* values and raw integer values
from vcpu->arch.mmu.page_fault()
Signed-off-by: Takuya Yoshikawa <yoshikawa_takuya_b1@lab.ntt.co.jp>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions