Re: [PATCH v6 9/9] iotests: add pylintrc file

2020-03-04 Thread Markus Armbruster
John Snow writes: > On 3/4/20 2:22 AM, Markus Armbruster wrote: >> John Snow writes: >> >>> Repeatable results. run `pylint iotests.py` and you should get a pass. >> >> Start your sentences with a capital letter, please. >> > > The German complains about the capitalization, but not the senten

Re: [PATCH v3 12/20] hw/ide: Let the DMAIntFunc prototype use a boolean 'is_write' argument

2020-03-04 Thread John Snow
On 2/20/20 8:05 AM, Philippe Mathieu-Daudé wrote: > The 'is_write' argument is either 0 or 1. > Convert it to a boolean type. > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/hw/ide/internal.h | 2 +- > hw/dma/rc4030.c | 6 +++--- > hw/ide/ahci.c | 2 +- > hw/id

Re: [PATCH v3 11/20] hw/ide/internal: Remove unused DMARestartFunc typedef

2020-03-04 Thread John Snow
On 2/20/20 8:05 AM, Philippe Mathieu-Daudé wrote: > The IDE DMA restart callback has been removed in commit fe09c7c9f0. > > Fixes: fe09c7c9f0 > Signed-off-by: Philippe Mathieu-Daudé > --- > include/hw/ide/internal.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/include/hw/ide/inter

[PATCH v2 0/3] iotests: add JobRunner framework

2020-03-04 Thread John Snow
Requires: 20200304213818.15341-1-js...@redhat.com (This requires the iotests pylint & logging series.) The basic idea is to make a generic job runtime manager and allow callers to subclass the manager. Then, instead of adding callback arguments to the function all the time, we have à la carte cus

[PATCH v2 1/3] qmp.py: change event_wait to use a dict

2020-03-04 Thread John Snow
It's easier to work with than a list of tuples, because we can check the keys for membership. Signed-off-by: John Snow --- python/qemu/machine.py| 10 +- tests/qemu-iotests/040| 12 ++-- tests/qemu-iotests/260| 5 +++-- tests/qemu-iotests/iotests.py | 16

[PATCH v2 3/3] iotests: modify test 040 to use JobRunner

2020-03-04 Thread John Snow
Instead of having somewhat reproduced it for itself. Signed-off-by: John Snow --- tests/qemu-iotests/040 | 51 +- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/tests/qemu-iotests/040 b/tests/qemu-iotests/040 index 90b59081ff..e2ef3bb812 1

[PATCH v2 2/3] iotests: add JobRunner class

2020-03-04 Thread John Snow
The idea is that instead of increasing the arguments to job_run all the time, create a more general-purpose job runner that can be subclassed to do interesting things with. pylint note: the 'callbacks' option guards against unused warning arguments in functions designated as callbacks. It does not

Re: [PATCH v7 06/10] iotests: limit line length to 79 chars

2020-03-04 Thread John Snow
On 3/4/20 4:58 PM, Philippe Mathieu-Daudé wrote: > Do we want to indent Python like C and align argument below opening > parenthesis? Except when using sys.stderr.write() you seem to do it. This isn't an argument to write, it's an argument to the format string, so I will say "no." For *where*

Re: [PATCH v7 01/10] iotests: do a light delinting

2020-03-04 Thread John Snow
On 3/4/20 4:45 PM, Philippe Mathieu-Daudé wrote: > I don't understand the rational for this change, but the result is > correct anyway, so thanks for this nice cleanup! Leftover from when 'no-else-return' was enabled. It's mostly harmless.

Re: [PATCH 2/2] via-ide: Also emulate non 100% native mode

2020-03-04 Thread BALATON Zoltan
On Wed, 4 Mar 2020, Mark Cave-Ayland wrote: On 04/03/2020 00:22, BALATON Zoltan wrote: So on that basis the best explanation as to what is happening is the comment in the link you provided here: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/powerpc/platforms/chrp/pci

Re: [PATCH v7 06/10] iotests: limit line length to 79 chars

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 10:38 PM, John Snow wrote: 79 is the PEP8 recommendation. This recommendation works well for reading patch diffs in TUI email clients. Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 69 ++- tests/qemu-iotests/pylintrc | 6 ++- 2 fil

Re: [PATCH v7 04/10] iotests: replace mutable list default args

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 10:38 PM, John Snow wrote: It's bad hygiene: if we modify this list, it will be modified across all invocations. (Remaining bad usages are fixed in a subsequent patch which changes the function signature anyway.) Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 24 +

Re: [PATCH v7 01/10] iotests: do a light delinting

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 10:38 PM, John Snow wrote: This doesn't fix everything in here, but it does help clean up the pylint report considerably. This should be 100% style changes only; the intent is to make pylint more useful by working on establishing a baseline for iotests that we can gate against in the f

Re: [PATCH v7 09/10] iotests: Mark verify functions as private

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 10:38 PM, John Snow wrote: Discourage their use. I recommend you to repeat the subject, else it is harder to review looking only at patch description. (Also, make pending patches not yet using the new entry points fail in a very obvious way.) Reviewed-by: Max Reitz Signed-off-b

[PATCH v7 07/10] iotests: add script_initialize

2020-03-04 Thread John Snow
Like script_main, but doesn't require a single point of entry. Replace all existing initialization sections with this drop-in replacement. This brings debug support to all existing script-style iotests. Reviewed-by: Max Reitz Signed-off-by: John Snow --- tests/qemu-iotests/149| 3 +-

[PATCH v7 06/10] iotests: limit line length to 79 chars

2020-03-04 Thread John Snow
79 is the PEP8 recommendation. This recommendation works well for reading patch diffs in TUI email clients. Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 69 ++- tests/qemu-iotests/pylintrc | 6 ++- 2 files changed, 48 insertions(+), 27 deletions

[PATCH v7 05/10] iotests: add pylintrc file

2020-03-04 Thread John Snow
This allows others to get repeatable results with pylint. If you run `pylint iotests.py`, you should see a 100% pass. Signed-off-by: John Snow --- tests/qemu-iotests/pylintrc | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 tests/qemu-iotests/pylintrc diff --git

[PATCH v7 09/10] iotests: Mark verify functions as private

2020-03-04 Thread John Snow
Discourage their use. (Also, make pending patches not yet using the new entry points fail in a very obvious way.) Reviewed-by: Max Reitz Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/q

[PATCH v7 04/10] iotests: replace mutable list default args

2020-03-04 Thread John Snow
It's bad hygiene: if we modify this list, it will be modified across all invocations. (Remaining bad usages are fixed in a subsequent patch which changes the function signature anyway.) Signed-off-by: John Snow --- tests/qemu-iotests/iotests.py | 24 1 file changed, 12

[PATCH v7 10/10] iotests: use python logging for iotests.log()

2020-03-04 Thread John Snow
We can turn logging on/off globally instead of per-function. Remove use_log from run_job, and use python logging to turn on diffable output when we run through a script entry point. iotest 245 changes output order due to buffering reasons. An extended note on python logging: A NullHandler is a

[PATCH v7 00/10] iotests: use python logging

2020-03-04 Thread John Snow
This series uses python logging to enable output conditionally on iotests.log(). We unify an initialization call (which also enables debugging output for those tests with -d) and then make the switch inside of iotests. It will help alleviate the need to create logged/unlogged versions of all the v

[PATCH v7 03/10] iotests: ignore import warnings from pylint

2020-03-04 Thread John Snow
The right way to solve this is to come up with a virtual environment infrastructure that sets all the paths correctly, and/or to create installable python modules that can be imported normally. That's hard, so just silence this error for now. Signed-off-by: John Snow --- tests/qemu-iotests/iote

[PATCH v7 02/10] iotests: don't use 'format' for drive_add

2020-03-04 Thread John Snow
It shadows (with a different type) the built-in format. Use something else. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Max Reitz Signed-off-by: John Snow --- tests/qemu-iotests/055| 3 ++- tests/qemu-iotests/iotests.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-)

[PATCH v7 01/10] iotests: do a light delinting

2020-03-04 Thread John Snow
This doesn't fix everything in here, but it does help clean up the pylint report considerably. This should be 100% style changes only; the intent is to make pylint more useful by working on establishing a baseline for iotests that we can gate against in the future. This will be important if (when?

[PATCH v7 08/10] iotest 258: use script_main

2020-03-04 Thread John Snow
Since this one is nicely factored to use a single entry point, use script_main to run the tests. Signed-off-by: John Snow Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Max Reitz --- tests/qemu-iotests/258 | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/

Re: [PATCH 2/2] via-ide: Also emulate non 100% native mode

2020-03-04 Thread Mark Cave-Ayland
On 04/03/2020 00:22, BALATON Zoltan wrote: So on that basis the best explanation as to what is happening is the comment in the link you provided here: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/powerpc/platforms/chrp/pci.c?h=v4.14.172#n353 >

Re: [PATCH v2 0/2] misc: Replace zero-length arrays with flexible array member

2020-03-04 Thread John Snow
On 3/4/20 10:38 AM, Philippe Mathieu-Daudé wrote: > v2: > - do not modify qed.h (structure with single member) > - based on hw/scsi/spapr_vscsi fix series: > https://mid.mail-archive.com/20200304153311.22959-1-philmd@redhat.com > > This is a tree-wide cleanup inspired by a Linux kernel commit

Re: [PATCH v6 9/9] iotests: add pylintrc file

2020-03-04 Thread John Snow
On 3/4/20 2:22 AM, Markus Armbruster wrote: > John Snow writes: > >> Repeatable results. run `pylint iotests.py` and you should get a pass. > > Start your sentences with a capital letter, please. > The German complains about the capitalization, but not the sentence fragment. >> >> Signed-o

Re: [PATCH v6 7/9] iotests: ignore import warnings from pylint

2020-03-04 Thread John Snow
On 3/3/20 7:02 PM, Philippe Mathieu-Daudé wrote: > On 3/3/20 8:57 PM, John Snow wrote: >> On 2/27/20 9:14 AM, Philippe Mathieu-Daudé wrote: >>> On 2/27/20 1:06 AM, John Snow wrote: The right way to solve this is to come up with a virtual environment infrastructure that sets all the pat

Re: [PATCH v6 1/9] iotests: do a light delinting

2020-03-04 Thread John Snow
On 3/4/20 6:12 AM, Kevin Wolf wrote: > Am 03.03.2020 um 22:25 hat John Snow geschrieben: >> >> >> On 2/27/20 7:59 AM, Max Reitz wrote: >>> On 27.02.20 01:06, John Snow wrote: This doesn't fix everything in here, but it does help clean up the pylint report considerably. This s

[PATCH v2 0/2] misc: Replace zero-length arrays with flexible array member

2020-03-04 Thread Philippe Mathieu-Daudé
v2: - do not modify qed.h (structure with single member) - based on hw/scsi/spapr_vscsi fix series: https://mid.mail-archive.com/20200304153311.22959-1-philmd@redhat.com This is a tree-wide cleanup inspired by a Linux kernel commit (from Gustavo A. R. Silva). --v-- description start --v-- Th

[PATCH v2 1/2] misc: Replace zero-length arrays with flexible array member (automatic)

2020-03-04 Thread Philippe Mathieu-Daudé
Description copied from Linux kernel commit from Gustavo A. R. Silva (see [3]): --v-- description start --v-- The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a

Re: [PATCH 0/2] misc: Replace zero-length arrays with flexible array member

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 4:35 PM, Philippe Mathieu-Daudé wrote: v2: - do not modify qed.h (structure with single member) - based on hw/scsi/spapr_vscsi fix series This is a tree-wide cleanup inspired by a Linux kernel commit (from Gustavo A. R. Silva). Please ignore, for some reason the 'v2' tag is missing.

[PATCH 1/2] misc: Replace zero-length arrays with flexible array member (automatic)

2020-03-04 Thread Philippe Mathieu-Daudé
Description copied from Linux kernel commit from Gustavo A. R. Silva (see [3]): --v-- description start --v-- The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a

[PATCH v2 2/2] misc: Replace zero-length arrays with flexible array member (manual)

2020-03-04 Thread Philippe Mathieu-Daudé
Description copied from Linux kernel commit from Gustavo A. R. Silva (see [3]): --v-- description start --v-- The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a

[PATCH 0/2] misc: Replace zero-length arrays with flexible array member

2020-03-04 Thread Philippe Mathieu-Daudé
v2: - do not modify qed.h (structure with single member) - based on hw/scsi/spapr_vscsi fix series This is a tree-wide cleanup inspired by a Linux kernel commit (from Gustavo A. R. Silva). --v-- description start --v-- The current codebase makes use of the zero-length array language extensio

Re: [PATCH v7 03/11] scripts: add coccinelle script to use auto propagated errp

2020-03-04 Thread Markus Armbruster
Vladimir Sementsov-Ogievskiy writes: > 23.02.2020 11:55, Markus Armbruster wrote: >> Vladimir Sementsov-Ogievskiy writes: >> >>> Script adds ERRP_AUTO_PROPAGATE macro invocation where appropriate and >>> does corresponding changes in code (look for details in >>> include/qapi/error.h) >>> >>> Us

Re: [PATCH v5 2/5] qcow2: introduce compression type feature

2020-03-04 Thread Markus Armbruster
Denis Plotnikov writes: > The patch adds some preparation parts for incompatible compression type > feature to qcow2 allowing the use different compression methods for > image clusters (de)compressing. > > It is implied that the compression type is set on the image creation and > can be changed o

Re: [PATCH v9 0/4] delete created files when block_crypto_co_create_opts_luks fails

2020-03-04 Thread Daniel Henrique Barboza
Ping On 1/30/20 6:39 PM, Daniel Henrique Barboza wrote: The version 8 of this patch series got buried and it's now conflicting with master. Rebase and re-sending it. Also, I contemplated the idea of moving/copying the password verification in qcrypto_block_luks_create() all the way back to the

Re: [PATCH] block/qcow2-threads: fix qcow2_decompress

2020-03-04 Thread Ján Tomko
On a Monday in 2020, Vladimir Sementsov-Ogievskiy wrote: On success path we return what inflate() returns instead of 0. And it most probably works for Z_STREAM_END as it is positive, but is definitely broken for Z_BUF_ERROR. While being here, switch to errno return code, to be closer to qcow2_co

Re: [PATCH 1/2] misc: Replace zero-length arrays with flexible array member (automatic)

2020-03-04 Thread Paolo Bonzini
On 04/03/20 15:12, Philippe Mathieu-Daudé wrote: > I'll send a fix for the dangerous code. > Do you want to drop this series, or only the change in 'struct srp_rsp' > (or in all hw/scsi/srp.h). Actually I guess it makes sense I move the > 'hw/scsi/srp.h' changes with the series cleaning dangerous c

Re: [PATCH 1/2] misc: Replace zero-length arrays with flexible array member (automatic)

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 2:44 PM, Paolo Bonzini wrote: On 04/03/20 14:12, Philippe Mathieu-Daudé wrote: hw/scsi/spapr_vscsi.c:69:29: error: field 'iu' with variable sized type 'union viosrp_iu' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end]     union vio

Re: [PATCH 1/2] misc: Replace zero-length arrays with flexible array member (automatic)

2020-03-04 Thread Paolo Bonzini
On 04/03/20 14:12, Philippe Mathieu-Daudé wrote: > > hw/scsi/spapr_vscsi.c:69:29: error: field 'iu' with variable sized type > 'union viosrp_iu' not at the end of a struct or class is a GNU extension > [-Werror,-Wgnu-variable-sized-type-not-at-end] >     union viosrp_iu iu; >  

Re: [PATCH v7 03/11] scripts: add coccinelle script to use auto propagated errp

2020-03-04 Thread Vladimir Sementsov-Ogievskiy
23.02.2020 11:55, Markus Armbruster wrote: Vladimir Sementsov-Ogievskiy writes: Script adds ERRP_AUTO_PROPAGATE macro invocation where appropriate and does corresponding changes in code (look for details in include/qapi/error.h) Usage example: spatch --sp-file scripts/coccinelle/auto-propagat

[PATCH v5 4/5] qcow2: add zstd cluster compression

2020-03-04 Thread Denis Plotnikov
zstd significantly reduces cluster compression time. It provides better compression performance maintaining the same level of the compression ratio in comparison with zlib, which, at the moment, is the only compression method available. The performance test results: Test compresses and decompresse

[PATCH v5 5/5] iotests: 287: add qcow2 compression type test

2020-03-04 Thread Denis Plotnikov
The test checks fulfilling qcow2 requiriements for the compression type feature and zstd compression type operability. Signed-off-by: Denis Plotnikov Reviewed-by: Vladimir Sementsov-Ogievskiy --- tests/qemu-iotests/287 | 128 + tests/qemu-iotests/287.out

[PATCH v5 2/5] qcow2: introduce compression type feature

2020-03-04 Thread Denis Plotnikov
The patch adds some preparation parts for incompatible compression type feature to qcow2 allowing the use different compression methods for image clusters (de)compressing. It is implied that the compression type is set on the image creation and can be changed only later by image conversion, thus c

[PATCH v5 0/5] qcow2: Implement zstd cluster compression method

2020-03-04 Thread Denis Plotnikov
v5: * replace -ENOTSUP with abort in qcow2_co_decompress [Vladimir] * set cluster size for all test cases in the beginning of the 287 test v4: * the series is rebased on top of 01 "block/qcow2-threads: fix qcow2_decompress" * 01 is just a no-change resend to avoid extra dependencies.

[PATCH v5 1/5] block/qcow2-threads: fix qcow2_decompress

2020-03-04 Thread Denis Plotnikov
From: Vladimir Sementsov-Ogievskiy On success path we return what inflate() returns instead of 0. And it most probably works for Z_STREAM_END as it is positive, but is definitely broken for Z_BUF_ERROR. While being here, switch to errno return code, to be closer to qcow2_compress API (and usual

[PATCH v5 3/5] qcow2: rework the cluster compression routine

2020-03-04 Thread Denis Plotnikov
The patch enables processing the image compression type defined for the image and chooses an appropriate method for image clusters (de)compression. Signed-off-by: Denis Plotnikov Reviewed-by: Vladimir Sementsov-Ogievskiy --- block/qcow2-threads.c | 71 ---

Re: [PATCH 1/2] misc: Replace zero-length arrays with flexible array member (automatic)

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 1:51 AM, Philippe Mathieu-Daudé wrote: Description copied from Linux kernel commit from Gustavo A. R. Silva (see [3]): --v-- description start --v-- The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to

Re: [PATCH v4 5/5] iotests: 287: add qcow2 compression type test

2020-03-04 Thread Denis Plotnikov
On 04.03.2020 14:27, Vladimir Sementsov-Ogievskiy wrote: 03.03.2020 16:34, Denis Plotnikov wrote: The test checks fulfilling qcow2 requiriements for the compression type feature and zstd compression type operability. Signed-off-by: Denis Plotnikov ---   tests/qemu-iotests/287 | 127

Re: [PATCH v4 4/5] qcow2: add zstd cluster compression

2020-03-04 Thread Denis Plotnikov
On 04.03.2020 10:49, Vladimir Sementsov-Ogievskiy wrote: 03.03.2020 16:34, Denis Plotnikov wrote: zstd significantly reduces cluster compression time. It provides better compression performance maintaining the same level of the compression ratio in comparison with zlib, which, at the moment,

Re: [PATCH v4 5/5] iotests: 287: add qcow2 compression type test

2020-03-04 Thread Vladimir Sementsov-Ogievskiy
03.03.2020 16:34, Denis Plotnikov wrote: The test checks fulfilling qcow2 requiriements for the compression type feature and zstd compression type operability. Signed-off-by: Denis Plotnikov --- tests/qemu-iotests/287 | 127 + tests/qemu-iotests/287.ou

Re: [PATCH 0/2] misc: Replace zero-length arrays with flexible array member

2020-03-04 Thread Paolo Bonzini
On 04/03/20 01:51, Philippe Mathieu-Daudé wrote: > This is a tree-wide cleanup inspired by a Linux kernel commit > (from Gustavo A. R. Silva). > > --v-- description start --v-- > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the prefer

Re: [PATCH v6 1/9] iotests: do a light delinting

2020-03-04 Thread Kevin Wolf
Am 03.03.2020 um 22:25 hat John Snow geschrieben: > > > On 2/27/20 7:59 AM, Max Reitz wrote: > > On 27.02.20 01:06, John Snow wrote: > >> This doesn't fix everything in here, but it does help clean up the > >> pylint report considerably. > >> > >> This should be 100% style changes only; the inten

Re: [PATCH 0/2] block: bdrv_reopen() with backing file in different AioContext

2020-03-04 Thread Kevin Wolf
Am 04.03.2020 um 10:29 hat Peter Krempa geschrieben: > On Thu, Feb 27, 2020 at 19:18:02 +0100, Kevin Wolf wrote: > > Kevin Wolf (2): > > iotests: Refactor blockdev-reopen test for iothreads > > block: bdrv_reopen() with backing file in different AioContext > > Thanks for the patches. It fixes

Re: [PATCH 0/2] block: bdrv_reopen() with backing file in different AioContext

2020-03-04 Thread Peter Krempa
On Thu, Feb 27, 2020 at 19:18:02 +0100, Kevin Wolf wrote: > Kevin Wolf (2): > iotests: Refactor blockdev-reopen test for iothreads > block: bdrv_reopen() with backing file in different AioContext Thanks for the patches. It fixes the problem we've talked about: Tested-by: Peter Krempa

Re: [PATCH 2/2] misc: Replace zero-length arrays with flexible array member (manual)

2020-03-04 Thread Philippe Mathieu-Daudé
On 3/4/20 1:58 AM, Philippe Mathieu-Daudé wrote: Description copied from Linux kernel commit from Gustavo A. R. Silva (see [3]): --v-- description start --v-- The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to

Re: [PATCH 2/2] misc: Replace zero-length arrays with flexible array member (manual)

2020-03-04 Thread David Hildenbrand
On 04.03.20 01:58, Philippe Mathieu-Daudé wrote: > Description copied from Linux kernel commit from Gustavo A. R. Silva > (see [3]): > > --v-- description start --v-- > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechan

Re: [PATCH 1/2] misc: Replace zero-length arrays with flexible array member (automatic)

2020-03-04 Thread David Hildenbrand
On 04.03.20 01:51, Philippe Mathieu-Daudé wrote: > Description copied from Linux kernel commit from Gustavo A. R. Silva > (see [3]): > > --v-- description start --v-- > > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechan

Re: [PATCH v4 07/11] monitor/hmp: move hmp_snapshot_* to block-hmp-cmds.c hmp_snapshot_blkdev is from GPLv2 version of the hmp-cmds.c thus have to change the licence to GPLv2

2020-03-04 Thread Maxim Levitsky
On Tue, 2020-03-03 at 18:15 +0100, Kevin Wolf wrote: > Am 30.01.2020 um 13:34 hat Maxim Levitsky geschrieben: > > Signed-off-by: Maxim Levitsky > > Reviewed-by: Dr. David Alan Gilbert > > Very long subject line. I suppose the license notice should be in the > body instead. > > > block/monitor/

Re: [PATCH v4 02/11] monitor/hmp: uninline add_init_drive

2020-03-04 Thread Maxim Levitsky
On Tue, 2020-03-03 at 18:10 +0100, Kevin Wolf wrote: > Am 30.01.2020 um 13:34 hat Maxim Levitsky geschrieben: > > This is only used by hmp_drive_add. > > The code is just a bit shorter this way. > > > > No functional changes > > > > Signed-off-by: Maxim Levitsky > > Reviewed-by: Markus Armbruste