]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Read binary stat data in lib
authorBen Gardon <bgardon@google.com>
Mon, 13 Jun 2022 21:25:18 +0000 (21:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:47 +0000 (04:51 -0400)
commit40a673f248f04a819ac04fb239d652ac7d5ac005
treee5f65a1520b02f8b2cea0dc792c65a527edfcf2a
parentf7753cc47498adab4f3a45206b9cb66db17e9519
KVM: selftests: Read binary stat data in lib

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

Also opportunistically remove an unnecessary calculation with
"size_data" in stats_test.

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-6-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