diff options
author | Gavin Shan <gshan@redhat.com> | 2022-10-20 15:12:05 +0800 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-11-10 18:56:15 +0000 |
commit | 2aae5e6795e1407334bb849f96f11c9051b959e2 (patch) | |
tree | 9996a69f01cbb3a1a5d3ae5445ae5d5ff75ffa69 /tools/perf/scripts/python/task-analyzer.py | |
parent | 3bfadb2325891d122771ce534336af531e93d7b2 (diff) |
KVM: selftests: memslot_perf_test: Consolidate loop conditions in prepare_vm()
There are two loops in prepare_vm(), which have different conditions.
'slot' is treated as meory slot index in the first loop, but index of
the host virtual address array in the second loop. It makes it a bit
hard to understand the code.
Change the usage of 'slot' in the second loop, to treat it as the
memory slot index either.
No functional change intended.
Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221020071209.559062-3-gshan@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions