[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume |
Date: |
Tue, 28 Aug 2018 17:46:29 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Peter Xu <address@hidden> 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 <address@hidden>
>> Reviewed-by: Markus Armbruster <address@hidden>
>
> 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.
- [Qemu-devel] [PATCH v3 0/9] monitor: various code simplification and fixes, Marc-André Lureau, 2018/08/25
- [Qemu-devel] [PATCH v3 1/9] monitor: consitify qmp_send_response() QDict argument, Marc-André Lureau, 2018/08/25
- [Qemu-devel] [PATCH v3 2/9] qmp: constify qmp_is_oob(), Marc-André Lureau, 2018/08/25
- [Qemu-devel] [PATCH v3 3/9] Revert "qmp: isolate responses into io thread", Marc-André Lureau, 2018/08/25
- [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Marc-André Lureau, 2018/08/25
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Peter Xu, 2018/08/27
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume,
Markus Armbruster <=
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Peter Xu, 2018/08/28
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Markus Armbruster, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Peter Xu, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Markus Armbruster, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Marc-André Lureau, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Peter Xu, 2018/08/29
- Re: [Qemu-devel] [PATCH v3 4/9] monitor: no need to save need_resume, Markus Armbruster, 2018/08/30
[Qemu-devel] [PATCH v3 5/9] json-lexer: make it safe to call destroy multiple times, Marc-André Lureau, 2018/08/25
[Qemu-devel] [PATCH v3 6/9] tests: add a few qmp tests, Marc-André Lureau, 2018/08/25