summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/mmu/mmu.c
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-03-20 14:28:01 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-04-15 12:08:50 -0400
commit53b3d8e9d57753295b33065f80b1e2fb4fcb946d (patch)
treeb31d3a5f8715910f4513d6ecec1ef3c20d82e10e /arch/x86/kvm/mmu/mmu.c
parentd6e3f8385d27e6357221e01158fdd369f762cd0f (diff)
downloadlwn-53b3d8e9d57753295b33065f80b1e2fb4fcb946d.tar.gz
lwn-53b3d8e9d57753295b33065f80b1e2fb4fcb946d.zip
KVM: x86: Export kvm_propagate_fault() (as kvm_inject_emulated_page_fault)
Export the page fault propagation helper so that VMX can use it to correctly emulate TLB invalidation on page faults in an upcoming patch. In the (hopefully) not-too-distant future, SGX virtualization will also want access to the helper for injecting page faults to the correct level (L1 vs. L2) when emulating ENCLS instructions. Rename the function to kvm_inject_emulated_page_fault() to clarify that it is (a) injecting a fault and (b) only for page faults. WARN if it's invoked with an exception other than PF_VECTOR. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Message-Id: <20200320212833.3507-6-sean.j.christopherson@intel.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu/mmu.c')
0 files changed, 0 insertions, 0 deletions