KVM: selftests: Verify userspace can create "redundant" binary stats files
authorSean Christopherson <seanjc@google.com>
Tue, 11 Jul 2023 23:01:29 +0000 (16:01 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 29 Jul 2023 15:05:30 +0000 (11:05 -0400)
commit47d1be8a78fb587fe5a8f0873244476700171403
tree1c9894f46fbfcc705cde90ae9d60ac46c0016fa4
parent33b02704071b0972a62ec32516847f91cab6cb8f
KVM: selftests: Verify userspace can create "redundant" binary stats files

Verify that KVM doesn't artificially limit KVM_GET_STATS_FD to a single
file per VM/vCPU.  There's no known use case for getting multiple stats
fds, but it should work, and more importantly creating multiple files will
make it easier to test that KVM correct manages VM refcounts for stats
files.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230711230131.648752-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/kvm_binary_stats_test.c