aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorDavid Woodhouse <[email protected]>2023-02-04 02:41:50 +0000
committerPaolo Bonzini <[email protected]>2023-03-14 10:20:08 -0400
commite7062a98d0b3e0b42089f4c5da633a1ce41b807f (patch)
tree704e961a04421a4713bf23f73e74e479a9947a61 /rust/helpers.c
parentc0c76d99939cb4ac28cbc5ce542cff2b9e1e1b02 (diff)
KVM: selftests: Use enum for test numbers in xen_shinfo_test
The xen_shinfo_test started off with very few iterations, and the numbers we used in GUEST_SYNC() were precisely mapped to the RUNSTATE_xxx values anyway to start with. It has since grown quite a few more tests, and it's kind of awful to be handling them all as bare numbers. Especially when I want to add a new test in the middle. Define an enum for the test stages, and use it both in the guest code and the host switch statement. No functional change, if I can count to 24. Signed-off-by: David Woodhouse <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions