diff options
author | Igor Mammedov <imammedo@redhat.com> | 2018-09-06 14:51:54 +0200 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2018-10-30 16:48:49 -0500 |
commit | b4bf912a6c19449e68af7b4173a8c6da21904d99 (patch) | |
tree | 5487060e948f1940617f2105fb9ff0960159e8d6 /qemu-edid.c | |
parent | 0692b03ee135f6295168082199af55c6f289794d (diff) |
qga: ignore non present cpus when handling qmp_guest_get_vcpus()
If VM has VCPUs plugged sparselly (for example a VM started with
3 VCPUs (cpu0, cpu1 and cpu2) and then cpu1 was hotunplugged so
only cpu0 and cpu2 are present), QGA will rise a error
error: internal error: unable to execute QEMU agent command 'guest-get-vcpus':
open("/sys/devices/system/cpu/cpu1/"): No such file or directory
when
virsh vcpucount FOO --guest
is executed.
Fix it by ignoring non present CPUs when fetching CPUs status from sysfs.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qemu-edid.c')
0 files changed, 0 insertions, 0 deletions