OSDN Git Service

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)
commit83f6e109f562063ab7a1f54d99bcab2858b09ead
treec9ad1742db44dd9d4d597cd28ce94e94e266180e
parentb774da3f2e5761cb85881ce62eb6dc97d15396c4
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