Skip to content

KVM: selftests: Improve error handling when opening files

Sean Christopherson kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: selftests: Verify KVM is loaded when getting a KVM module paramtools/testing/selftests/kvm/include/x86/processor.h tools/testing/selftests/kvm/lib/kvm_util.c tools/testing/selftests/kvm/lib/x86/processor.c +1 more+9 -120 replies
2/4KVM: selftests: Add __open_path_or_exit() variant to provide extra help infotools/testing/selftests/kvm/include/kvm_util.h tools/testing/selftests/kvm/lib/kvm_util.c+16 -40 replies
3/4KVM: selftests: Play nice with EACCES errors in open_path_or_exit()tools/testing/selftests/kvm/lib/kvm_util.c+3 -20 replies
4/4KVM: selftests: Print a more helpful message for EACCESS in access tracking testtools/testing/selftests/kvm/access_tracking_perf_test.c+2 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] KVM: selftests: Improve error handling when opening files

Improve selftests' error reporting when opening a file fails, e.g. so that failure to access a module param spits out a message about KVM not being loaded, instead of a cryptic message about a param not being supported.

Sean Christopherson (4):
KVM: selftests: Verify KVM is loaded when getting a KVM module param
KVM: selftests: Add __open_path_or_exit() variant to provide extra
help info
KVM: selftests: Play nice with EACCES errors in open_path_or_exit()
KVM: selftests: Print a more helpful message for EACCESS in access
tracking test

 .../selftests/kvm/access_tracking_perf_test.c |  7 ++----
 .../testing/selftests/kvm/include/kvm_util.h  |  1 +
 .../selftests/kvm/include/x86/processor.h     |  6 ++++-
 tools/testing/selftests/kvm/lib/kvm_util.c    | 23 +++++++++++++++----
 .../testing/selftests/kvm/lib/x86/processor.c | 10 --------
 .../vmx_exception_with_invalid_guest_state.c  |  2 +-
 6 files changed, 28 insertions(+), 21 deletions(-)

base-commit: 7ef51a41466bc846ad794d505e2e34ff97157f7f

Signature · 1 line
2.49.0.1112.g889b7c5bd8-goog