diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-11-25 03:33:58 -0500 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2023-12-01 07:52:08 -0800 |
commit | 484dd27c0602e01cb49db362ad42b95e70912d43 (patch) | |
tree | ad31e8a1716adac82a5a65c1c1357e35ff39cf21 /Documentation/core-api | |
parent | 5f3c8c9187b6fa8675951f9fad5b99b11fed21f6 (diff) |
KVM: x86/mmu: remove unnecessary "bool shared" argument from iterators
The "bool shared" argument is more or less unnecessary in the
for_each_*_tdp_mmu_root_yield_safe() macros. Many users check for
the lock before calling it; all of them either call small functions
that do the check, or end up calling tdp_mmu_set_spte_atomic() and
tdp_mmu_iter_set_spte(). Add a few assertions to make up for the
lost check in for_each_*_tdp_mmu_root_yield_safe(), but even this
is probably overkill and mostly for documentation reasons.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Link: https://lore.kernel.org/r/20231125083400.1399197-3-pbonzini@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'Documentation/core-api')
0 files changed, 0 insertions, 0 deletions