KVM: selftests: Add macro to generate KVM exit reason strings
authorSean Christopherson <seanjc@google.com>
Sat, 4 Feb 2023 01:45:46 +0000 (17:45 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Mar 2023 14:20:10 +0000 (10:20 -0400)
commit1b3d660e5d7b8b408a2b0988de65672199ebfaf2
tree607bccc326d805e8eb2dca3ca45f3e0f70b5bf33
parent6f974494b8077bb1a2a10fe33f62c143f246f102
KVM: selftests: Add macro to generate KVM exit reason strings

Add and use a macro to generate the KVM exit reason strings array
instead of relying on developers to correctly copy+paste+edit each
string.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230204014547.583711-4-vipinsh@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/kvm_util.c