]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM/x86: add comment to kvm_mmu_do_page_fault()
authorJuergen Gross <jgross@suse.com>
Fri, 8 Nov 2024 16:14:16 +0000 (17:14 +0100)
committerSean Christopherson <seanjc@google.com>
Mon, 16 Dec 2024 23:27:34 +0000 (15:27 -0800)
commit2d5faa6a8402435d6332e8e8f3c3f18cca382d83
treefc4bef208974c3a51c9fbe1bfba13713eacc3fac
parent3522c419758ee8dca5a0e8753ee0070a22157bc1
KVM/x86: add comment to kvm_mmu_do_page_fault()

On a first glance it isn't obvious why calling kvm_tdp_page_fault() in
kvm_mmu_do_page_fault() is special cased, as the general case of using
an indirect case would result in calling of kvm_tdp_page_fault()
anyway.

Add a comment to explain the reason.

Signed-off-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20241108161416.28552-1-jgross@suse.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu_internal.h