aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-05-26 14:03:39 -0700
committerSean Christopherson <[email protected]>2023-06-01 14:07:14 -0700
commitab322c43cce97ff6d05439c9b72bf1513e3e1020 (patch)
tree8a024e2055877fa1e5900250bff12b3680cbd17f /tools/perf/scripts/python/bin/export-to-postgresql-report
parent0d42522bdee70b9197be63dd76c9f6297cd1e832 (diff)
KVM: x86: Update number of entries for KVM_GET_CPUID2 on success, not failure
Update cpuid->nent if and only if kvm_vcpu_ioctl_get_cpuid2() succeeds. The sole caller copies @cpuid to userspace only on success, i.e. the existing code effectively does nothing. Arguably, KVM should report the number of entries when returning -E2BIG so that userspace doesn't have to guess the size, but all other similar KVM ioctls() don't report the size either, i.e. userspace is conditioned to guess. Suggested-by: Takahiro Itazuri <[email protected]> Link: https://lore.kernel.org/all/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions