summaryrefslogtreecommitdiffstats
path: root/qga/commands-win32.c
diff options
context:
space:
mode:
authorSameeh Jubran2017-04-11 14:52:05 +0200
committerMichael Roth2017-04-27 06:56:47 +0200
commit54858553def1879a3b0781529fb12a028ba36713 (patch)
tree402cd4bc805c7b59ec00a82e451ee1eedbc4ee03 /qga/commands-win32.c
parentqemu-ga: Make QGA VSS provider service run only when needed (diff)
downloadqemu-54858553def1879a3b0781529fb12a028ba36713.tar.gz
qemu-54858553def1879a3b0781529fb12a028ba36713.tar.xz
qemu-54858553def1879a3b0781529fb12a028ba36713.zip
qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply
The QGA schema states: @can-offline: Whether offlining the VCPU is possible. This member is always filled in by the guest agent when the structure is returned, and always ignored on input (hence it can be omitted then). Currently 'can-offline' is missing entirely from the reply. This causes errors in libvirt which is expecting the reply to be compliant with the schema docs. BZ#1438735: https://bugzilla.redhat.com/show_bug.cgi?id=1438735 Signed-off-by: Sameeh Jubran <sameeh@daynix.com> Reviewed-by: Eric Blake <eblake@redhat.com> Cc: qemu-stable@nongnu.org Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'qga/commands-win32.c')
-rw-r--r--qga/commands-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index 04026eedbf..9fec1fb638 100644
--- a/qga/commands-win32.c
+++ b/qga/commands-win32.c
@@ -1344,7 +1344,7 @@ GuestLogicalProcessorList *qmp_guest_get_vcpus(Error **errp)
vcpu = g_malloc0(sizeof *vcpu);
vcpu->logical_id = current++;
vcpu->online = true;
- vcpu->has_can_offline = false;
+ vcpu->has_can_offline = true;
entry = g_malloc0(sizeof *entry);
entry->value = vcpu;