summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-11-25 11:33:58 +0300
committerSean Christopherson <seanjc@google.com>2023-12-01 18:52:08 +0300
commit484dd27c0602e01cb49db362ad42b95e70912d43 (patch)
treead31e8a1716adac82a5a65c1c1357e35ff39cf21 /arch/x86/include/asm/kvm_host.h
parent5f3c8c9187b6fa8675951f9fad5b99b11fed21f6 (diff)
downloadlinux-484dd27c0602e01cb49db362ad42b95e70912d43.tar.xz
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 'arch/x86/include/asm/kvm_host.h')
0 files changed, 0 insertions, 0 deletions