From: Markus Armbruster <armbru@redhat.com>
To: Peter Xu <peterx@redhat.com>
Cc: "Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Michael Roth" <mdroth@linux.vnet.ibm.com>,
qemu-devel@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume
Date: Tue, 28 Aug 2018 17:46:29 +0200 [thread overview]
Message-ID: <87a7p6mr3e.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20180827045602.GF3020@xz-x1> (Peter Xu's message of "Mon, 27 Aug 2018 12:56:02 +0800")
Peter Xu <peterx@redhat.com> writes:
> On Sat, Aug 25, 2018 at 03:57:19PM +0200, Marc-André Lureau wrote:
>> There is no need for per-command need_resume granularity, it should
>> resume after running an non-oob command on oob-disabled monitor.
>>
>> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
>> Reviewed-by: Markus Armbruster <armbru@redhat.com>
>
> Note that this series/patch still conflict with the "enable
> out-of-band by default" series.
>
> [PATCH v6 00/13] monitor: enable OOB by default
Yes.
> I'm not against this patch to be merged since it has its r-b, but I
> feel like we'd better judge on whether we still like the response
> queue first, in case one day we'll need to add these things back.
Let's not worry about things that may or may not happen at some
indeterminate time in the future.
However:
> When there could be functional changes around the code path I would
> think we'd better keep the cleanup patches postponed a bit until those
> functional changes are settled. For now the functional part is decide
> how to fix up the rest of out-of-band issues (my proposal is in the
> series above which should solve everything that is related to
> out-of-band to be fixed; if there is more, I'll continue to work on
> it), whether we should enable it by default for 3.1 (my answer
> is... yes...), and what to do with it.
I agree the important job is to finish OOB.
Sometimes, it's better to clean up first. Sometimes, it's not.
Right now, the response queue is a useless complication, and
Marc-André's PATCH 3+4 get rid of it. Lovely. I understand this
conflicts with your OOB work. The question is whether your work
fundamentally needs the response queue or not.
If your OOB work happens to be coded for the response queue, but the
problem could also be solved without the response queue, then the OOB
job doesn't fundamentally need the response queue.
Unless that's the case, getting rid of the response queue is unnecessary
churn.
If it is the case, we still need to consider effort. Which order is
less total work? Which order gets us to the goal faster?
Can you guys agree on answers to these questions, or do you need me to
answer them?
Restating the questions:
1. Can you think of a way to do what Peter's OOB series does, but
without the response queue?
2. If you can, what's easier / cheaper / faster:
a. Merge Marc-André's patches to get rid of response queue, rewrite
OOB series without response queue on top.
b. Merge Peter's OOB series with response queue, rewrite patches to
get rid of response queue on top.
> If we found that it's too hard to enable it by default, I'm thinking
> whether we can make it a persistent flag for monitor (maybe turning
> the "x-oob" into a real "oob" and keep it, then we don't turn it on by
> default), then we can let libvirt start working with out-of-band with
> the flag. After all it's actually working mostly (the pending issues
> are only things like flow control for malicious/buggy clients, but
> libvirt never had such an issue with it).
The OOB job isn't complete without working flow control. Nevertheless,
I'm willing to consider enabling OOB without working flow control.
next prev parent reply other threads:[~2018-08-28 15:53 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-25 13:57 [Qemu-devel] [PATCH v3 0/9] monitor: various code simplification and fixes Marc-André Lureau
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 1/9] monitor: consitify qmp_send_response() QDict argument Marc-André Lureau
2018-08-27 7:36 ` Thomas Huth
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 2/9] qmp: constify qmp_is_oob() Marc-André Lureau
2018-08-27 7:37 ` Thomas Huth
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 3/9] Revert "qmp: isolate responses into io thread" Marc-André Lureau
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume Marc-André Lureau
2018-08-27 4:56 ` Peter Xu
2018-08-28 15:46 ` Markus Armbruster [this message]
2018-08-29 0:42 ` Peter Xu
2018-08-29 8:55 ` Markus Armbruster
2018-08-29 10:21 ` Peter Xu
2018-08-29 12:40 ` Markus Armbruster
2018-08-29 13:40 ` Marc-André Lureau
2018-08-30 3:31 ` Peter Xu
2018-08-30 6:45 ` Markus Armbruster
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 5/9] json-lexer: make it safe to call destroy multiple times Marc-André Lureau
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 6/9] tests: add a few qmp tests Marc-André Lureau
2018-08-27 7:47 ` Thomas Huth
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 7/9] tests: add a qmp success-response test Marc-André Lureau
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 8/9] qga: process_event() simplification Marc-André Lureau
2018-08-28 0:05 ` Michael Roth
2018-08-28 11:56 ` Marc-André Lureau
2018-08-28 23:52 ` Michael Roth
2018-08-25 13:57 ` [Qemu-devel] [PATCH v3 9/9] qmp: common 'id' handling & make QGA conform to QMP spec Marc-André Lureau
2018-08-29 0:31 ` Michael Roth
2018-08-28 19:06 ` [Qemu-devel] [PATCH v3 0/9] monitor: various code simplification and fixes Markus Armbruster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a7p6mr3e.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.