qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply
PATCH 1/1 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
--- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qga/commands-win32.c +1 -1
@@ -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;
Signature · 1 line
2.9.3
Quoted 11 lines · Sameeh Jubran
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.
Quoted 6 lines
BZ#1438735: https://bugzilla.redhat.com/show_bug.cgi?id=1438735
Signed-off-by Sameeh Jubran <[email protected]>--- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Appropriate as a bug fix in 2.9 if there is still time for the maintainer to submit a pull request, although we are late enough that if it slips into 2.10 it is not a big deal.
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Quoting Eric Blake (2017-04-11 08:25:06)
Quoted 19 lines · Sameeh Jubran
Quoted 11 lines
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.
Quoted 6 lines
BZ#1438735: https://bugzilla.redhat.com/show_bug.cgi?id=1438735
Signed-off-by Sameeh Jubran <[email protected]>--- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines
Appropriate as a bug fix in 2.9 if there is still time for the maintainer to submit a pull request, although we are late enough that if it slips into 2.10 it is not a big deal.
Reviewed-by Eric Blake <[email protected]>
Yah, agreed, the final planned RC looks to have been tagged already though so I think it'll have to wait for 2.10/2.9.1. Thanks for the heads up.
Quoted 6 lines
Signature · 4 lines
-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Michael Roth
AppliedQuoting Sameeh Jubran (2017-04-11 07:52:05)
Quoted 7 lines
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).
Quoted 7 lines
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 <[email protected]>
Thanks, applied to qga tree:
https://github.com/mdroth/qemu/commits/qga
Quoted 20 lines
--- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)qga/commands-win32.c +1
-1@@ -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;Signature · 1 line
2.9.3