KVM: Grab KVM references for stats fds
Status from this message: Applied to kvm-x86 fixes, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | KVM: Grab a reference to KVM for VM and vCPU stats file descriptorsvirt/ | +24 | 1 reply | |
| 2/7 | KVM: selftests: Use pread() to read binary stats headertools/ tools/ | +8 | 0 replies | |
| 3/7 | KVM: selftests: Clean up stats fd in common stats_test() helpertools/ | +4 | 0 replies | |
| 4/7 | KVM: selftests: Explicitly free vcpus array in binary stats testtools/ | +1 | 0 replies | |
| 5/7 | KVM: selftests: Verify userspace can create "redundant" binary stats filestools/ | +23 | 0 replies | |
| 6/7 | KVM: selftests: Verify stats fd can be dup()'d and readtools/ | +7 | 0 replies | |
| 7/7 | KVM: selftests: Verify stats fd is usable after VM fd has been closedtools/ | +8 | 0 replies |
Reviews trailers per patch
1 of 7 patches has a Reviewed-by or Acked-by.
| Patch | Kees Cook |
|---|---|
| 1/7 | R-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.
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