summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/x86_64/hyperv_tlb_flush.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-04-07 16:32:52 -0700
committerSean Christopherson <seanjc@google.com>2023-04-14 13:21:25 -0700
commitc02c74428288282c9bd5fd37fe4135f3ca419a86 (patch)
tree1b1845148c7057c4a3a12b4662e78bfadf1b4195 /tools/testing/selftests/kvm/x86_64/hyperv_tlb_flush.c
parentc140e93a0c11ac5a56834ac11ddb0f777307b2c1 (diff)
KVM: selftests: Use error codes to signal errors in PMU event filter test
Use '0' to signal success and '-errno' to signal failure in the PMU event filter test so that the values are slightly less magical/arbitrary. Using '0' in the error paths is especially confusing as understanding it's an error value requires following the breadcrumbs to the host code that ultimately consumes the value. Arguably there should also be a #define for "success", but 0/-errno is a common enough pattern that defining another macro on top would likely do more harm than good. Link: https://lore.kernel.org/r/20230407233254.957013-5-seanjc@google.com Reviewed by: Aaron Lewis <aaronlewis@google.com> Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/x86_64/hyperv_tlb_flush.c')
0 files changed, 0 insertions, 0 deletions