diff options
| author | Igor Mammedov | 2018-09-06 14:51:54 +0200 |
|---|---|---|
| committer | Michael Roth | 2018-10-30 22:48:49 +0100 |
| commit | b4bf912a6c19449e68af7b4173a8c6da21904d99 (patch) | |
| tree | 5487060e948f1940617f2105fb9ff0960159e8d6 /configure | |
| parent | qga-win: add support for qmp_guest_fsfreeze_freeze_list (diff) | |
| download | qemu-b4bf912a6c19449e68af7b4173a8c6da21904d99.tar.gz qemu-b4bf912a6c19449e68af7b4173a8c6da21904d99.tar.xz qemu-b4bf912a6c19449e68af7b4173a8c6da21904d99.zip | |
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 'configure')
0 files changed, 0 insertions, 0 deletions
