diff options
author | Sean Christopherson <seanjc@google.com> | 2024-11-28 04:33:34 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-12-19 01:19:28 +0300 |
commit | 08833719e77041e331f6193878f1b944744b9068 (patch) | |
tree | 6210714ce57d65dab613d5ba98b7e0f1d04e9ef9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bf4dfc3aa875c082dd70b979417f0729a35969a0 (diff) | |
download | linux-08833719e77041e331f6193878f1b944744b9068.tar.xz |
KVM: selftests: Assert that vcpu->cpuid is non-NULL when getting CPUID entries
Add a sanity check in __vcpu_get_cpuid_entry() to provide a friendlier
error than a segfault when a test developer tries to use a vCPU CPUID
helper on a barebones vCPU.
Link: https://lore.kernel.org/r/20241128013424.4096668-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions