]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: x86: cleanup kvm_inject_emulated_page_fault
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 25 Mar 2020 16:50:03 +0000 (12:50 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Apr 2020 21:26:05 +0000 (17:26 -0400)
commit0cd665bd20f9088d363158b4ac75592af18ecf4f
treec6c950d8a402dc074e9edd19ecb3d512d28cc1cf
parent5efac0741ce238e0844d3f7af00198f81e84926a
KVM: x86: cleanup kvm_inject_emulated_page_fault

To reconstruct the kvm_mmu to be used for page fault injection, we
can simply use fault->nested_page_fault.  This matches how
fault->nested_page_fault is assigned in the first place by
FNAME(walk_addr_generic).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h
arch/x86/kvm/x86.c