KVM: selftests: Add a common helper for the PMU event filter guest code
authorAaron Lewis <aaronlewis@google.com>
Fri, 7 Apr 2023 23:32:49 +0000 (16:32 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Apr 2023 20:20:53 +0000 (13:20 -0700)
commit33ef1411a36b47ae7ecdb919463b0d78576b3832
treec92a1c8b26d6166ccef41a7b1166486e266f79f6
parentdfdeda67ea2dac57d2d7506d65cfe5a0878ad285
KVM: selftests: Add a common helper for the PMU event filter guest code

Split out the common parts of the Intel and AMD guest code in the PMU
event filter test into a helper function.  This is in preparation for
adding additional counters to the test.

No functional changes intended.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Link: https://lore.kernel.org/r/20230407233254.957013-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c