KVM: x86/mmu: Move the check in FNAME(sync_page) as kvm_sync_page_check()
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Thu, 16 Feb 2023 15:41:08 +0000 (23:41 +0800)
committerSean Christopherson <seanjc@google.com>
Thu, 16 Mar 2023 19:42:15 +0000 (12:42 -0700)
commit90e444702a7c2e5d5806260735476d9bba0b598d
treec0dbe61677c1495ee563b5a40f2195bf57af8a80
parent753b43c9d1b73337610861a6e644f8df3635d656
KVM: x86/mmu: Move the check in FNAME(sync_page) as kvm_sync_page_check()

Prepare to check mmu->sync_page pointer before calling it.

Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Link: https://lore.kernel.org/r/20230216154115.710033-3-jiangshanlai@gmail.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h