]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: agent: Make setting of vcpus more robust
authorPeter Krempa <pkrempa@redhat.com>
Mon, 20 Jun 2016 12:15:50 +0000 (14:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Jun 2016 07:26:08 +0000 (09:26 +0200)
commitb1aa91e140e03bb94d1844c892e2babee51b1c1d
tree40cf10ccd6599070a7d94c8dbcd6b376b0b817a0
parent69e0cd3397c531ea124fb1e4649637308bbde228
qemu: agent: Make setting of vcpus more robust

Documentation for the "guest-set-vcpus" command describes a proper
algorithm how to set vcpus. This patch makes the following changes:

- state of cpus that has not changed is not updated
- if the command was partially successful the command is re-tried with
  the rest of the arguments to get a proper error message
- code is more robust against malicious guest agent
- fix testsuite to the new semantics
src/qemu/qemu_agent.c
src/qemu/qemu_agent.h
src/qemu/qemu_driver.c
tests/qemuagenttest.c