]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Cache binary stats metadata for duration of test
authorBen Gardon <bgardon@google.com>
Mon, 13 Jun 2022 21:25:23 +0000 (21:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:51 +0000 (04:51 -0400)
commite77762bbfbb67000958f8e3ae070f6d24b7ecb37
treec9ad1742db44dd9d4d597cd28ce94e94e266180e
parent514b708b79de416fdaa8cb16cfb10de0ce3f631b
KVM: selftests: Cache binary stats metadata for duration of test

In order to improve performance across multiple reads of VM stats, cache
the stats metadata in the VM struct.

Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220613212523.3436117-11-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/lib/kvm_util.c