diff options
| author | Nicholas Piggin <npiggin@gmail.com> | 2026-09-02 09:41:08 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-11 09:07:56 -0700 |
| commit | 2c0555c51e7ca615c2bba7a99efd720876239b05 (patch) | |
| tree | 61cefac530a7b0ca2211a34da207badce3de78e6 /tools/perf/scripts/python | |
| parent | d220e33516fa3faa458b814d08dfa680f93ea2ae (diff) | |
KVM: selftests: Use goto instead of do-while to retry finding unused physical pages
Rework the core loop of the physical page allocator to use a goto instead
of do-while loop when retrying with a new base address. The do-while loop
obviously works, but it obfuscates the success vs. failure paths, and in
general is convoluted.
For all intents and purposes, no functional change intended.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
[Rebased to latest mainline tree]
Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
[sean: separate from alignment change, use enomem label, write changelog]
Tested-by: Itaru Kitayama <itaru.kitayama@fujitsu.com>
Acked-by: Gautam Menghani <gautam@linux.ibm.com>
Tested-by: Itaru Kitayam <itaru.kitayama@fujitsu.com>
Link: https://patch.msgid.link/20260902164123.2546762-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
