Re: [Qemu-block] [PATCH v2 0/3] Add new CD-ROM related qtests

2018-03-15 Thread Hervé Poussineau
Le 16/03/2018 à 06:39, Thomas Huth a écrit : With one of my clean-up patches (see commit 1454509726719e0933c800), I recently accidentially broke the "-cdrom" parameter (more precisely "-drive if=scsi") on a couple of boards, since there was no error detected during the "make check" regression tes

[Qemu-block] [PATCH v2 1/3] tests/boot-sector: Add magic bytes to s390x boot code header

2018-03-15 Thread Thomas Huth
We're going to use the s390x boot code for testing CD-ROM booting. But the ISO loader of the s390-ccw bios is a little bit more picky than the network loader and expects some magic bytes in the header of the file (see linux_s390_magic in pc-bios/s390-ccw/bootmap.c), so we've got to add them in our

[Qemu-block] [PATCH v2 2/3] tests/cdrom-test: Test booting from CD-ROM ISO image file

2018-03-15 Thread Thomas Huth
We already have the code for a boot file in tests/boot-sector.c, so if the genisoimage program is available, we can easily create a bootable CD ISO image that we can use for testing whether our CD-ROM emulation and the BIOS CD-ROM boot works correctly. Signed-off-by: Thomas Huth --- tests/Makefi

[Qemu-block] [PATCH v2 3/3] tests/cdrom-test: Test that -cdrom parameter is working

2018-03-15 Thread Thomas Huth
Commit 1454509726719e0933c800 recently broke the "-cdrom" parameter on a couple of boards without us noticing it immediately. Thus let's add a test which checks that "-cdrom" can at least be used to start QEMU with certain machine types. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas H

[Qemu-block] [PATCH v2 0/3] Add new CD-ROM related qtests

2018-03-15 Thread Thomas Huth
With one of my clean-up patches (see commit 1454509726719e0933c800), I recently accidentially broke the "-cdrom" parameter (more precisely "-drive if=scsi") on a couple of boards, since there was no error detected during the "make check" regression testing. This is clearly an indication that we are

Re: [Qemu-block] [Qemu-devel] [PATCH 1/3] tests/boot-sector: Add magic bytes to s390x boot code header

2018-03-15 Thread Michael S. Tsirkin
On Thu, Mar 15, 2018 at 12:47:08PM +0100, Philippe Mathieu-Daudé wrote: > On 03/15/2018 08:49 AM, Thomas Huth wrote: > > We're going to use the s390x boot code for testing CD-ROM booting. > > But the ISO loader of the s390-ccw bios is a little bit more picky > > than the network loader and expects

Re: [Qemu-block] [Qemu-devel] [PATCH v3 12/16] block/dirty-bitmap: Add bdrv_dirty_iter_next_area

2018-03-15 Thread John Snow
On 02/28/2018 01:05 PM, Max Reitz wrote: > This new function allows to look for a consecutively dirty area in a > dirty bitmap. > > Signed-off-by: Max Reitz > --- > include/block/dirty-bitmap.h | 2 ++ > block/dirty-bitmap.c | 55 > > 2 fi

Re: [Qemu-block] [Qemu-devel] [PATCH 3/3] tests/cdrom-test: Test that -cdrom parameter is working

2018-03-15 Thread Thomas Huth
On 15.03.2018 12:42, Philippe Mathieu-Daudé wrote: > Hi Thomas, > > On 03/15/2018 08:49 AM, Thomas Huth wrote: >> Commit 1454509726719e0933c800 recently broke the "-cdrom" parameter >> on a couple of boards without that we noticed it immediately. Thus >> add a test which checks that "-cdrom" can a

Re: [Qemu-block] [Qemu-devel] [PATCH 1/3] tests/boot-sector: Add magic bytes to s390x boot code header

2018-03-15 Thread Thomas Huth
On 15.03.2018 12:47, Philippe Mathieu-Daudé wrote: > On 03/15/2018 08:49 AM, Thomas Huth wrote: >> We're going to use the s390x boot code for testing CD-ROM booting. >> But the ISO loader of the s390-ccw bios is a little bit more picky >> than the network loader and expects some magic bytes in the

Re: [Qemu-block] [Qemu-devel] [PULL 00/41] Block layer patches

2018-03-15 Thread John Snow
On 03/15/2018 12:56 PM, Kevin Wolf wrote: > Am 15.03.2018 um 17:42 hat Peter Maydell geschrieben: >> On 13 March 2018 at 16:17, Kevin Wolf wrote: >>> The following changes since commit 22ef7ba8e8ce7fef297549b3defcac333742b804: >>> >>> Merge remote-tracking branch 'remotes/famz/tags/staging-pul

[Qemu-block] [PULL v2 00/44] Block layer patches

2018-03-15 Thread Kevin Wolf
The following changes since commit 56e8698ffa8aba9f762f980bc21b5340b006f24b: Merge remote-tracking branch 'remotes/stsquad/tags/pull-travis-speedup-130318-1' into staging (2018-03-15 14:48:09 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream

Re: [Qemu-block] [PULL 00/41] Block layer patches

2018-03-15 Thread Kevin Wolf
Am 15.03.2018 um 17:42 hat Peter Maydell geschrieben: > On 13 March 2018 at 16:17, Kevin Wolf wrote: > > The following changes since commit 22ef7ba8e8ce7fef297549b3defcac333742b804: > > > > Merge remote-tracking branch 'remotes/famz/tags/staging-pull-request' > > into staging (2018-03-13 11:42:

Re: [Qemu-block] [PATCH] iscsi: fix iSER compilation

2018-03-15 Thread Kevin Wolf
Am 15.03.2018 um 15:30 hat Paolo Bonzini geschrieben: > This fails in Fedora 28. > > Reported-by: Andreas Schwab > Signed-off-by: Paolo Bonzini Thanks, applied to the block branch. Kevin

Re: [Qemu-block] [PULL 00/41] Block layer patches

2018-03-15 Thread Peter Maydell
On 13 March 2018 at 16:17, Kevin Wolf wrote: > The following changes since commit 22ef7ba8e8ce7fef297549b3defcac333742b804: > > Merge remote-tracking branch 'remotes/famz/tags/staging-pull-request' into > staging (2018-03-13 11:42:45 +) > > are available in the git repository at: > > git:

Re: [Qemu-block] [PATCH] block: Fix leak of ignore_children in error path

2018-03-15 Thread Kevin Wolf
Am 15.03.2018 um 04:51 hat Fam Zheng geschrieben: > Reported-by: Max Reitz > Signed-off-by: Fam Zheng Thanks, applied to the block branch. Kevin

Re: [Qemu-block] [PATCH] vvfat: Fix inherit_options flags

2018-03-15 Thread Kevin Wolf
Am 15.03.2018 um 04:45 hat Fam Zheng geschrieben: > Overriding flags violates the precedence rules of > bdrv_reopen_queue_child. Just like the read-only option, no-flush should > be put into the options. The same is done in bdrv_temp_snapshot_options. > > Reported-by: Stefan Hajnoczi Signed-off-b

Re: [Qemu-block] [Qemu-devel] [PATCH v2 for-2.12] iotests: Avoid realpath, for CentOS 6

2018-03-15 Thread Philippe Mathieu-Daudé
On 03/15/2018 12:51 PM, Eric Blake wrote: > CentOS 6 lacks a realpath binary on the base install, which makes > all iotests runs fail since the 2.11 release: > > 001 - output mismatch (see 001.out.bad) > ./check: line 815: realpath: command not found > diff: missing operand after `/home/du

Re: [Qemu-block] [PATCH v2 for-2.12] iotests: Avoid realpath, for CentOS 6

2018-03-15 Thread Jeff Cody
On Thu, Mar 15, 2018 at 06:51:44AM -0500, Eric Blake wrote: > CentOS 6 lacks a realpath binary on the base install, which makes > all iotests runs fail since the 2.11 release: > > 001 - output mismatch (see 001.out.bad) > ./check: line 815: realpath: command not found > diff: missing opera

[Qemu-block] [PATCH] iscsi: fix iSER compilation

2018-03-15 Thread Paolo Bonzini
This fails in Fedora 28. Reported-by: Andreas Schwab Signed-off-by: Paolo Bonzini --- block/iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/iscsi.c b/block/iscsi.c index a82170f16e..f5aecfc883 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -2244,7 +2244,7 @@

Re: [Qemu-block] [PATCH v2 for-2.12] iotests: Avoid realpath, for CentOS 6

2018-03-15 Thread Paolo Bonzini
On 15/03/2018 12:51, Eric Blake wrote: > CentOS 6 lacks a realpath binary on the base install, which makes > all iotests runs fail since the 2.11 release: > > 001 - output mismatch (see 001.out.bad) > ./check: line 815: realpath: command not found > diff: missing operand after `/home/dummy

Re: [Qemu-block] [PATCH 5/7] block: convert bdrv_invalidate_cache callback to coroutine_fn

2018-03-15 Thread Andreas Schwab
block/iscsi.c:2247:6: error: 'BlockDriver {aka struct BlockDriver}' has no member named 'bdrv_invalidate_cache'; did you mean 'bdrv_co_invalidate_cache'? .bdrv_invalidate_cache = iscsi_invalidate_cache, ^ bdrv_co_invalidate_cache block/iscsi.c:2247:31: error:

Re: [Qemu-block] [PATCH] block: Fix leak of ignore_children in error path

2018-03-15 Thread Alberto Garcia
On Thu 15 Mar 2018 04:51:57 AM CET, Fam Zheng wrote: > Reported-by: Max Reitz > Signed-off-by: Fam Zheng Reviewed-by: Alberto Garcia Berto

Re: [Qemu-block] [Qemu-devel] [PATCH] block: Fix leak of ignore_children in error path

2018-03-15 Thread Eric Blake
On 03/14/2018 10:51 PM, Fam Zheng wrote: Reported-by: Max Reitz Signed-off-by: Fam Zheng --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Eric Blake diff --git a/block.c b/block.c index 75a9fd49de..c1fda9fd57 100644 --- a/block.c +++ b/block.c @@ -3671,12

Re: [Qemu-block] [Qemu-devel] [PATCH] vvfat: Fix inherit_options flags

2018-03-15 Thread Eric Blake
On 03/14/2018 10:45 PM, Fam Zheng wrote: Overriding flags violates the precedence rules of bdrv_reopen_queue_child. Just like the read-only option, no-flush should be put into the options. The same is done in bdrv_temp_snapshot_options. Reported-by: Stefan Hajnoczi --- block/vvfat.c | 2 +-

Re: [Qemu-block] [Qemu-devel] [PATCH 3/3] tests/cdrom-test: Test that -cdrom parameter is working

2018-03-15 Thread Eric Blake
On 03/15/2018 02:49 AM, Thomas Huth wrote: Commit 1454509726719e0933c800 recently broke the "-cdrom" parameter on a couple of boards without that we noticed it immediately. Thus s/without that we noticed/without us noticing/ add a test which checks that "-cdrom" can at least be used to start

Re: [Qemu-block] [Qemu-devel] [PATCH 2/3] tests/cdboot: Test booting from CD-ROM ISO image file

2018-03-15 Thread Eric Blake
On 03/15/2018 05:48 AM, Thomas Huth wrote: +pid = fork(); +if (pid == 0) { +va_start(args, fmt); +params = g_strdup_vprintf(fmt, args); +va_end(args); +command = g_strdup_printf("exec genisoimage %s", params); +g_free(params); +execlp("/bin

[Qemu-block] [PATCH v2 for-2.12] iotests: Avoid realpath, for CentOS 6

2018-03-15 Thread Eric Blake
CentOS 6 lacks a realpath binary on the base install, which makes all iotests runs fail since the 2.11 release: 001 - output mismatch (see 001.out.bad) ./check: line 815: realpath: command not found diff: missing operand after `/home/dummy/qemu/tests/qemu-iotests/001.out' diff: Try `diff -

Re: [Qemu-block] [Qemu-devel] [PATCH 1/3] tests/boot-sector: Add magic bytes to s390x boot code header

2018-03-15 Thread Philippe Mathieu-Daudé
On 03/15/2018 08:49 AM, Thomas Huth wrote: > We're going to use the s390x boot code for testing CD-ROM booting. > But the ISO loader of the s390-ccw bios is a little bit more picky > than the network loader and expects some magic bytes in the header > of the file (see linux_s390_magic in pc-bios/s3

Re: [Qemu-block] [Qemu-devel] [PATCH 3/3] tests/cdrom-test: Test that -cdrom parameter is working

2018-03-15 Thread Philippe Mathieu-Daudé
Hi Thomas, On 03/15/2018 08:49 AM, Thomas Huth wrote: > Commit 1454509726719e0933c800 recently broke the "-cdrom" parameter > on a couple of boards without that we noticed it immediately. Thus > add a test which checks that "-cdrom" can at least be used to start > QEMU with certain machine types.

Re: [Qemu-block] [Qemu-devel] [PATCH 2/3] tests/cdboot: Test booting from CD-ROM ISO image file

2018-03-15 Thread Thomas Huth
On 15.03.2018 10:21, Daniel P. Berrangé wrote: > On Thu, Mar 15, 2018 at 08:49:04AM +0100, Thomas Huth wrote: >> We already have the code for a boot file in tests/boot-sector.c, >> so if the genisoimage program is available, we can easily create >> a bootable CD ISO image that we can use for testin

Re: [Qemu-block] [PULL 0/1] Block patches

2018-03-15 Thread Peter Maydell
On 13 March 2018 at 12:29, Jeff Cody wrote: > The following changes since commit 834eddf22ec762839b724538c7be1d1d3b2d9d3b: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2018-03-13 10:49:02 +) > > are available in the git repository at: > > git

Re: [Qemu-block] [Qemu-devel] [PATCH 2/3] tests/cdboot: Test booting from CD-ROM ISO image file

2018-03-15 Thread Daniel P . Berrangé
On Thu, Mar 15, 2018 at 08:49:04AM +0100, Thomas Huth wrote: > We already have the code for a boot file in tests/boot-sector.c, > so if the genisoimage program is available, we can easily create > a bootable CD ISO image that we can use for testing whether our > CD-ROM emulation and the BIOS CD-ROM

Re: [Qemu-block] [qemu-s390x] [PATCH 1/3] tests/boot-sector: Add magic bytes to s390x boot code header

2018-03-15 Thread Christian Borntraeger
On 03/15/2018 08:49 AM, Thomas Huth wrote: > We're going to use the s390x boot code for testing CD-ROM booting. > But the ISO loader of the s390-ccw bios is a little bit more picky > than the network loader and expects some magic bytes in the header > of the file (see linux_s390_magic in pc-bios/

[Qemu-block] [PATCH 3/3] tests/cdrom-test: Test that -cdrom parameter is working

2018-03-15 Thread Thomas Huth
Commit 1454509726719e0933c800 recently broke the "-cdrom" parameter on a couple of boards without that we noticed it immediately. Thus add a test which checks that "-cdrom" can at least be used to start QEMU with certain machine types. Signed-off-by: Thomas Huth --- tests/Makefile.include | 7 +

[Qemu-block] [PATCH 1/3] tests/boot-sector: Add magic bytes to s390x boot code header

2018-03-15 Thread Thomas Huth
We're going to use the s390x boot code for testing CD-ROM booting. But the ISO loader of the s390-ccw bios is a little bit more picky than the network loader and expects some magic bytes in the header of the file (see linux_s390_magic in pc-bios/s390-ccw/bootmap.c), so we've got to add them in our

[Qemu-block] [PATCH 2/3] tests/cdboot: Test booting from CD-ROM ISO image file

2018-03-15 Thread Thomas Huth
We already have the code for a boot file in tests/boot-sector.c, so if the genisoimage program is available, we can easily create a bootable CD ISO image that we can use for testing whether our CD-ROM emulation and the BIOS CD-ROM boot works correctly. Signed-off-by: Thomas Huth --- tests/Makefi

[Qemu-block] [PATCH 0/3] Add new CD-ROM related qtests

2018-03-15 Thread Thomas Huth
With one of my clean-up patches (see commit 1454509726719e0933c800), I recently accidentially broke the "-cdrom" parameter (more precisely "-drive if=scsi") on a couple of boards, since there was no error detected during the "make check" regression testing. This is clearly an indication that we are

Re: [Qemu-block] [Qemu-devel] [PATCH for 2.12] iotests: Avoid realpath

2018-03-15 Thread Fam Zheng
On Wed, 03/14 09:47, Eric Blake wrote: > > The remaining use was using realpath to convert a possibly > > relative filename into an absolute one before calling diff, > > but diff works just fine on the relative name. > > Hmm, this last change reverts commit 93e53fb6 that added realpath on purpose