All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply
@ 2017-04-11 12:52 Sameeh Jubran
  2017-04-11 13:25 ` [Qemu-devel] [PATCH for-2.9?] " Eric Blake
  2017-04-13 18:50 ` [Qemu-devel] [PATCH] " Michael Roth
  0 siblings, 2 replies; 4+ messages in thread
From: Sameeh Jubran @ 2017-04-11 12:52 UTC (permalink / raw)
  To: qemu-devel, Michael Roth; +Cc: Yan Vugenfirer

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>
---
 qga/commands-win32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index 19d72b2..f0d72a0 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;
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH for-2.9?] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply
  2017-04-11 12:52 [Qemu-devel] [PATCH] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply Sameeh Jubran
@ 2017-04-11 13:25 ` Eric Blake
  2017-04-11 17:40   ` Michael Roth
  2017-04-13 18:50 ` [Qemu-devel] [PATCH] " Michael Roth
  1 sibling, 1 reply; 4+ messages in thread
From: Eric Blake @ 2017-04-11 13:25 UTC (permalink / raw)
  To: Sameeh Jubran, qemu-devel, Michael Roth; +Cc: Yan Vugenfirer

[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]

On 04/11/2017 07:52 AM, Sameeh Jubran wrote:
> 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>
> ---
>  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.

Reviewed-by: Eric Blake <eblake@redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH for-2.9?] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply
  2017-04-11 13:25 ` [Qemu-devel] [PATCH for-2.9?] " Eric Blake
@ 2017-04-11 17:40   ` Michael Roth
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Roth @ 2017-04-11 17:40 UTC (permalink / raw)
  To: Eric Blake, Sameeh Jubran, qemu-devel; +Cc: Yan Vugenfirer, qemu-stable

Quoting Eric Blake (2017-04-11 08:25:06)
> On 04/11/2017 07:52 AM, Sameeh Jubran wrote:
> > 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>
> > ---
> >  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.
> 
> Reviewed-by: Eric Blake <eblake@redhat.com>

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.

Cc: qemu-stable@nongnu.org

> 
> -- 
> Eric Blake, Principal Software Engineer
> Red Hat, Inc.           +1-919-301-3266
> Virtualization:  qemu.org | libvirt.org
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply
  2017-04-11 12:52 [Qemu-devel] [PATCH] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply Sameeh Jubran
  2017-04-11 13:25 ` [Qemu-devel] [PATCH for-2.9?] " Eric Blake
@ 2017-04-13 18:50 ` Michael Roth
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Roth @ 2017-04-13 18:50 UTC (permalink / raw)
  To: Sameeh Jubran, qemu-devel; +Cc: Yan Vugenfirer

Quoting Sameeh Jubran (2017-04-11 07:52:05)
> 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>

Thanks, applied to qga tree:                                                                              

  https://github.com/mdroth/qemu/commits/qga

> ---
>  qga/commands-win32.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/qga/commands-win32.c b/qga/commands-win32.c
> index 19d72b2..f0d72a0 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;
> -- 
> 2.9.3
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-13 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 12:52 [Qemu-devel] [PATCH] qga-win: Enable 'can-offline' field in 'guest-get-vcpus' reply Sameeh Jubran
2017-04-11 13:25 ` [Qemu-devel] [PATCH for-2.9?] " Eric Blake
2017-04-11 17:40   ` Michael Roth
2017-04-13 18:50 ` [Qemu-devel] [PATCH] " Michael Roth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.