Skip to content

KVM: Grab KVM references for stats fds

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7KVM: Grab a reference to KVM for VM and vCPU stats file descriptorsvirt/kvm/kvm_main.c+24 -01 reply
2/7KVM: selftests: Use pread() to read binary stats headertools/testing/selftests/kvm/include/kvm_util_base.h tools/testing/selftests/kvm/kvm_binary_stats_test.c+8 -40 replies
3/7KVM: selftests: Clean up stats fd in common stats_test() helpertools/testing/selftests/kvm/kvm_binary_stats_test.c+4 -180 replies
4/7KVM: selftests: Explicitly free vcpus array in binary stats testtools/testing/selftests/kvm/kvm_binary_stats_test.c+1 -00 replies
5/7KVM: selftests: Verify userspace can create "redundant" binary stats filestools/testing/selftests/kvm/kvm_binary_stats_test.c+23 -20 replies
6/7KVM: selftests: Verify stats fd can be dup()'d and readtools/testing/selftests/kvm/kvm_binary_stats_test.c+7 -10 replies
7/7KVM: selftests: Verify stats fd is usable after VM fd has been closedtools/testing/selftests/kvm/kvm_binary_stats_test.c+8 -20 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchKees Cook
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] KVM: Grab KVM references for stats fds

Grab a reference to the VM when handing a userspace stats fds for VMs and vCPUs to ensure the stats files don't outlive the VM and its vCPUs, and add a regression testcase in selftests.

Sean Christopherson (7):
KVM: Grab a reference to KVM for VM and vCPU stats file descriptors
KVM: selftests: Use pread() to read binary stats header
KVM: selftests: Clean up stats fd in common stats_test() helper
KVM: selftests: Explicitly free vcpus array in binary stats test
KVM: selftests: Verify userspace can create "redundant" binary stats
files
KVM: selftests: Verify stats fd can be dup()'d and read
KVM: selftests: Verify stats fd is usable after VM fd has been closed

 .../selftests/kvm/include/kvm_util_base.h     |  6 +-
 .../selftests/kvm/kvm_binary_stats_test.c     | 72 ++++++++++++-------
 virt/kvm/kvm_main.c                           | 24 +++++++
 3 files changed, 75 insertions(+), 27 deletions(-)

base-commit: 255006adb3da71bb75c334453786df781b415f54

Signature · 1 line
2.41.0.255.g8b1d071c50-goog