Skip to content
Commit 19ace7d6 authored by Lai Jiangshan's avatar Lai Jiangshan Committed by Sean Christopherson
Browse files

KVM: x86/mmu: Skip calling mmu->sync_spte() when the spte is 0



Sync the spte only when the spte is set and avoid the indirect branch.

Signed-off-by: default avatarLai Jiangshan <jiangshan.ljs@antgroup.com>
Link: https://lore.kernel.org/r/20230216235321.735214-5-jiangshanlai@gmail.com


[sean: add wrapper instead of open coding each check]
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 91ca7672
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment