diff options
| author | Sean Christopherson <seanjc@google.com> | 2024-11-27 17:33:34 -0800 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2024-12-18 14:19:28 -0800 |
| commit | 08833719e77041e331f6193878f1b944744b9068 (patch) | |
| tree | 6210714ce57d65dab613d5ba98b7e0f1d04e9ef9 /tools/docs/lib/parse_data_structs.py | |
| parent | bf4dfc3aa875c082dd70b979417f0729a35969a0 (diff) | |
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/docs/lib/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
