diff options
author | Sean Christopherson <[email protected]> | 2024-10-10 11:24:00 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2024-10-25 13:00:48 -0400 |
commit | 9c902aee686979d9460d8bd0cabcf2fa0195d7d9 (patch) | |
tree | 5692c719da6addbea3a086c49fa466a2a30b414c /tools/perf/scripts/python/parallel-perf.py | |
parent | 9b3639bb02fb98a664110836147a03b45c83ed94 (diff) |
KVM: RISC-V: Mark "struct page" pfns accessed before dropping mmu_lock
Mark pages accessed before dropping mmu_lock when faulting in guest memory
so that RISC-V can convert to kvm_release_faultin_page() without tripping
its lockdep assertion on mmu_lock being held. Marking pages accessed
outside of mmu_lock is ok (not great, but safe), but marking pages _dirty_
outside of mmu_lock can make filesystems unhappy (see the link below).
Do both under mmu_lock to minimize the chances of doing the wrong thing in
the future.
Link: https://lore.kernel.org/all/[email protected]
Reviewed-by: Andrew Jones <[email protected]>
Acked-by: Anup Patel <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Tested-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Message-ID: <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions