OSDN Git Service

KVM: selftests: Read binary stats desc in lib
authorBen Gardon <bgardon@google.com>
Mon, 13 Jun 2022 21:25:16 +0000 (21:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:45 +0000 (04:51 -0400)
commit4d0a059415708ec0f221616f187853176d2fbebc
tree4e9539e528bc46114e498a08648de4e453da2e74
parent32faa0647cea46ffda9095c3a8c95b315e139f0f
KVM: selftests: Read binary stats desc in lib

Move the code to read the binary stats descriptors to the KVM selftests
library. It will be re-used by other tests to check KVM behavior.

No functional change intended.

Reviewed-by: David Matlack <dmatlack@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220613212523.3436117-4-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/kvm_binary_stats_test.c
tools/testing/selftests/kvm/lib/kvm_util.c