qemu/accel
Paolo Bonzini a9197ad210 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>
2022-08-18 14:08:24 +02:00
..
hvf Fix 'writeable' typos 2022-06-08 19:38:47 +01:00
kvm kvm: fix segfault with query-stats-schemas and -M none 2022-08-18 14:08:24 +02:00
qtest misc: Remove unnecessary "sysemu/cpu-timers.h" include 2022-03-06 13:15:42 +01:00
stubs accel/kvm/kvm-all: Introduce kvm_dirty_ring_size function 2022-07-20 12:15:08 +01:00
tcg linux-user/aarch64: Reset target data on MADV_DONTNEED 2022-08-11 11:34:17 +02:00
xen
accel-common.c accel: Introduce current_accel_name() 2022-06-27 11:18:17 +01:00
accel-softmmu.c
accel-softmmu.h
accel-user.c
dummy-cpus.c
Kconfig
meson.build