Re: [PATCH v7 03/14] block: check return value of bdrv_open_child and drop error propagation

2021-02-15 Thread Vladimir Sementsov-Ogievskiy
15.02.2021 23:04, Eric Blake wrote: On 2/15/21 3:22 AM, Kevin Wolf wrote: With this patch applied, 'check unit-test' fails with: Running test test-replication Unexpected error in bdrv_open_driver() at ../block.c:1481: Could not open '/tmp/p_local_disk.z1Ugyc': Invalid argument ERROR

[PATCH v2 3/6] hw/sd: sdhci: Correctly set the controller status for ADMA

2021-02-15 Thread Bin Meng
When an ADMA transfer is started, the codes forget to set the controller status to indicate a transfer is in progress. With this fix, the following 2 reproducers: https://paste.debian.net/plain/1185136 https://paste.debian.net/plain/1185141 cannot be reproduced with the following QEMU command

[PATCH v2 5/6] hw/sd: sdhci: Limit block size only when SDHC_BLKSIZE register is writable

2021-02-15 Thread Bin Meng
The codes to limit the maximum block size is only necessary when SDHC_BLKSIZE register is writable. Signed-off-by: Bin Meng --- Changes in v2: - new patch: sdhci: Limit block size only when SDHC_BLKSIZE register is writable hw/sd/sdhci.c | 14 +++--- 1 file changed, 7 insertions(+),

[PATCH v2 4/6] hw/sd: sdhci: Simplify updating s->prnsts in sdhci_sdma_transfer_multi_blocks()

2021-02-15 Thread Bin Meng
s->prnsts is updated in both branches of the if () else () statement. Move the common bits outside so that it is cleaner. Signed-off-by: Bin Meng --- (no changes since v1) hw/sd/sdhci.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c

[PATCH v2 6/6] hw/sd: sdhci: Reset the data pointer of s->fifo_buffer[] when a different block size is programmed

2021-02-15 Thread Bin Meng
If the block size is programmed to a different value from the previous one, reset the data pointer of s->fifo_buffer[] so that s->fifo_buffer[] can be filled in using the new block size in the next transfer. With this fix, the following reproducer: outl 0xcf8 0x80001010 outl 0xcfc 0xe000

[PATCH v2 2/6] hw/sd: sdhci: Don't write to SDHC_SYSAD register when transfer is in progress

2021-02-15 Thread Bin Meng
Per "SD Host Controller Standard Specification Version 7.00" chapter 2.2.1 SDMA System Address Register: This register can be accessed only if no transaction is executing (i.e., after a transaction has stopped). With this fix, the following reproducer: https://paste.debian.net/plain/1185137

[PATCH v2 0/6] hw/sd: sdhci: Fixes to CVE-2020-17380, CVE-2020-25085, CVE-2021-3409

2021-02-15 Thread Bin Meng
This series includes several fixes to CVE-2020-17380, CVE-2020-25085 and CVE-2021-3409 that are heap-based buffer overflow issues existing in the sdhci model. These CVEs are pretty much similar, and were filed using different reproducers. With this series, current known reproducers I have cannot

[PATCH v2 1/6] hw/sd: sdhci: Don't transfer any data when command time out

2021-02-15 Thread Bin Meng
At the end of sdhci_send_command(), it starts a data transfer if the command register indicates data is associated. But the data transfer should only be initiated when the command execution has succeeded. With this fix, the following reproducer: outl 0xcf8 0x80001810 outl 0xcfc 0xe1068000 outl

Re: [PATCH 1/6] Python: close the log file kept by QEMUMachine before reading it

2021-02-15 Thread Cleber Rosa
On Mon, Feb 15, 2021 at 05:04:24PM -0500, John Snow wrote: > On 2/11/21 5:01 PM, Cleber Rosa wrote: > > Closing a file that is open for writing, and then reading from it > > sounds like a better idea than the opposite, given that the content > > will be flushed. > > > > Reference:

Re: [PATCH 1/6] Python: close the log file kept by QEMUMachine before reading it

2021-02-15 Thread Cleber Rosa
On Mon, Feb 15, 2021 at 03:30:16PM -0300, Wainer dos Santos Moschetta wrote: > Hi, > > On 2/11/21 7:01 PM, Cleber Rosa wrote: > > Closing a file that is open for writing, and then reading from it > > sounds like a better idea than the opposite, given that the content > > will be flushed. > > > >

Re: [PATCH v9 0/6] Rework iotests/check

2021-02-15 Thread John Snow
On 1/26/21 10:15 AM, Vladimir Sementsov-Ogievskiy wrote: OK, thanks for handling it! When will we move to python 3.7? "I don't know, but it seems like a very long time." The nominal EOL for Python 3.6 is this December; see https://www.python.org/dev/peps/pep-0494/ Debian 10 ships 3.7.

Re: [PATCH 0/4] hw/sd: sdhci: Fixes to CVE-2020-17380, CVE-2020-25085, CVE-2021-3409

2021-02-15 Thread Alexander Bulekov
On 210216 0855, Bin Meng wrote: > Hi Alex, > > On Tue, Feb 16, 2021 at 12:48 AM Alexander Bulekov wrote: > > > > Hi Bin, > > Thank you for this. I ran through the OSS-Fuzz tests again, and it found > > one thing: > > Thanks for testing. Are there instructions to run OSS-Fuzz tests myself? Yes

Re: [PATCH 0/4] hw/sd: sdhci: Fixes to CVE-2020-17380, CVE-2020-25085, CVE-2021-3409

2021-02-15 Thread Bin Meng
Hi Alex, On Tue, Feb 16, 2021 at 12:48 AM Alexander Bulekov wrote: > > Hi Bin, > Thank you for this. I ran through the OSS-Fuzz tests again, and it found > one thing: Thanks for testing. Are there instructions to run OSS-Fuzz tests myself? > Maybe this is already much better than the current

Re: [PATCH] iotests: Fix up python style in 300

2021-02-15 Thread John Snow
On 2/15/21 5:05 PM, Eric Blake wrote: Break some long lines, and relax our type hints to be more generic to any JSON, in order to more easily permit the additional JSON depth now possible in migration parameters. Detected by iotest 297. Fixes: ca4bfec41d56 (qemu-iotests: 300: Add test case

Re: [PATCH 3/6] Acceptance Tests: use the job work directory for created VMs

2021-02-15 Thread John Snow
On 2/11/21 5:01 PM, Cleber Rosa wrote: The QEMUMachine uses a base temporary directory for all temporary needs. By setting it to the Avocado's workdir, it's possible to keep the temporary files during debugging sessions much more easily by setting the "--keep-tmp" command line option. Makes

Re: [PATCH 2/6] Python: expose QEMUMachine's temporary directory

2021-02-15 Thread John Snow
On 2/11/21 6:35 PM, Philippe Mathieu-Daudé wrote: Not this patch fault, but I see we use /var/tmp since commit 66613974468 ("scripts: refactor the VM class in iotests for reuse"). Can we use an OS agnostic method to get temp storage directory instead? As a follow-up. Feel free to add

Re: [PATCH 2/6] Python: expose QEMUMachine's temporary directory

2021-02-15 Thread John Snow
On 2/15/21 1:50 PM, Wainer dos Santos Moschetta wrote: In qtest.QEMUQtestMachine.__init__(), the argument named 'test_dir' still make sense, right? - Wainer It might upset pylint/mypy to rename parameters in the initializer for a parent class. If we rename it in the base class, we should

Re: [PATCH 2/6] Python: expose QEMUMachine's temporary directory

2021-02-15 Thread John Snow
On 2/11/21 5:01 PM, Cleber Rosa wrote: Each instance of qemu.machine.QEMUMachine currently has a "test directory", which may not have any relation to a "test", and it's really a temporary directory. Users instantiating the QEMUMachine class will be able to set the location of the directory that

Re: [PATCH 1/6] Python: close the log file kept by QEMUMachine before reading it

2021-02-15 Thread Eric Blake
On 2/15/21 4:04 PM, John Snow wrote: > On 2/11/21 5:01 PM, Cleber Rosa wrote: >> Closing a file that is open for writing, and then reading from it >> sounds like a better idea than the opposite, given that the content >> will be flushed. >> >> Reference:

[PATCH] iotests: Fix up python style in 300

2021-02-15 Thread Eric Blake
Break some long lines, and relax our type hints to be more generic to any JSON, in order to more easily permit the additional JSON depth now possible in migration parameters. Detected by iotest 297. Fixes: ca4bfec41d56 (qemu-iotests: 300: Add test case for modifying persistence of bitmap)

Re: [PATCH 1/6] Python: close the log file kept by QEMUMachine before reading it

2021-02-15 Thread John Snow
On 2/11/21 5:01 PM, Cleber Rosa wrote: Closing a file that is open for writing, and then reading from it sounds like a better idea than the opposite, given that the content will be flushed. Reference: https://docs.python.org/3/library/io.html#io.IOBase.close Signed-off-by: Cleber Rosa ---

Re: [PULL 3/5] qemu-iotests: 300: Add test case for modifying persistence of bitmap

2021-02-15 Thread John Snow
On 2/15/21 3:26 PM, Eric Blake wrote: On 2/15/21 1:00 PM, John Snow wrote: On 2/15/21 1:25 PM, Eric Blake wrote: -BlockBitmapMapping = List[Dict[str, Union[str, List[Dict[str, str] +BlockBitmapMapping = List[Dict[str, +   Union[str, + 

Re: [PATCH v4 00/24] python: create installable package

2021-02-15 Thread John Snow
On 2/11/21 9:52 PM, Cleber Rosa wrote: On Thu, Feb 11, 2021 at 01:58:32PM -0500, John Snow wrote: This series factors the python/qemu directory as an installable package. It does not yet actually change the mechanics of how any other python source in the tree actually consumes it (yet), beyond

Re: [PATCH v4 03/24] python: create qemu packages

2021-02-15 Thread John Snow
On 2/12/21 12:17 AM, Cleber Rosa wrote: On Thu, Feb 11, 2021 at 01:58:35PM -0500, John Snow wrote: move python/qemu/*.py to python/qemu/[machine, qmp]/*.py and update import directives across the tree. This is done to create a PEP420 namespace package, in which we may create subpackages. To do

Re: [PULL 3/5] qemu-iotests: 300: Add test case for modifying persistence of bitmap

2021-02-15 Thread Eric Blake
On 2/15/21 1:00 PM, John Snow wrote: > On 2/15/21 1:25 PM, Eric Blake wrote: >> -BlockBitmapMapping = List[Dict[str, Union[str, List[Dict[str, str] >> +BlockBitmapMapping = List[Dict[str, >> +   Union[str, >> + List[Dict[str, >> + 

Re: [PATCH v7 03/14] block: check return value of bdrv_open_child and drop error propagation

2021-02-15 Thread Eric Blake
On 2/15/21 3:22 AM, Kevin Wolf wrote: >> With this patch applied, 'check unit-test' fails with: >> >> Running test test-replication >> Unexpected error in bdrv_open_driver() at ../block.c:1481: >> Could not open '/tmp/p_local_disk.z1Ugyc': Invalid argument >> ERROR test-replication - missing test

Re: [PULL 00/11] Block layer patches

2021-02-15 Thread Peter Maydell
On Mon, 15 Feb 2021 at 15:01, Kevin Wolf wrote: > > The following changes since commit 0280396a33c7210c4df5306afeab63411a41535a: > > Merge remote-tracking branch > 'remotes/stsquad/tags/pull-testing-gdbstub-150221-1' into staging (2021-02-15 > 10:13:13 +) > > are available in the Git

Re: [PATCH 6/6] tests/acceptance/virtio-gpu.py: preserve virtio-user-gpu log

2021-02-15 Thread Wainer dos Santos Moschetta
On 2/11/21 7:01 PM, Cleber Rosa wrote: At location already prepared for keeping the test's log files. While at it, log info about its location (in the main test log file), instead of printing it out. Reference:

Re: [PATCH 5/6] Acceptance Tests: distinguish between temp and logs dir

2021-02-15 Thread Wainer dos Santos Moschetta
Hi, On 2/11/21 7:01 PM, Cleber Rosa wrote: Logs can be very important to debug issues, and currently QEMUMachine instances will remove logs that are created under the temporary directories. With this change, the stdout and stderr generated by the QEMU process started by QEMUMachine will always

Re: [PATCH 4/6] Acceptance Tests: log information when creating QEMUMachine

2021-02-15 Thread Wainer dos Santos Moschetta
On 2/11/21 7:01 PM, Cleber Rosa wrote: Including its base temporary directory, given that information useful for debugging can be put there. Signed-off-by: Cleber Rosa --- tests/acceptance/avocado_qemu/__init__.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) Reviewed-by:

Re: [PATCH 3/6] Acceptance Tests: use the job work directory for created VMs

2021-02-15 Thread Wainer dos Santos Moschetta
On 2/11/21 7:01 PM, Cleber Rosa wrote: The QEMUMachine uses a base temporary directory for all temporary needs. By setting it to the Avocado's workdir, it's possible to keep the temporary files during debugging sessions much more easily by setting the "--keep-tmp" command line option.

Re: [PULL 3/5] qemu-iotests: 300: Add test case for modifying persistence of bitmap

2021-02-15 Thread John Snow
On 2/15/21 1:25 PM, Eric Blake wrote: -BlockBitmapMapping = List[Dict[str, Union[str, List[Dict[str, str] +BlockBitmapMapping = List[Dict[str, + Union[str, + List[Dict[str, +

Re: [PATCH 2/6] Python: expose QEMUMachine's temporary directory

2021-02-15 Thread Wainer dos Santos Moschetta
Hi, On 2/11/21 7:01 PM, Cleber Rosa wrote: Each instance of qemu.machine.QEMUMachine currently has a "test directory", which may not have any relation to a "test", and it's really a temporary directory. Users instantiating the QEMUMachine class will be able to set the location of the directory

Re: [PATCH 1/6] Python: close the log file kept by QEMUMachine before reading it

2021-02-15 Thread Wainer dos Santos Moschetta
Hi, On 2/11/21 7:01 PM, Cleber Rosa wrote: Closing a file that is open for writing, and then reading from it sounds like a better idea than the opposite, given that the content will be flushed. Reference: https://docs.python.org/3/library/io.html#io.IOBase.close Signed-off-by: Cleber Rosa ---

Re: [PULL 3/5] qemu-iotests: 300: Add test case for modifying persistence of bitmap

2021-02-15 Thread Eric Blake
On 2/15/21 11:09 AM, Kevin Wolf wrote: >>> This breaks 297: >>> === mypy === >>> +300:646: error: Dict entry 2 has incompatible type "str": "Dict[str, >>> bool]"; expected "str": "str" >>> +Found 1 error in 1 file (checked 1 source file) >> >> is beyond my skill. The typing at line 33: >> >>

Re: [PATCH 2/4] hw/block/fdc: Remove the check_media_rate property

2021-02-15 Thread John Snow
On 2/13/21 5:41 PM, Laurent Vivier wrote: Le 08/02/2021 à 08:05, Thomas Huth a écrit : On 05/02/2021 21.15, John Snow wrote: On 2/5/21 1:37 AM, Thomas Huth wrote: On 05/02/2021 01.40, John Snow wrote: On 2/3/21 12:18 PM, Thomas Huth wrote: This was only required for the pc-1.0 and earlier

Re: [PULL 3/5] qemu-iotests: 300: Add test case for modifying persistence of bitmap

2021-02-15 Thread Kevin Wolf
Am 15.02.2021 um 17:46 hat Eric Blake geschrieben: > On 2/15/21 6:31 AM, Kevin Wolf wrote: > > Am 13.02.2021 um 00:21 hat Eric Blake geschrieben: > >> From: Peter Krempa > >> > >> Verify that the modification of the bitmap persistence over migration > >> which is controlled via

Re: [PATCH 0/4] hw/sd: sdhci: Fixes to CVE-2020-17380, CVE-2020-25085, CVE-2021-3409

2021-02-15 Thread Alexander Bulekov
Hi Bin, Thank you for this. I ran through the OSS-Fuzz tests again, and it found one thing: Maybe this is already much better than the current state of the code, so this one can be fixed in a later patch? cat << EOF | ./qemu-system-i386 -display none -machine accel=qtest \ -m 512M -nodefaults

Re: [PULL 3/5] qemu-iotests: 300: Add test case for modifying persistence of bitmap

2021-02-15 Thread Eric Blake
On 2/15/21 6:31 AM, Kevin Wolf wrote: > Am 13.02.2021 um 00:21 hat Eric Blake geschrieben: >> From: Peter Krempa >> >> Verify that the modification of the bitmap persistence over migration >> which is controlled via BitmapMigrationBitmapAliasTransform works >> properly. >> >> Based on

[PATCH 4/4] hw/sd: sdhci: Simplify updating s->prnsts in sdhci_sdma_transfer_multi_blocks()

2021-02-15 Thread Bin Meng
s->prnsts is updated in both branches of the if () else () statement. Move the common bits outside so that it is cleaner. Signed-off-by: Bin Meng --- hw/sd/sdhci.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 0b0ca6f..7a2003b

[PATCH 0/4] hw/sd: sdhci: Fixes to CVE-2020-17380, CVE-2020-25085, CVE-2021-3409

2021-02-15 Thread Bin Meng
From: Bin Meng This series includes several fixes to CVE-2020-17380, CVE-2020-25085 and CVE-2021-3409 that are heap-based buffer overflow issues existing in the sdhci model. These CVEs are pretty much similar, and were filed using different reproducers. With this series, current known

[PATCH 2/4] hw/sd: sdhci: Don't write to SDHC_SYSAD register when transfer is in progress

2021-02-15 Thread Bin Meng
Per "SD Host Controller Standard Specification Version 7.00" chapter 2.2.1 SDMA System Address Register: This register can be accessed only if no transaction is executing (i.e., after a transaction has stopped). With this fix, the following reproducer: https://paste.debian.net/plain/1185137

[PATCH 1/4] hw/sd: sdhci: Don't transfer any data when command time out

2021-02-15 Thread Bin Meng
At the end of sdhci_send_command(), it starts a data transfer if the command register indicates data is associated. But the data transfer should only be initiated when the command execution has succeeded. With this fix, the following reproducer: outl 0xcf8 0x80001810 outl 0xcfc 0xe1068000 outl

[PATCH 3/4] hw/sd: sdhci: Correctly set the controller status for ADMA

2021-02-15 Thread Bin Meng
When an ADMA transfer is started, the codes forget to set the controller status to indicate a transfer is in progress. With this fix, the following 2 reproducers: https://paste.debian.net/plain/1185136 https://paste.debian.net/plain/1185141 cannot be reproduced with the following QEMU command

[PULL 03/11] blockjob: Fix crash with IOthread when block commit after snapshot

2021-02-15 Thread Kevin Wolf
From: Michael Qiu Currently, if guest has workloads, IO thread will acquire aio_context lock before do io_submit, it leads to segmentfault when do block commit after snapshot. Just like below: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7f7c7d91f700 (LWP 99907)]

[PULL 07/11] crypto: luks: Fix tiny memory leak

2021-02-15 Thread Kevin Wolf
From: Maxim Levitsky When the underlying block device doesn't support the bdrv_co_delete_file interface, an 'Error' object was leaked. Signed-off-by: Maxim Levitsky Reviewed-by: Alberto Garcia Reviewed-by: Vladimir Sementsov-Ogievskiy Message-Id: <20201217170904.946013-2-mlevi...@redhat.com>

[PULL 10/11] monitor: Fix assertion failure on shutdown

2021-02-15 Thread Kevin Wolf
Commit 357bda95 already tried to fix the order in monitor_cleanup() by moving shutdown of the dispatcher coroutine further to the start. However, it didn't go far enough: iothread_stop() makes sure that all pending work (bottom halves) in the AioContext of the monitor iothread is completed.

[PULL 02/11] iotests: Consistent $IMGOPTS boundary matching

2021-02-15 Thread Kevin Wolf
From: Max Reitz To disallow certain refcount_bits values, some _unsupported_imgopts invocations look like "refcount_bits=1[^0-9]", i.e. they match an integer boundary with [^0-9]. This expression does not match the end of the string, though, so it breaks down when refcount_bits is the last

[PULL 06/11] tests/qemu-iotests: Remove test 259 from the "auto" group

2021-02-15 Thread Kevin Wolf
From: Thomas Huth Tests in the "auto" group should support qcow2 so that they can be run during "make check-block". Test 259 only supports "raw", so it currently always gets skipped when running "make check-block". Let's skip this unnecessary step and remove it from the auto group.

[PULL 11/11] monitor/qmp: Stop processing requests when shutdown is requested

2021-02-15 Thread Kevin Wolf
Before this patch, monitor_qmp_dispatcher_co() used to check whether shutdown is requested only when it would have to wait for new requests. If there were still some queued requests, it would try to execute all of them before shutting down. This can be surprising when the queued QMP commands take

[PULL 01/11] qemu-storage-daemon: Enable object-add

2021-02-15 Thread Kevin Wolf
As we don't have a fully QAPIfied version of object-add yet and it still has 'gen': false in the schema, it needs to be registered explicitly in init_qmp_commands() to be available for users. Fixes: 2af282ec51a27116d0402cab237b8970800f870c Signed-off-by: Kevin Wolf Message-Id:

[PULL 08/11] block: add bdrv_co_delete_file_noerr

2021-02-15 Thread Kevin Wolf
From: Maxim Levitsky This function wraps bdrv_co_delete_file for the common case of removing a file, which was just created by format driver, on an error condition. It hides the -ENOTSUPP error, and reports all other errors otherwise. Use it in luks driver Signed-off-by: Maxim Levitsky

[PULL 09/11] block: qcow2: remove the created file on initialization error

2021-02-15 Thread Kevin Wolf
From: Maxim Levitsky If the qcow initialization fails, we should remove the file if it was already created, to avoid leaving stale files around. We already do this for luks raw images. Signed-off-by: Maxim Levitsky Reviewed-by: Alberto Garcia Message-Id:

[PULL 05/11] xen-block: fix reporting of discard feature

2021-02-15 Thread Kevin Wolf
From: Roger Pau Monne Linux blkfront expects both "discard-granularity" and "discard-alignment" present on xenbus in order to properly enable the feature, not exposing "discard-alignment" left some Linux blkfront versions with a broken discard setup. This has also been addressed in Linux with:

[PULL 04/11] hw/ide/ahci: map cmd_fis as DMA_DIRECTION_TO_DEVICE

2021-02-15 Thread Kevin Wolf
From: Alexander Bulekov cmd_fis is mapped as DMA_DIRECTION_FROM_DEVICE, however, it is read from, and not written to anywhere. Fix the DMA_DIRECTION and mark cmd_fis as read-only in the code. Signed-off-by: Alexander Bulekov Message-Id: <20210119164051.89268-1-alx...@bu.edu> Signed-off-by:

[PULL 00/11] Block layer patches

2021-02-15 Thread Kevin Wolf
The following changes since commit 0280396a33c7210c4df5306afeab63411a41535a: Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-gdbstub-150221-1' into staging (2021-02-15 10:13:13 +) are available in the Git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Peter Lieven
Am 15.02.21 um 13:13 schrieb Kevin Wolf: Am 15.02.2021 um 12:45 hat Peter Lieven geschrieben: Am 15.02.21 um 12:41 schrieb Daniel P. Berrangé: On Mon, Feb 15, 2021 at 12:32:24PM +0100, Peter Lieven wrote: Am 15.02.21 um 11:24 schrieb Daniel P. Berrangé: On Tue, Jan 26, 2021 at 12:25:34PM

Re: [PATCH v6 0/3] qcow2: don't leave partially initialized file on image creation

2021-02-15 Thread Kevin Wolf
Am 17.12.2020 um 18:09 hat Maxim Levitsky geschrieben: > Use the bdrv_co_delete_file interface to delete the underlying > file if qcow2 initialization fails (e.g due to bad encryption secret) > > This makes the qcow2 driver behave the same way as the luks driver behaves. Thanks, applied to the

Re: [PULL 3/5] qemu-iotests: 300: Add test case for modifying persistence of bitmap

2021-02-15 Thread Kevin Wolf
Am 13.02.2021 um 00:21 hat Eric Blake geschrieben: > From: Peter Krempa > > Verify that the modification of the bitmap persistence over migration > which is controlled via BitmapMigrationBitmapAliasTransform works > properly. > > Based on TestCrossAliasMigration > > Signed-off-by: Peter Krempa

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Daniel P . Berrangé
On Mon, Feb 15, 2021 at 12:55:24PM +0100, Peter Lieven wrote: > Am 15.02.21 um 12:51 schrieb Daniel P. Berrangé: > > On Mon, Feb 15, 2021 at 12:45:01PM +0100, Peter Lieven wrote: > > > Am 15.02.21 um 12:41 schrieb Daniel P. Berrangé: > > > > On Mon, Feb 15, 2021 at 12:32:24PM +0100, Peter Lieven

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Kevin Wolf
Am 15.02.2021 um 12:45 hat Peter Lieven geschrieben: > Am 15.02.21 um 12:41 schrieb Daniel P. Berrangé: > > On Mon, Feb 15, 2021 at 12:32:24PM +0100, Peter Lieven wrote: > > > Am 15.02.21 um 11:24 schrieb Daniel P. Berrangé: > > > > On Tue, Jan 26, 2021 at 12:25:34PM +0100, Peter Lieven wrote: > >

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Peter Lieven
Am 15.02.21 um 12:51 schrieb Daniel P. Berrangé: On Mon, Feb 15, 2021 at 12:45:01PM +0100, Peter Lieven wrote: Am 15.02.21 um 12:41 schrieb Daniel P. Berrangé: On Mon, Feb 15, 2021 at 12:32:24PM +0100, Peter Lieven wrote: Am 15.02.21 um 11:24 schrieb Daniel P. Berrangé: On Tue, Jan 26, 2021

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Daniel P . Berrangé
On Mon, Feb 15, 2021 at 12:45:01PM +0100, Peter Lieven wrote: > Am 15.02.21 um 12:41 schrieb Daniel P. Berrangé: > > On Mon, Feb 15, 2021 at 12:32:24PM +0100, Peter Lieven wrote: > > > Am 15.02.21 um 11:24 schrieb Daniel P. Berrangé: > > > > On Tue, Jan 26, 2021 at 12:25:34PM +0100, Peter Lieven

Re: [PATCH V2 4/7] block/rbd: add bdrv_attach_aio_context

2021-02-15 Thread Peter Lieven
Am 15.02.21 um 11:20 schrieb Kevin Wolf: Am 26.01.2021 um 12:25 hat Peter Lieven geschrieben: Signed-off-by: Peter Lieven --- block/rbd.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/block/rbd.c b/block/rbd.c index f68ebcf240..7abd0252c9 100644 ---

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Peter Lieven
Am 15.02.21 um 12:41 schrieb Daniel P. Berrangé: On Mon, Feb 15, 2021 at 12:32:24PM +0100, Peter Lieven wrote: Am 15.02.21 um 11:24 schrieb Daniel P. Berrangé: On Tue, Jan 26, 2021 at 12:25:34PM +0100, Peter Lieven wrote: even luminous (version 12.2) is unmaintained for over 3 years now. Bump

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Peter Lieven
Am 15.02.21 um 11:19 schrieb Daniel P. Berrangé: On Mon, Feb 15, 2021 at 11:11:23AM +0100, Kevin Wolf wrote: Am 26.01.2021 um 12:25 hat Peter Lieven geschrieben: even luminous (version 12.2) is unmaintained for over 3 years now. Bump the requirement to get rid of the ifdef'ry in the code.

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Peter Lieven
Am 15.02.21 um 11:24 schrieb Daniel P. Berrangé: On Tue, Jan 26, 2021 at 12:25:34PM +0100, Peter Lieven wrote: even luminous (version 12.2) is unmaintained for over 3 years now. Bump the requirement to get rid of the ifdef'ry in the code. We have clear rules on when we bump minimum versions,

Re: [PATCH] tests/qemu-iotests: Remove test 259 from the "auto" group

2021-02-15 Thread Kevin Wolf
Am 15.02.2021 um 11:38 hat Thomas Huth geschrieben: > Tests in the "auto" group should support qcow2 so that they can > be run during "make check-block". Test 259 only supports "raw", so > it currently always gets skipped when running "make check-block". > Let's skip this unnecessary step and

Re: [PATCH] xen-block: fix reporting of discard feature

2021-02-15 Thread Kevin Wolf
Am 18.01.2021 um 16:49 hat Paul Durrant geschrieben: > > -Original Message- > > From: Roger Pau Monne > > Sent: 18 January 2021 15:34 > > To: qemu-de...@nongnu.org > > Cc: Roger Pau Monne ; Arthur Borsboom > > ; Stefano > > Stabellini ; Anthony Perard > > ; Paul Durrant > > ; Kevin Wolf

Re: [PATCH] hw/ide/ahci: map cmd_fis as DMA_DIRECTION_TO_DEVICE

2021-02-15 Thread Kevin Wolf
Am 19.01.2021 um 17:40 hat Alexander Bulekov geschrieben: > cmd_fis is mapped as DMA_DIRECTION_FROM_DEVICE, however, it is read > from, and not written to anywhere. Fix the DMA_DIRECTION and mark > cmd_fis as read-only in the code. > > Signed-off-by: Alexander Bulekov Thanks, applied to the

[PATCH] tests/qemu-iotests: Remove test 259 from the "auto" group

2021-02-15 Thread Thomas Huth
Tests in the "auto" group should support qcow2 so that they can be run during "make check-block". Test 259 only supports "raw", so it currently always gets skipped when running "make check-block". Let's skip this unnecessary step and remove it from the auto group. Signed-off-by: Thomas Huth ---

Re: [PATCH v2 00/12] block/export: vhost-user-blk server tests and input validation

2021-02-15 Thread Kevin Wolf
Am 07.12.2020 um 18:20 hat Stefan Hajnoczi geschrieben: > v2: > * Add abrt handler that terminates qemu-storage-daemon to >vhost-user-blk-test. No more orphaned processes on test failure. [Peter] > * Fix sector number calculation in vhost-user-blk-server.c > * Introduce

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Daniel P . Berrangé
On Tue, Jan 26, 2021 at 12:25:34PM +0100, Peter Lieven wrote: > even luminous (version 12.2) is unmaintained for over 3 years now. > Bump the requirement to get rid of the ifdef'ry in the code. We have clear rules on when we bump minimum versions, determined by the OS platforms we target:

Re: [PATCH V2 4/7] block/rbd: add bdrv_attach_aio_context

2021-02-15 Thread Kevin Wolf
Am 26.01.2021 um 12:25 hat Peter Lieven geschrieben: > Signed-off-by: Peter Lieven > --- > block/rbd.c | 15 +-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > diff --git a/block/rbd.c b/block/rbd.c > index f68ebcf240..7abd0252c9 100644 > --- a/block/rbd.c > +++

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Daniel P . Berrangé
On Mon, Feb 15, 2021 at 11:11:23AM +0100, Kevin Wolf wrote: > Am 26.01.2021 um 12:25 hat Peter Lieven geschrieben: > > even luminous (version 12.2) is unmaintained for over 3 years now. > > Bump the requirement to get rid of the ifdef'ry in the code. > > > > Signed-off-by: Peter Lieven > > >

Re: [PATCH V2 1/7] block/rbd: bump librbd requirement to luminous release

2021-02-15 Thread Kevin Wolf
Am 26.01.2021 um 12:25 hat Peter Lieven geschrieben: > even luminous (version 12.2) is unmaintained for over 3 years now. > Bump the requirement to get rid of the ifdef'ry in the code. > > Signed-off-by: Peter Lieven > diff --git a/meson.build b/meson.build > index 5943aa8a51..02d263ad33 100644

Re: [PATCH v7 03/14] block: check return value of bdrv_open_child and drop error propagation

2021-02-15 Thread Kevin Wolf
Am 13.02.2021 um 00:13 hat Eric Blake geschrieben: > On 2/2/21 6:49 AM, Vladimir Sementsov-Ogievskiy wrote: > > This patch is generated by cocci script: > > > > @@ > > symbol bdrv_open_child, errp, local_err; > > expression file; > > @@ > > > > file = bdrv_open_child(..., > > -