diff options
author | Vipin Sharma <[email protected]> | 2023-03-21 15:00:09 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-04-04 12:37:30 -0700 |
commit | 41e07665f1a683064f4c69b0d652dff1baf5d689 (patch) | |
tree | c4afdb7b81cbacd4c969703e4e8d8167d765056d /lib/mpi/mpi-mod.c | |
parent | 50f13998451effea5c5fdc70fe576f8b435d6224 (diff) |
KVM: x86/mmu: Add a helper function to check if an SPTE needs atomic write
Move conditions in kvm_tdp_mmu_write_spte() to check if an SPTE should
be written atomically or not to a separate function.
This new function, kvm_tdp_mmu_spte_need_atomic_write(), will be used
in future commits to optimize clearing bits in SPTEs.
Signed-off-by: Vipin Sharma <[email protected]>
Reviewed-by: David Matlack <[email protected]>
Reviewed-by: Ben Gardon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions