Re: [PATCH] ide: Get rid of IDEDrive struct

2020-08-05 Thread Markus Armbruster
Eduardo Habkost writes: > On Wed, Aug 05, 2020 at 09:41:25PM +0100, Peter Maydell wrote: >> On Wed, 5 Aug 2020 at 20:49, Eduardo Habkost wrote: >> > >> > The struct had a single field (IDEDevice dev), and is only used >> > in the QOM type declarations and property lists. We can simply >> > use

Re: cleanups with long-term benefits

2020-08-05 Thread Markus Armbruster
Eduardo Habkost writes: > On Wed, Aug 05, 2020 at 06:23:23PM +0200, Kevin Wolf wrote: >> We're basically weighing "git blame" against syntax highlighting >> defaults. I don't think the latter has an obviously higher weight. > > I think "syntax highlight defaults" is far from being an accurate >

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Markus Armbruster
John Snow writes: > On 8/5/20 3:36 AM, Markus Armbruster wrote: >> John Snow writes: >> >>> On 8/4/20 4:03 AM, Markus Armbruster wrote: The pain of tweaking the parser is likely dwarved several times over by the pain of the flag day. >>> >>> You mention this often; I wonder if I

Re: [PATCH] ide: Get rid of IDEDrive struct

2020-08-05 Thread Eduardo Habkost
On Wed, Aug 05, 2020 at 09:41:25PM +0100, Peter Maydell wrote: > On Wed, 5 Aug 2020 at 20:49, Eduardo Habkost wrote: > > > > The struct had a single field (IDEDevice dev), and is only used > > in the QOM type declarations and property lists. We can simply > > use the IDEDevice struct directly

[PATCH] block/vhdx: Support vhdx image only with 512 bytes logical sector size

2020-08-05 Thread Swapnil Ingle
block/vhdx uses qemu block layer where sector size is always 512 byte. This may have issues with 4K logical sector sized vhdx image. For e.g qemu-img convert on such images fails with following assert: $qemu-img convert -f vhdx -O raw 4KTest1.vhdx test.raw qemu-img: util/iov.c:388: qiov_slice:

Re: [PATCH] ide: Get rid of IDEDrive struct

2020-08-05 Thread Peter Maydell
On Wed, 5 Aug 2020 at 20:49, Eduardo Habkost wrote: > > The struct had a single field (IDEDevice dev), and is only used > in the QOM type declarations and property lists. We can simply > use the IDEDevice struct directly instead. > > Signed-off-by: Eduardo Habkost > @@ -327,7 +323,6 @@ static

[PATCH] ide: Get rid of IDEDrive struct

2020-08-05 Thread Eduardo Habkost
The struct had a single field (IDEDevice dev), and is only used in the QOM type declarations and property lists. We can simply use the IDEDevice struct directly instead. Signed-off-by: Eduardo Habkost --- hw/ide/qdev.c | 25 + 1 file changed, 9 insertions(+), 16

Re: [PATCH v12 11/11] iotests: dump QCOW2 header in JSON in #303

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
30.07.2020 17:15, Andrey Shinkevich wrote: Extend the test case #303 by dumping QCOW2 image metadata in JSON format. Signed-off-by: Andrey Shinkevich Reviewed-by: Vladimir Sementsov-Ogievskiy -- Best regards, Vladimir

Re: [PATCH v12 10/11] qcow2_format.py: support dumping metadata in JSON format

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
30.07.2020 17:15, Andrey Shinkevich wrote: Implementation of dumping QCOW2 image metadata. The sample output: { "Header_extensions": [ { "name": "Feature table", "magic": 1745090647, "length": 192, "data_str": "" },

Re: qemu-img convert asserts while converting from vhdx to raw

2020-08-05 Thread Swapnil Ingle
Hi Max, Thanks for the response. I checked internally and looks like it always fails. Also in the code I see comment saying "We only support 512 currently" at block/vhdx.c: vhdx_parse_metadata() As you suggested we can just refuse to open images with 4K logical sector size, I will send an

Re: [PATCH v12 09/11] qcow2_format.py: collect fields to dump in JSON format

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
30.07.2020 17:15, Andrey Shinkevich wrote: As __dict__ is being extended with class members we do not want to print, add the to_dict() method to classes that returns a dictionary with desired fields and their values. Extend it in subclass when necessary to print the final dictionary in the JSON

Re: cleanups with long-term benefits

2020-08-05 Thread Eduardo Habkost
On Wed, Aug 05, 2020 at 06:23:23PM +0200, Kevin Wolf wrote: > Am 05.08.2020 um 12:08 hat Daniel P. Berrangé geschrieben: > > On Wed, Aug 05, 2020 at 11:11:55AM +0200, Cornelia Huck wrote: > > > On Wed, 5 Aug 2020 10:05:40 +0100 > > > Daniel P. Berrangé wrote: > > > > > > > On Wed, Aug 05, 2020

Re: [PATCH v2 3/3] aio-posix: keep aio_notify_me disabled during polling

2020-08-05 Thread Paolo Bonzini
On 05/08/20 12:00, Stefan Hajnoczi wrote: > + > +/* > + * aio_notify can avoid the expensive event_notifier_set if > + * everything (file descriptors, bottom halves, timers) will > + * be re-evaluated before the next blocking poll(). This is > + * already

Re: [PATCH v2 2/3] async: always set ctx->notified in aio_notify()

2020-08-05 Thread Paolo Bonzini
On 05/08/20 12:00, Stefan Hajnoczi wrote: > aio_notify() does not set ctx->notified when called with > ctx->aio_notify_me disabled. Therefore aio_notify_me needs to be enabled > during polling. > > This is suboptimal since expensive event_notifier_set(>notifier) > and

Re: cleanups with long-term benefits

2020-08-05 Thread Kevin Wolf
Am 05.08.2020 um 12:08 hat Daniel P. Berrangé geschrieben: > On Wed, Aug 05, 2020 at 11:11:55AM +0200, Cornelia Huck wrote: > > On Wed, 5 Aug 2020 10:05:40 +0100 > > Daniel P. Berrangé wrote: > > > > > On Wed, Aug 05, 2020 at 10:49:35AM +0200, Paolo Bonzini wrote: > > > > On 05/08/20 10:39,

Re: [PATCH v12 08/11] qcow2.py: Introduce '-j' key to dump in JSON format

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
30.07.2020 17:15, Andrey Shinkevich wrote: Add the command key to the qcow2.py arguments list to dump QCOW2 metadata in JSON format. Here is the suggested way to do that. The implementation of the dump in JSON format is in the patch that follows. Signed-off-by: Andrey Shinkevich Reviewed-by:

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread John Snow
On 8/5/20 3:36 AM, Markus Armbruster wrote: John Snow writes: On 8/4/20 4:03 AM, Markus Armbruster wrote: The pain of tweaking the parser is likely dwarved several times over by the pain of the flag day. You mention this often; I wonder if I misunderstand the critique, because the pain of

Re: [PATCH v12 07/11] qcow2_format.py: Dump bitmap table serialized entries

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
30.07.2020 17:15, Andrey Shinkevich wrote: Add bitmap table information to the QCOW2 metadata dump. Bitmap name bitmap-1 ... Bitmap table typesize offset 0 serialized 6553610092544 1 all-zeroes 655360 For

Re: [PATCH] qcow2-cluster: Fix integer left shift error in qcow2_alloc_cluster_link_l2()

2020-08-05 Thread Peter Maydell
On Wed, 5 Aug 2020 at 10:24, Tuguoyi wrote: > > When calculating the offset, the result of left shift operation will be > promoted > to type int64 automatically because the left operand of + operator is > uint64_t. > but the result after integer promotion may be produce an error value for us >

Re: [PATCH] qcow2-cluster: Fix integer left shift error in qcow2_alloc_cluster_link_l2()

2020-08-05 Thread Alberto Garcia
On Wed 05 Aug 2020 04:16:57 PM CEST, Kevin Wolf wrote: >> nb_clusters is an int and there are more cases of >> >> nb_clusters << s->cluster_bits >> >> I can see at least these: handle_alloc(), qcow2_free_any_clusters(), >> qcow2_alloc_cluster_abort(). > > Actuallyx, handle_alloc() and

Re: [PATCH] qcow2-cluster: Fix integer left shift error in qcow2_alloc_cluster_link_l2()

2020-08-05 Thread Kevin Wolf
Am 05.08.2020 um 15:44 hat Alberto Garcia geschrieben: > On Wed 05 Aug 2020 11:22:58 AM CEST, Tuguoyi wrote: > > This patch fix it by casting @i to uint64_t before doing left shift > > operation > > The patch seems fine and I also think that it's perhaps worth a test > case (although it only

Re: [PATCH 2/3] block: add logging facility for long standing IO requests

2020-08-05 Thread Denis V. Lunev
On 8/5/20 4:51 PM, Philippe Mathieu-Daudé wrote: > On 8/5/20 12:08 PM, Denis V. Lunev wrote: >> There are severe delays with IO requests processing if QEMU is running in >> virtual machine or over software defined storage. Such delays potentially >> results in unpredictable guest behavior. For

Re: [PATCH 2/3] block: add logging facility for long standing IO requests

2020-08-05 Thread Philippe Mathieu-Daudé
On 8/5/20 12:08 PM, Denis V. Lunev wrote: > There are severe delays with IO requests processing if QEMU is running in > virtual machine or over software defined storage. Such delays potentially > results in unpredictable guest behavior. For example, guests over IDE or > SATA drive could remount

Re: [PATCH] qcow2-cluster: Fix integer left shift error in qcow2_alloc_cluster_link_l2()

2020-08-05 Thread Alberto Garcia
On Wed 05 Aug 2020 03:44:08 PM CEST, Alberto Garcia wrote: > On Wed 05 Aug 2020 11:22:58 AM CEST, Tuguoyi wrote: >> This patch fix it by casting @i to uint64_t before doing left shift >> operation > > The patch seems fine and I also think that it's perhaps worth a test > case (although it only

Re: [PATCH] qcow2-cluster: Fix integer left shift error in qcow2_alloc_cluster_link_l2()

2020-08-05 Thread Alberto Garcia
On Wed 05 Aug 2020 11:22:58 AM CEST, Tuguoyi wrote: > This patch fix it by casting @i to uint64_t before doing left shift > operation The patch seems fine and I also think that it's perhaps worth a test case (although it only seems to happen with preallocation=falloc or full so the test would

Re: [PATCH] qcow2-cluster: Fix integer left shift error in qcow2_alloc_cluster_link_l2()

2020-08-05 Thread Kevin Wolf
Am 05.08.2020 um 11:22 hat Tuguoyi geschrieben: > When calculating the offset, the result of left shift operation will be > promoted > to type int64 automatically because the left operand of + operator is > uint64_t. > but the result after integer promotion may be produce an error value for us

Re: [PATCH for-5.1?] qcow2-cluster: Fix integer left shift error in qcow2_alloc_cluster_link_l2()

2020-08-05 Thread Eric Blake
On 8/5/20 4:22 AM, Tuguoyi wrote: When calculating the offset, the result of left shift operation will be promoted to type int64 automatically because the left operand of + operator is uint64_t. but the result after integer promotion may be produce an error value for us and trigger the following

Re: [PATCH v12 01/11] iotests: add test for QCOW2 header dump

2020-08-05 Thread Andrey Shinkevich
On 05.08.2020 14:23, Vladimir Sementsov-Ogievskiy wrote: 30.07.2020 17:15, Andrey Shinkevich wrote: The simple script creates a QCOW2 image and fills it with some data. Two bitmaps are created as well. Then the script reads the image header with extensions from the disk by running the script

Re: [PATCH v6 00/12] monitor: Optionally run handlers in coroutines

2020-08-05 Thread Markus Armbruster
Markus Armbruster writes: > I let this series slide to get my Error API rework done, along with much > else. My sincere apologies! > > Unsurprisingly, it needs a rebase now. I suggest to let me review it as > is first. I'm done with v6. Summary: * A few trivial things to correct here and

Re: [PATCH v12 01/11] iotests: add test for QCOW2 header dump

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
30.07.2020 17:15, Andrey Shinkevich wrote: The simple script creates a QCOW2 image and fills it with some data. Two bitmaps are created as well. Then the script reads the image header with extensions from the disk by running the script qcow2.py and dumps the information to the output. Other

Re: [PATCH 1/2] qcow2: Release read-only bitmaps when inactivated

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
30.07.2020 15:02, Max Reitz wrote: During migration, we release all bitmaps after storing them on disk, as long as they are (1) stored on disk, (2) not read-only, and (3) consistent. (2) seems arbitrary, though. The reason we do not release them is because we do not write them, as there is no

Re: [PATCH v6 09/12] hmp: Add support for coroutine command handlers

2020-08-05 Thread Markus Armbruster
Kevin Wolf writes: > Often, QMP command handlers are not only called to handle QMP commands, > but also from a corresponding HMP command handler. In order to give them > a consistent environment, optionally run HMP command handlers in a > coroutine, too. > > The implementation is a lot simpler

Re: cleanups with long-term benefits

2020-08-05 Thread Cornelia Huck
On Wed, 5 Aug 2020 11:08:02 +0100 Daniel P. Berrangé wrote: > On Wed, Aug 05, 2020 at 11:11:55AM +0200, Cornelia Huck wrote: > > On Wed, 5 Aug 2020 10:05:40 +0100 > > Daniel P. Berrangé wrote: > > > > > On Wed, Aug 05, 2020 at 10:49:35AM +0200, Paolo Bonzini wrote: > > > > On 05/08/20

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Alex Bennée
Markus Armbruster writes: > Paolo Bonzini writes: > >> On 05/08/20 09:36, Markus Armbruster wrote: >>> There's also the longer term pain of having to work around git-blame >>> unable to see beyond the flag day. >> >> Do you really use "git blame" that much? "git log -S" does more or less >>

Re: [PATCH v6 08/12] qmp: Move dispatcher to a coroutine

2020-08-05 Thread Markus Armbruster
Kevin Wolf writes: > This moves the QMP dispatcher to a coroutine and runs all QMP command > handlers that declare 'coroutine': true in coroutine context so they > can avoid blocking the main loop while doing I/O or waiting for other > events. > > For commands that are not declared safe to run

[PATCH 1/3] block/block-backend: add converter from BlockAcctStats to BlockBackend

2020-08-05 Thread Denis V. Lunev
Right now BlockAcctStats is always reside on BlockBackend. This structure is not used in any other place. Thus we are able to create a converter from one pointer to another. Signed-off-by: Denis V. Lunev Reviewed-by: Vladimir Sementsov-Ogievskiy CC: Stefan Hajnoczi CC: Kevin Wolf CC: Max

[PATCH 3/3] block: enable long IO requests report by default

2020-08-05 Thread Denis V. Lunev
Latency threshold is set to 10 seconds following guest request timeout on legacy storage controller. Signed-off-by: Denis V. Lunev CC: Vladimir Sementsov-Ogievskiy CC: Stefan Hajnoczi CC: Kevin Wolf CC: Max Reitz --- blockdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH 2/3] block: add logging facility for long standing IO requests

2020-08-05 Thread Denis V. Lunev
There are severe delays with IO requests processing if QEMU is running in virtual machine or over software defined storage. Such delays potentially results in unpredictable guest behavior. For example, guests over IDE or SATA drive could remount filesystem read-only if write is performed longer

[PATCH v2 0/3] block: add logging facility for long standing IO requests

2020-08-05 Thread Denis V. Lunev
There are severe delays with IO requests processing if QEMU is running in virtual machine or over software defined storage. Such delays potentially results in unpredictable guest behavior. For example, guests over IDE or SATA drive could remount filesystem read-only if write is performed longer

[PATCH v2 2/3] async: always set ctx->notified in aio_notify()

2020-08-05 Thread Stefan Hajnoczi
aio_notify() does not set ctx->notified when called with ctx->aio_notify_me disabled. Therefore aio_notify_me needs to be enabled during polling. This is suboptimal since expensive event_notifier_set(>notifier) and event_notifier_test_and_clear(>notifier) calls are required when

[PATCH v2 1/3] async: rename event_notifier_dummy_cb/poll()

2020-08-05 Thread Stefan Hajnoczi
The event_notifier_*() prefix can be confused with the EventNotifier APIs that are also called event_notifier_*(). Rename the functions to aio_context_notifier_*() to make it clear that they relate to the AioContext::notifier field. Signed-off-by: Stefan Hajnoczi --- util/async.c | 8

[PATCH v2 3/3] aio-posix: keep aio_notify_me disabled during polling

2020-08-05 Thread Stefan Hajnoczi
Polling only monitors the ctx->notified field and does not need the ctx->notifier EventNotifier to be signalled. Keep ctx->aio_notify_me disabled while polling to avoid unnecessary EventNotifier syscalls. This optimization improves virtio-blk 4KB random read performance by 18%. The following

[PATCH v2 0/3] aio-posix: keep aio_notify_me disabled during polling

2020-08-05 Thread Stefan Hajnoczi
v2: * Added smp_mb() in aio_notify_accept() [Paolo] * Added comments about memory barrier pairing [Paolo] * Eliminated extra aio_compute_timeout() before calling ppoll() This patch series eliminates ctx->notifier EventNotifier activity when aio_poll() is in polling mode. There is no need to

[PATCH] qcow2-cluster: Fix integer left shift error in qcow2_alloc_cluster_link_l2()

2020-08-05 Thread Tuguoyi
When calculating the offset, the result of left shift operation will be promoted to type int64 automatically because the left operand of + operator is uint64_t. but the result after integer promotion may be produce an error value for us and trigger the following asserting error. For example,

Re: cleanups with long-term benefits

2020-08-05 Thread Cornelia Huck
On Wed, 5 Aug 2020 10:05:40 +0100 Daniel P. Berrangé wrote: > On Wed, Aug 05, 2020 at 10:49:35AM +0200, Paolo Bonzini wrote: > > On 05/08/20 10:39, Dr. David Alan Gilbert wrote: > > >> Do you really use "git blame" that much? "git log -S" does more or less > > >> the same function (in a

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Daniel P . Berrangé
On Wed, Aug 05, 2020 at 10:49:35AM +0200, Paolo Bonzini wrote: > On 05/08/20 10:39, Dr. David Alan Gilbert wrote: > >> Do you really use "git blame" that much? "git log -S" does more or less > >> the same function (in a different way) and is not affected as much by > >> large code movement and

Re: [PATCH 3/3] aio-posix: keep aio_notify_me disabled during polling

2020-08-05 Thread Stefan Hajnoczi
On Tue, Aug 04, 2020 at 06:53:09PM +0200, Paolo Bonzini wrote: > On 04/08/20 12:29, Stefan Hajnoczi wrote: > > On Tue, Aug 04, 2020 at 06:28:04AM +0100, Stefan Hajnoczi wrote: > >> @@ -597,15 +574,38 @@ bool aio_poll(AioContext *ctx, bool blocking) > >> * system call---a single round of

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Markus Armbruster
Paolo Bonzini writes: > On 05/08/20 09:36, Markus Armbruster wrote: >> There's also the longer term pain of having to work around git-blame >> unable to see beyond the flag day. > > Do you really use "git blame" that much? "git log -S" does more or less > the same function (in a different way)

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Paolo Bonzini
On 05/08/20 10:39, Dr. David Alan Gilbert wrote: >> Do you really use "git blame" that much? "git log -S" does more or less >> the same function (in a different way) and is not affected as much by >> large code movement and transformation patches. > > I use it a lot! Following stuff back to

Re: [PATCH v2 2/4] iotests: Make qemu_nbd_popen() a contextmanager

2020-08-05 Thread Nir Soffer
On Wed, Aug 5, 2020 at 10:38 AM Vladimir Sementsov-Ogievskiy wrote: > > 28.07.2020 19:05, Nir Soffer wrote: > > On Tue, Jul 28, 2020 at 4:43 PM Vladimir Sementsov-Ogievskiy > > wrote: > >> > >> 28.07.2020 00:58, Nir Soffer wrote: > >>> Instead of duplicating the code to wait until the server is

Re: cleanups with long-term benefits

2020-08-05 Thread Cornelia Huck
On Wed, 5 Aug 2020 10:25:30 +0200 Paolo Bonzini wrote: > On 05/08/20 09:36, Markus Armbruster wrote: > > There's also the longer term pain of having to work around git-blame > > unable to see beyond the flag day. > > Do you really use "git blame" that much? "git log -S" does more or less >

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Markus Armbruster
Markus Armbruster writes: > Paolo Bonzini writes: [...] >> That said, after a bit more research I'm skeptical about the possibility >> of using an off-the-shelf parser because most of them either don't >> support comments, or are based on YAJL which simply discards comments. >> >> Since '//'

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > On 05/08/20 09:36, Markus Armbruster wrote: > > There's also the longer term pain of having to work around git-blame > > unable to see beyond the flag day. > > Do you really use "git blame" that much? "git log -S" does more or less > the same

Re: [PATCH v6 06/12] monitor: Make current monitor a per-coroutine property

2020-08-05 Thread Kevin Wolf
Am 05.08.2020 um 09:28 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 04.08.2020 um 15:50 hat Markus Armbruster geschrieben: > >> Kevin Wolf writes: > >> > >> > This way, a monitor command handler will still be able to access the > >> > current monitor, but when it yields,

Re: [PATCH v6 02/12] monitor: Use getter/setter functions for cur_mon

2020-08-05 Thread Kevin Wolf
Am 05.08.2020 um 09:19 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 04.08.2020 um 14:46 hat Markus Armbruster geschrieben: > >> > diff --git a/monitor/hmp.c b/monitor/hmp.c > >> > index d598dd02bb..f609fcf75b 100644 > >> > --- a/monitor/hmp.c > >> > +++ b/monitor/hmp.c > >> >

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Paolo Bonzini
On 05/08/20 09:36, Markus Armbruster wrote: > There's also the longer term pain of having to work around git-blame > unable to see beyond the flag day. Do you really use "git blame" that much? "git log -S" does more or less the same function (in a different way) and is not affected as much by

Re: [PATCH 0/2] qcow2: Release read-only bitmaps when inactivated

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
30.07.2020 15:02, Max Reitz wrote: Hi, When beginning migration, the qcow2 driver syncs all persistent bitmaps to disk and then releases them. If the user decides to continue on the source after migration, those bitmaps are re-loaded from the qcow2 image. However, we only do this for bitmaps

Re: [PATCH v11 09/11] qcow2_format.py: collect fields to dump in JSON format

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
29.07.2020 08:56, Andrey Shinkevich wrote: On 28.07.2020 14:09, Vladimir Sementsov-Ogievskiy wrote: 17.07.2020 11:14, Andrey Shinkevich wrote: As __dict__ is being extended with class members we do not want to print, add the to_dict() method to classes that returns a dictionary with desired

Re: [PATCH v2 2/4] iotests: Make qemu_nbd_popen() a contextmanager

2020-08-05 Thread Vladimir Sementsov-Ogievskiy
28.07.2020 19:05, Nir Soffer wrote: On Tue, Jul 28, 2020 at 4:43 PM Vladimir Sementsov-Ogievskiy wrote: 28.07.2020 00:58, Nir Soffer wrote: Instead of duplicating the code to wait until the server is ready and remember to terminate the server and wait for it, make it possible to use like

Re: cleanups with long-term benefits (was Re: [PATCH] schemas: Add vim modeline)

2020-08-05 Thread Markus Armbruster
John Snow writes: > On 8/4/20 4:03 AM, Markus Armbruster wrote: >> The pain of tweaking the parser is likely dwarved several times over by >> the pain of the flag day. > > You mention this often; I wonder if I misunderstand the critique, > because the pain of a "flag day" for a new file format

Re: [PATCH v6 06/12] monitor: Make current monitor a per-coroutine property

2020-08-05 Thread Markus Armbruster
Kevin Wolf writes: > Am 04.08.2020 um 15:50 hat Markus Armbruster geschrieben: >> Kevin Wolf writes: >> >> > This way, a monitor command handler will still be able to access the >> > current monitor, but when it yields, all other code code will correctly >> > get NULL from monitor_cur(). >> >

Re: [PATCH v6 02/12] monitor: Use getter/setter functions for cur_mon

2020-08-05 Thread Markus Armbruster
Kevin Wolf writes: > Am 04.08.2020 um 14:46 hat Markus Armbruster geschrieben: >> > diff --git a/monitor/hmp.c b/monitor/hmp.c >> > index d598dd02bb..f609fcf75b 100644 >> > --- a/monitor/hmp.c >> > +++ b/monitor/hmp.c >> > @@ -1301,11 +1301,11 @@ cleanup: >> > static void monitor_read(void