diff options
author | Paolo Bonzini | 2022-08-18 14:08:24 +0200 |
---|---|---|
committer | Paolo Bonzini | 2022-08-18 14:08:24 +0200 |
commit | a9197ad2101cfc885cc316af299f49ba89039e54 (patch) | |
tree | 379dfb9dbd29fd3dc0b0f736456dccf68531adb1 /linux-user/syscall.c | |
parent | Update version for v7.1.0-rc3 release (diff) | |
download | qemu-a9197ad2101cfc885cc316af299f49ba89039e54.tar.gz qemu-a9197ad2101cfc885cc316af299f49ba89039e54.tar.xz qemu-a9197ad2101cfc885cc316af299f49ba89039e54.zip |
kvm: fix segfault with query-stats-schemas and -M none
-M none creates a guest without a vCPU, causing the following error:
$ ./qemu-system-x86_64 -qmp stdio -M none -accel kvm
{execute:qmp_capabilities}
{"return": {}}
{execute: query-stats-schemas}
Segmentation fault (core dumped)
Fix it by not querying the vCPU stats if first_cpu is NULL.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-user/syscall.c')
0 files changed, 0 insertions, 0 deletions