[Qemu-block] [PATCH 1/4] block: Warn if an if= drive was also connected manually

2015-06-12 Thread Peter Maydell
rning. Signed-off-by: Peter Maydell --- block/block-backend.c | 4 blockdev.c| 39 +++ include/sysemu/blockdev.h | 2 ++ 3 files changed, 45 insertions(+) diff --git a/block/block-backend.c b/block/block-backend.c index 93e46f3..a4

[Qemu-block] [PATCH 4/4] hw/arm/virt: Make block devices default to virtio

2015-06-12 Thread Peter Maydell
et no_cdrom to avoid getting a default cdrom device -- this is needed because the virtio-blk device will fail if it is connected to a block backend with no media, which is what the default cdrom device typically is. Providing a cdrom with media via -cdrom will still work. Signed-off-by: Peter Maydel

[Qemu-block] [PATCH 3/4] qdev-properties-system: Improve error message for drive assignment conflict

2015-06-12 Thread Peter Maydell
user towards if=none. Signed-off-by: Peter Maydell --- hw/core/qdev-properties-system.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c index 56954b4..bde9e12 100644 --- a/hw/core/qdev-prope

Re: [Qemu-block] [Qemu-devel] [PULL 00/25] Block layer core and image format patches

2015-06-15 Thread Peter Maydell
On 12 June 2015 at 17:23, Kevin Wolf wrote: > The following changes since commit 4cb618abc1818586c08011ff0a84a015787b1672: > > Merge remote-tracking branch 'remotes/lalrae/tags/mips-20150612' into > staging (2015-06-12 12:49:40 +0100) > > are available in the git repository at: > > > git://re

Re: [Qemu-block] [Qemu-devel] [PATCH 0/4] block: Improve warnings for doubly-connected drives

2015-06-19 Thread Peter Maydell
Ping? thanks -- PMM On 12 June 2015 at 14:26, Peter Maydell wrote: > This patchset attempts to improve the warning and error messages for > bad user command lines that attempt to connect a drive up to two > devices. The motivation here is patch #4, which changes the default > inter

Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/3] blockdev: Defer creation of implicit PCI devices for IF_VIRTIO drives

2015-06-20 Thread Peter Maydell
On 20 June 2015 at 16:00, Markus Armbruster wrote: > Peter Maydell writes: >> I do definitely want to enable short-options for virt for 2.4... > > "Enable short options" = change virt's default block interface type from > IF_IDE to IF_VIRTIO, I presume.

Re: [Qemu-block] [Qemu-devel] [PATCH 2/4] qdev-properties-system: Change set_pointer's parse callback to use Error

2015-06-22 Thread Peter Maydell
On 22 June 2015 at 10:39, Markus Armbruster wrote: > Peter Maydell writes: > >> Instead of having set_pointer() call a parse callback which returns >> an error number that we then convert to an Error string with >> error_set_from_qdev_prop_error(), make the parse callbac

Re: [Qemu-block] [Qemu-devel] [PATCH 3/4] qdev-properties-system: Improve error message for drive assignment conflict

2015-06-22 Thread Peter Maydell
On 22 June 2015 at 10:12, Markus Armbruster wrote: > I think we should just bite the bullet and extend Error to support > additional helpful information for humans. ...I thought all of the string was already just helpful information for humans? I certainly hope we aren't expecting anybody to pars

Re: [Qemu-block] [Qemu-devel] [PATCH 1/4] block: Warn if an if= drive was also connected manually

2015-06-22 Thread Peter Maydell
On 22 June 2015 at 10:59, Markus Armbruster wrote: > What about this instead: > > 1. When -device creation connects a qdev_prop_drive property to a > backend, fail when the backend has a DriveInfo and the DriveInfo has > type != IF_NONE. Note: the connection is made in parse_drive(). So, the rea

Re: [Qemu-block] [Qemu-devel] [PATCH 1/4] block: Warn if an if= drive was also connected manually

2015-06-22 Thread Peter Maydell
On 22 June 2015 at 10:59, Markus Armbruster wrote: > What about this instead: > > 1. When -device creation connects a qdev_prop_drive property to a > backend, fail when the backend has a DriveInfo and the DriveInfo has > type != IF_NONE. Note: the connection is made in parse_drive(). > > 2. This

[Qemu-block] [PATCH v2 for-2.4 2/3] qdev-properties-system: Improve error message for drive assignment conflict

2015-06-23 Thread Peter Maydell
-drive if=none,file=tmp.qcow2,id=foo -device ide-hd,drive=foo \ -device ide-hd,drive=foo Previously: qemu-system-x86_64: -device ide-hd,drive=foo: Property 'ide-hd.drive' can't take value 'foo', it's in use Now: qemu-system-x86_64: -device ide-hd,drive=foo: Dri

[Qemu-block] [PATCH v2 for-2.4 3/3] hw/arm/virt: Make block devices default to virtio

2015-06-23 Thread Peter Maydell
drive options?) The command line will be changed to include 'if=none', as the error message suggests. Signed-off-by: Peter Maydell --- hw/arm/virt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index f1e85c8..7e643ba 100644 --- a/hw/arm

[Qemu-block] [PATCH v2 for-2.4 1/3] qdev-properties-system: Change set_pointer's parse callback to use Error

2015-06-23 Thread Peter Maydell
than the generic ones. Signed-off-by: Peter Maydell --- hw/core/qdev-properties-system.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/hw/core/qdev-properties-system.c b/hw/core/qdev-properties-system.c index 0309fe5..56954b4 100644 --- a

[Qemu-block] [PATCH v2 for-2.4 0/3] block: Improve warnings for doubly-connected drives

2015-06-23 Thread Peter Maydell
wires it up manually to two different devices; in this case their command line is doubly broken and if they use if=none as suggested by message 1 they'll then get message 2 and can fix their own double-usage...) Changes v1->v2: * drop "warn if an if= drive was also connected manually&qu

Re: [Qemu-block] [Qemu-devel] [PATCH v2 for-2.4 3/3] hw/arm/virt: Make block devices default to virtio

2015-06-25 Thread Peter Maydell
On 25 June 2015 at 08:40, Markus Armbruster wrote: > Peter Maydell writes: > >> Now we have virtio-pci, we can make the virt board's default block >> device type be IF_VIRTIO. This allows users to use simplified >> command lines that don't have to explicitly cre

Re: [Qemu-block] [Qemu-devel] [PATCH v2 for-2.4 0/3] block: Improve warnings for doubly-connected drives

2015-06-25 Thread Peter Maydell
On 25 June 2015 at 10:26, Markus Armbruster wrote: > Peter Maydell writes: > >> This patchset attempts to improve the warning and error messages for >> bad user command lines that attempt to connect a drive up to two >> devices. The motivation here is patch #4, w

Re: [Qemu-block] [Qemu-devel] [PATCH] block.c: fix real cdrom detection

2015-06-25 Thread Peter Maydell
On 25 June 2015 at 18:56, Programmingkid wrote: > Nice to hear from you again Laurent. The only way a solution in > hdev_open() would work is if it could prevent find_image_format() > from executing. Otherwise find_image_format() would just quit QEMU > with an error. The question you should be as

Re: [Qemu-block] [Qemu-devel] [PATCH] raw-posix.c: cd_is_inserted() implementation for Mac OS X

2015-06-29 Thread Peter Maydell
On 29 June 2015 at 17:54, Programmingkid wrote: > @@ -2365,6 +2384,10 @@ static BlockDriver bdrv_host_device = { > .bdrv_ioctl = hdev_ioctl, > .bdrv_aio_ioctl = hdev_aio_ioctl, > #endif > + > +#ifdef __APPLE__ > +.bdrv_is_inserted = cdrom_is_inserted, > +#endif Why is

Re: [Qemu-block] [Qemu-devel] [PATCH] raw-posix.c: cd_is_inserted() implementation for Mac OS X

2015-06-29 Thread Peter Maydell
On 29 June 2015 at 19:04, Programmingkid wrote: > > On Jun 29, 2015, at 1:11 PM, Peter Maydell wrote: > >> On 29 June 2015 at 17:54, Programmingkid wrote: >>> @@ -2365,6 +2384,10 @@ static BlockDriver bdrv_host_device = { >>> .bdrv_ioctl = hd

Re: [Qemu-block] [Qemu-devel] [PATCH] ide: coverity touchups

2015-07-13 Thread Peter Maydell
On 13 July 2015 at 20:26, John Snow wrote: > Just a handful of casts to quiet coverity up. > > s->ports should never exceed 32, but coverity doesn't know that. > ncq_tfs->sector_count should also never exceed 64K. Personally I tend to mark that kind of thing as a false positive in the coverity UI

Re: [Qemu-block] [Qemu-devel] [PULL 00/11] Block layer patches for 2.4.0-rc1

2015-07-14 Thread Peter Maydell
On 14 July 2015 at 16:39, Kevin Wolf wrote: > The following changes since commit f3a1b5068cea303a55e2a21a97e66d057eaae638: > > Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging > (2015-07-13 13:35:51 +0100) > > are available in the git repository at: > > > git://repo.o

Re: [Qemu-block] [Qemu-devel] [PULL for-2.4 0/5] Block layer patches for 2.4.0-rc1

2015-07-15 Thread Peter Maydell
On 15 July 2015 at 03:26, Jeff Cody wrote: > The following changes since commit 661725da09f47eb92d356fac10a4cf3b7ad1f61d: > > Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20150714' into > staging (2015-07-14 18:50:17 +0100) > > are available in the git repository at: > > > g...@git

Re: [Qemu-block] [PATCH v2] raw-posix.c: Make physical devices usable in QEMU under Mac OS X host

2015-07-19 Thread Peter Maydell
On 17 July 2015 at 20:24, Programmingkid wrote: > Is pstrcpy() ansi c? I'm having trouble finding documentation for it. No, it's something we provide in util/cutils.c. We recommend it in HACKING, but we don't actually document the semantics, which is a bit unhelpful. I've just sent a patch which

Re: [Qemu-block] [Qemu-devel] [PULL 0/1] Block layer patches for 2.4.0-rc2

2015-07-20 Thread Peter Maydell
On 20 July 2015 at 15:54, Kevin Wolf wrote: > The following changes since commit 71358470eec668f5dc53def25e585ce250cea9bf: > > Merge remote-tracking branch 'remotes/amit-virtio-rng/tags/vrng-2.4' into > staging (2015-07-17 15:22:45 +0100) > > are available in the git repository at: > > > git:

[Qemu-block] [PATCH 3/5] hw/block/nvme.c: Use pow2ceil() rather than hand-calculation

2015-07-23 Thread Peter Maydell
Use pow2ceil() to round up to the next power of 2, rather than an inline calculation. Signed-off-by: Peter Maydell --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 40d4880..5da41b2 100644 --- a/hw/block/nvme.c +++ b

[Qemu-block] [PATCH 5/5] Remove unused qemu_fls function

2015-07-23 Thread Peter Maydell
Nothing uses qemu_fls() any more, so delete it. Signed-off-by: Peter Maydell --- include/qemu-common.h | 1 - util/cutils.c | 5 - 2 files changed, 6 deletions(-) diff --git a/include/qemu-common.h b/include/qemu-common.h index 237d654..bc6f8f8 100644 --- a/include/qemu-common.h

[Qemu-block] [PATCH 1/5] hw/pci: Use pow2ceil() rather than hand-calculation

2015-07-23 Thread Peter Maydell
know the size can't be 0. In the case where the size value had bit 31 set, the old code would invoke undefined behaviour; the new code will give a result of 0. Presumably that could never happen either.) Signed-off-by: Peter Maydell --- hw/pci/msix.c | 4 +--- hw/pci/pci.c | 4 +--- 2

[Qemu-block] [PATCH 4/5] exec.c: Use pow2floor() rather than hand-calculation

2015-07-23 Thread Peter Maydell
Use pow2floor() to round down to the nearest power of 2, rather than an inline calculation. Signed-off-by: Peter Maydell --- exec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exec.c b/exec.c index 7d60e15..4710e2d 100644 --- a/exec.c +++ b/exec.c @@ -2371,9 +2371,7

[Qemu-block] [PATCH 2/5] hw/virtio/virtio-pci: Use pow2ceil() rather than hand-calculation

2015-07-23 Thread Peter Maydell
Use the utility function pow2ceil() for rounding up to the next largest power of 2, rather than inline calculation. Signed-off-by: Peter Maydell --- hw/virtio/virtio-pci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c

[Qemu-block] [PATCH 0/5] replace qemu_fls() with pow2ceil()/pow2floor()

2015-07-23 Thread Peter Maydell
anup a day"; that may be a bit ambitious, so we'll see...) Peter Maydell (5): hw/pci: Use pow2ceil() rather than hand-calculation hw/virtio/virtio-pci: Use pow2ceil() rather than hand-calculation hw/block/nvme.c: Use pow2ceil() rather than hand-calculation exec.c: Use pow2floo

Re: [Qemu-block] [PATCH 0/5] replace qemu_fls() with pow2ceil()/pow2floor()

2015-07-23 Thread Peter Maydell
On 23 July 2015 at 17:54, Paolo Bonzini wrote: > > > On 23/07/2015 13:08, Peter Maydell wrote: >> We have a qemu_fls() function which is just a silly wrapper >> around clz32() and which is used in only a handful of places >> in the codebase. It turns out that all of th

Re: [Qemu-block] [PATCH 0/5] replace qemu_fls() with pow2ceil()/pow2floor()

2015-07-24 Thread Peter Maydell
On 24 July 2015 at 06:10, Paolo Bonzini wrote: > > > On 23/07/2015 22:10, Peter Maydell wrote: >>> > The series looks good, but I'd prefer (especially for patch 4 which is >>> > in a fast path) if pow2ceil and pow2floor were made inline. >> Yeah, I wa

[Qemu-block] [PATCH v2 0/6] replace qemu_fls() with pow2ceil()/pow2floor()

2015-07-24 Thread Peter Maydell
the pow2ceil and pow2floor functions to inline. Peter Maydell (6): hw/pci: Use pow2ceil() rather than hand-calculation hw/virtio/virtio-pci: Use pow2ceil() rather than hand-calculation hw/block/nvme.c: Use pow2ceil() rather than hand-calculation exec.c: Use pow2floor() rather than hand

[Qemu-block] [PATCH v2 1/6] hw/pci: Use pow2ceil() rather than hand-calculation

2015-07-24 Thread Peter Maydell
know the size can't be 0. In the case where the size value had bit 31 set, the old code would invoke undefined behaviour; the new code will give a result of 0. Presumably that could never happen either.) Signed-off-by: Peter Maydell --- hw/pci/msix.c | 4 +--- hw/pci/pci.c | 4 +--- 2

[Qemu-block] [PATCH v2 2/6] hw/virtio/virtio-pci: Use pow2ceil() rather than hand-calculation

2015-07-24 Thread Peter Maydell
Use the utility function pow2ceil() for rounding up to the next largest power of 2, rather than inline calculation. Signed-off-by: Peter Maydell --- hw/virtio/virtio-pci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c

[Qemu-block] [PATCH v2 5/6] Remove unused qemu_fls function

2015-07-24 Thread Peter Maydell
Nothing uses qemu_fls() any more, so delete it. Signed-off-by: Peter Maydell --- include/qemu-common.h | 1 - util/cutils.c | 5 - 2 files changed, 6 deletions(-) diff --git a/include/qemu-common.h b/include/qemu-common.h index 237d654..bc6f8f8 100644 --- a/include/qemu-common.h

[Qemu-block] [PATCH v2 6/6] Make pow2ceil() and pow2floor() inline

2015-07-24 Thread Peter Maydell
() along with them. We then need to include host-utils.h from qemu-common.h so that the files which use these functions via qemu-common.h still have access to them. Signed-off-by: Peter Maydell --- include/qemu-common.h | 16 +--- include/qemu/host-utils.h | 33

[Qemu-block] [PATCH v2 4/6] exec.c: Use pow2floor() rather than hand-calculation

2015-07-24 Thread Peter Maydell
Use pow2floor() to round down to the nearest power of 2, rather than an inline calculation. Signed-off-by: Peter Maydell --- exec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/exec.c b/exec.c index 7d60e15..4710e2d 100644 --- a/exec.c +++ b/exec.c @@ -2371,9 +2371,7

[Qemu-block] [PATCH v2 3/6] hw/block/nvme.c: Use pow2ceil() rather than hand-calculation

2015-07-24 Thread Peter Maydell
Use pow2ceil() to round up to the next power of 2, rather than an inline calculation. Signed-off-by: Peter Maydell --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 40d4880..5da41b2 100644 --- a/hw/block/nvme.c +++ b

Re: [Qemu-block] [Qemu-devel] [PULL 0/2] Block layer patches for 2.4.0-rc3

2015-07-28 Thread Peter Maydell
On 27 July 2015 at 16:46, Kevin Wolf wrote: > The following changes since commit 122e7dab8ac549c8c5a9e1e13aa2464190e888de: > > Merge remote-tracking branch 'remotes/stefanha/tags/net-pull-request' into > staging (2015-07-27 14:53:42 +0100) > > are available in the git repository at: > > > git

Re: [Qemu-block] [PULL for-2.4 0/2] block patches for 2.4-rc3

2015-07-28 Thread Peter Maydell
On 28 July 2015 at 05:23, Jeff Cody wrote: > The following changes since commit f8787f8723eaca1be99e3b1873e54de163fffa93: > > Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20150727' into > staging (2015-07-27 19:37:09 +0100) > > are available in the git repository at: > > > g...@git

Re: [Qemu-block] [Qemu-devel] [PATCH] ahci: fix ICC mask definition

2015-07-30 Thread Peter Maydell
On 30 July 2015 at 19:41, John Snow wrote: > Peter: I assume you still want this for 2.4 to fix the clang warnings, yes? Yeah, it's safe enough. (I don't actually require these clang warnings all fixed for 2.4; but it's a nice-to-have.) thanks -- PMM

Re: [Qemu-block] [Qemu-devel] [PATCH] block: don't register quorum driver if SHA256 support is unavailable

2015-08-05 Thread Peter Maydell
On 4 August 2015 at 15:48, Sascha Silbe wrote: > Commit 488981a4 [block: convert quorum blockdrv to use crypto APIs] > broke qemu-iotest 041 on hosts with GnuTLS < 2.10.0. It converted a > compile-time check to a run-time check at device open time. The result > is that we now advertise a feature (

Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/6] replace qemu_fls() with pow2ceil()/pow2floor()

2015-08-14 Thread Peter Maydell
Ping? (Patches 1 and 2 have been reviewed; thanks.) -- PMM On 24 July 2015 at 13:33, Peter Maydell wrote: > We have a qemu_fls() function which is just a silly wrapper > around clz32() and which is used in only a handful of places > in the codebase. It turns out that all of those a

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

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 14:57, Jeff Cody wrote: > The following changes since commit be1f13ac9d9fc21908975460652a72f5f0c018c5: > > Merge remote-tracking branch 'remotes/lalrae/tags/mips-20150813' into > staging (2015-08-13 17:47:44 +0100) > > are available in the git repository at: > > > g...@gi

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

2015-08-14 Thread Peter Maydell
On 14 August 2015 at 15:55, Jeff Cody wrote: > On Fri, Aug 14, 2015 at 03:51:03PM +0100, Peter Maydell wrote: >> Your pull req tag has not only these two commits in it, >> but also a merge commit ("Merge branch 'block-next' into HEAD). >> Why is that? >

[Qemu-block] hd-geo-test creates 4GB files on FSes that don't support sparse images, doesn't delete them on error

2015-08-27 Thread Peter Maydell
I've noticed recently that tests/hd-geo-test.c creates test disk images which are 4GB in size, which is a problem if the filesystem on the host doesn't support sparse files. In particular, OSX's HFS+ doesn't have sparse file support, and Windows probably doesn't either. Worse, if the test fails an

Re: [Qemu-block] [Qemu-devel] hd-geo-test creates 4GB files on FSes that don't support sparse images, doesn't delete them on error

2015-08-31 Thread Peter Maydell
On 31 August 2015 at 19:54, John Snow wrote: > Oh, taking a look at it, it needs to writethat MBR data to the file > before it opens it. We don't have an existing qemu-io dependency here to > use. > > I could add it, but the line between iotest and qtest starts to get > pretty fuzzy. I don't care

[Qemu-block] please fix block device FIXMEs in 2.4's changelog

2015-09-03 Thread Peter Maydell
There are two lines in 2.4's changelog (http://wiki.qemu.org/ChangeLog/2.4) in the "Block devices in system emulation" section which read: * FIXME: Throttle groups and * FIXME: incremental backup? Could somebody fill these in with real content before we all forget what was and wasn't in 2.4?

Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/6] replace qemu_fls() with pow2ceil()/pow2floor()

2015-09-07 Thread Peter Maydell
Ping? Paolo, do you want to take these, should I just apply them to master, or what? thanks -- PMM On 24 July 2015 at 13:33, Peter Maydell wrote: > We have a qemu_fls() function which is just a silly wrapper > around clz32() and which is used in only a handful of places > in the cod

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

2015-09-07 Thread Peter Maydell
On 4 September 2015 at 21:10, Kevin Wolf wrote: > The following changes since commit b597aa037dbd98014c8dec3d69a5e2240f432533: > > Merge remote-tracking branch 'remotes/armbru/tags/pull-monitor-2015-09-04' > into staging (2015-09-04 17:37:50 +0100) > > are available in the git repository at: >

Re: [Qemu-block] [Qemu-devel] [PATCH v2 0/6] replace qemu_fls() with pow2ceil()/pow2floor()

2015-09-07 Thread Peter Maydell
On 7 September 2015 at 13:34, Paolo Bonzini wrote: > > > On 07/09/2015 13:04, Peter Maydell wrote: >> Ping? >> >> Paolo, do you want to take these, should I just apply them >> to master, or what? > > Sorry, I thought you were applying these or pulling the

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

2015-09-14 Thread Peter Maydell
On 11 September 2015 at 20:40, Kevin Wolf wrote: > The following changes since commit 30c38c90bd3f1bb105ebc069ac1821067c980b7c: > > scripts/qemu-gdb: Add brief comment describing usage (2015-09-11 17:14:50 > +0100) > > are available in the git repository at: > > git://repo.or.cz/qemu/kevin.gi

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

2015-09-15 Thread Peter Maydell
On 14 September 2015 at 16:25, Kevin Wolf wrote: > The following changes since commit 2b750d9d261bda7f75b39dfc1e1e5f22502929d5: > > Merge remote-tracking branch 'remotes/aurel/tags/pull-sh4-next-20150913' > into staging (2015-09-14 10:46:38 +0100) > > are available in the git repository at: > >

[Qemu-block] ide-test fails on PPC64 big-endian host

2015-09-25 Thread Peter Maydell
Hi. I was looking at adding ppc64be to the set of machines I do build tests on before merging patches, but right now "make check" fails on this host. ERROR:/home/pm215/qemu/tests/ide-test.c:721:cdrom_pio_impl: assertion failed ((data) & (DRQ | DRDY) == (DRQ | DRDY)): (0x0040 == 0x0048) GTe

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

2015-09-25 Thread Peter Maydell
On 25 September 2015 at 08:50, Jeff Cody wrote: > The following changes since commit eb9d0ea063fc7bdfab76b84085602a9e48d13ec7: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20150924' into staging (2015-09-24 > 01:32:11 +0100) > > are available in the git repository

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

2015-10-02 Thread Peter Maydell
On 1 October 2015 at 20:05, Jeff Cody wrote: > The following changes since commit fa500928ad9da6dd570918e3dfca13c029af07a8: > > Merge remote-tracking branch 'remotes/juanquintela/tags/migration/20150930' > into staging (2015-10-01 10:49:38 +0100) > > are available in the git repository at: > >

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

2018-03-12 Thread Peter Maydell
On 9 March 2018 at 16:18, Kevin Wolf wrote: > The following changes since commit d9bbfea646e86426d549bd612cd9f91e49aa50c2: > > Merge remote-tracking branch 'remotes/riscv/tags/riscv-qemu-upstream-v8.2' > into staging (2018-03-09 10:58:57 +) > > are available in the git repository at: > >

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

2018-03-13 Thread Peter Maydell
On 12 March 2018 at 16:01, Stefan Hajnoczi wrote: > The following changes since commit e4ae62b802cec437f877f2cadc4ef059cc0eca76: > > Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' > into staging (2018-03-09 17:28:16 +) > > are available in the Git repository at: > >

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] [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] [PULL v2 00/44] Block layer patches

2018-03-16 Thread Peter Maydell
On 15 March 2018 at 17:18, Kevin Wolf wrote: > 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

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

2018-03-19 Thread Peter Maydell
On 19 March 2018 at 11:04, Kevin Wolf wrote: > The following changes since commit e1e44a9916b4318e943aecd669e096222cb3eaeb: > > Merge remote-tracking branch 'remotes/xtensa/tags/20180316-xtensa' into > staging (2018-03-17 14:15:03 +) > > are available in the git repository at: > > git://r

Re: [Qemu-block] [PATCH] qemu: include generated files with <> and not ""

2018-03-20 Thread Peter Maydell
On 20 March 2018 at 09:44, Daniel P. Berrangé wrote: > We can follow what autoconf does, and add a check to configure to see if > there are generated files left in the source dir, when configuring with > builddir != srcdir, and exit with error, telling user to clean their > src dir first. We alre

Re: [Qemu-block] [PATCH 4/4] Remove unnecessary variables for function return value

2018-03-22 Thread Peter Maydell
On 22 March 2018 at 17:19, Max Filippov wrote: > Ok, I can add a fixup that changes #include to #include > "xtensa-isa.h". > Adding #include "qemu/osdep.h" there seems pointless to me. Every top level .c file must start with including osdep.h. Other headers that it might include rely on that. It

Re: [Qemu-block] [PATCH 4/4] Remove unnecessary variables for function return value

2018-03-22 Thread Peter Maydell
On 22 March 2018 at 17:30, Eric Blake wrote: > I'm less certain of whether our Coccinelle scripts have easy ways to exclude > specific files. We already have scripts/cocci-macro-file.h to help > Coccinelle not choke on some our existing files, but I'm not sure if > Coccinelle has a config-file li

Re: [Qemu-block] [Qemu-devel] [PATCH 0/4] coccinelle: re-run scripts from scripts/coccinelle

2018-03-22 Thread Peter Maydell
On 22 March 2018 at 17:57, wrote: > Checking PATCH 4/4: Remove unnecessary variables for function return value... > ERROR: return is not a function, parentheses are not required > #251: FILE: target/mips/dsp_helper.c:3281: > +return (temp[1] << 63) | (temp[0] >> 1); This looks like a bug in

Re: [Qemu-block] [Qemu-devel] [PATCH 0/4] coccinelle: re-run scripts from scripts/coccinelle

2018-03-22 Thread Peter Maydell
On 22 March 2018 at 19:12, Eric Blake wrote: > Or if we don't patch the false negative, you can bypass checkpatch with an > ugly hack: > > return 0 + (...) | (...); > > (I'm NOT going to do that bypass - it's too ugly for my taste) Yeah, that's definitely not something we should be doing. checkpa

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

2018-03-27 Thread Peter Maydell
On 26 March 2018 at 15:35, Kevin Wolf wrote: > The following changes since commit 7b1db0908d88f0c9cfac24e214ff72a860692e23: > > Merge remote-tracking branch > 'remotes/pmaydell/tags/pull-target-arm-20180323' into staging (2018-03-25 > 13:51:33 +0100) > > are available in the git repository at:

Re: [Qemu-block] [PULL 0/4] Block patches for 2.12.0-rc1

2018-03-27 Thread Peter Maydell
On 26 March 2018 at 21:20, Max Reitz wrote: > The following changes since commit 7b93d78a04aa242d377ae213b79db6c319c71847: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2018-03-26 15:17:25 +0100) > > are available in the Git repository at: > > git://gith

Re: [Qemu-block] [PULL 0/3] Block patches for 2.12-rc2

2018-04-04 Thread Peter Maydell
On 3 April 2018 at 17:13, Jeff Cody wrote: > The following changes since commit f184de7553272223d6af731d7d623a7cebf710b5: > > Merge remote-tracking branch > 'remotes/riscv/tags/riscv-qemu-2.12-critical-fixes' into staging (2018-03-31 > 09:42:33 +0100) > > are available in the git repository at

Re: [Qemu-block] [PULL 0/9] Block layer patches for 2.12.0-rc2

2018-04-04 Thread Peter Maydell
On 3 April 2018 at 17:33, Kevin Wolf wrote: > The following changes since commit f184de7553272223d6af731d7d623a7cebf710b5: > > Merge remote-tracking branch > 'remotes/riscv/tags/riscv-qemu-2.12-critical-fixes' into staging (2018-03-31 > 09:42:33 +0100) > > are available in the git repository a

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

2018-04-04 Thread Peter Maydell
On 4 April 2018 at 17:10, Jeff Cody wrote: > The following changes since commit fd69ad866b62ca8ed4337ffee83b6d82a4e99282: > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging > (2018-04-04 14:00:07 +0100) > > are available in the git repository at: > > git://github.

Re: [Qemu-block] [PULL 0/7] Block layer patches for 2.12.0-rc3

2018-04-11 Thread Peter Maydell
On 10 April 2018 at 16:37, Kevin Wolf wrote: > The following changes since commit df6378eb0e6cfd58a22a1c3ff8fa4a9039f1eaa8: > > Merge remote-tracking branch 'remotes/kraxel/tags/ui-20180410-pull-request' > into staging (2018-04-10 14:04:27 +0100) > > are available in the git repository at: > >

Re: [Qemu-block] [PULL 0/2] Block patches for 2.12.0-rc4

2018-04-16 Thread Peter Maydell
On 16 April 2018 at 13:38, Max Reitz wrote: > The following changes since commit ae2b1b4e1bb89ea949446597c8776255da0a79d3: > > Merge remote-tracking branch > 'remotes/vivier/tags/m68k-for-2.12-pull-request' into staging (2018-04-16 > 10:11:17 +0100) > > are available in the Git repository at:

Re: [Qemu-block] [Qemu-devel] [PATCH v2 5/8] nbd: BLOCK_STATUS for standard get_block_status function: client part

2018-04-27 Thread Peter Maydell
On 12 March 2018 at 15:21, Vladimir Sementsov-Ogievskiy wrote: > Minimal realization: only one extent in server answer is supported. > Flag NBD_CMD_FLAG_REQ_ONE is used to force this behavior. Hi; Coverity complains about a possible use of uninitialized variables in this function (CID 1390607, 13

Re: [Qemu-block] [Qemu-devel] [PULL 43/56] sheepdog: Support .bdrv_co_create

2018-04-27 Thread Peter Maydell
On 9 March 2018 at 16:19, Kevin Wolf wrote: > This adds the .bdrv_co_create driver callback to sheepdog, which enables > image creation over QMP. > > Signed-off-by: Kevin Wolf > Reviewed-by: Max Reitz Hi; Coverity (CID 1390614) thinks there's a resource leak in this function: > +static int cor

Re: [Qemu-block] [Qemu-devel] [PULL 43/56] sheepdog: Support .bdrv_co_create

2018-04-27 Thread Peter Maydell
On 9 March 2018 at 16:19, Kevin Wolf wrote: > This adds the .bdrv_co_create driver callback to sheepdog, which enables > image creation over QMP. > > Signed-off-by: Kevin Wolf > Reviewed-by: Max Reitz Hi; Coverity (CID 1390641) points out that the changes to parse_redundancy_str() introduce a m

Re: [Qemu-block] [Qemu-devel] [PULL 30/56] file-posix: Support .bdrv_co_create

2018-05-08 Thread Peter Maydell
On 9 March 2018 at 16:19, Kevin Wolf wrote: > This adds the .bdrv_co_create driver callback to file, which enables > image creation over QMP. > +static int coroutine_fn raw_co_create_opts(const char *filename, QemuOpts > *opts, > + Error **errp) > +{ > +

Re: [Qemu-block] [Qemu-devel] [PULL 13/55] sheepdog: Make sd_prealloc() take a BDS

2018-05-08 Thread Peter Maydell
On 13 February 2018 at 17:04, Kevin Wolf wrote: > From: Max Reitz > > We want to use this function in sd_truncate() later on, so taking a > filename is not exactly ideal. > > Signed-off-by: Max Reitz > Reviewed-by: Eric Blake > Signed-off-by: Kevin Wolf > --- > block/sheepdog.c | 29 +

Re: [Qemu-block] [Qemu-devel] [PULL 08/37] iscsi: Switch to .bdrv_co_block_status()

2018-05-08 Thread Peter Maydell
On 2 March 2018 at 18:54, Kevin Wolf wrote: > From: Eric Blake > > We are gradually moving away from sector-based interfaces, towards > byte-based. Update the iscsi driver accordingly. In this case, > it is handy to teach iscsi_co_block_status() to handle a NULL map > and file parameter, even t

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

2018-05-08 Thread Peter Maydell
On 8 May 2018 at 16:19, Jeff Cody wrote: > The following changes since commit d01beac177d44491d7db8747b79d94e1b53d173b: > > Merge remote-tracking branch > 'remotes/kraxel/tags/vga-20180507-pull-request' into staging (2018-05-08 > 14:23:02 +0100) > > are available in the git repository at: > >

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

2018-05-14 Thread Peter Maydell
On 12 May 2018 at 10:28, Stefan Hajnoczi wrote: > The following changes since commit e5cd695266c5709308aa95b1baae499e4b5d4544: > > Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into > staging (2018-05-08 17:05:58 +0100) > > are available in the Git repository at: > > git

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

2018-05-14 Thread Peter Maydell
On 14 May 2018 at 14:15, Peter Maydell wrote: > On 12 May 2018 at 10:28, Stefan Hajnoczi wrote: >> The following changes since commit e5cd695266c5709308aa95b1baae499e4b5d4544: >> >> Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into >&g

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

2018-05-14 Thread Peter Maydell
On 12 May 2018 at 10:28, Stefan Hajnoczi wrote: > The following changes since commit e5cd695266c5709308aa95b1baae499e4b5d4544: > > Merge remote-tracking branch 'remotes/cody/tags/block-pull-request' into > staging (2018-05-08 17:05:58 +0100) > > are available in the Git repository at: > > git

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

2018-05-15 Thread Peter Maydell
On 15 May 2018 at 16:39, Kevin Wolf wrote: > The following changes since commit ad1b4ec39caa5b3f17cbd8160283a03a3dcfe2ae: > > Merge remote-tracking branch > 'remotes/kraxel/tags/input-20180515-pull-request' into staging (2018-05-15 > 12:50:06 +0100) > > are available in the git repository at:

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

2018-05-17 Thread Peter Maydell
On 16 May 2018 at 18:42, Jeff Cody wrote: > The following changes since commit c416eecea5f3aea863ab8fda5a36a24157b8f704: > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging > (2018-05-15 17:02:00 +0100) > > are available in the git repository at: > > git://github.c

Re: [Qemu-block] [PULL 5/8] checkpatch: emit a warning on file add/move/delete

2018-05-17 Thread Peter Maydell
On 12 May 2018 at 10:28, Stefan Hajnoczi wrote: > From: Joe Perches > > Whenever files are added, moved, or deleted, the MAINTAINERS file > patterns can be out of sync or outdated. > > To try to keep MAINTAINERS more up-to-date, add a one-time warning > whenever a patch does any of those. > This

[Qemu-block] [PATCH] sheepdog: Remove unnecessary NULL check in sd_prealloc()

2018-05-18 Thread Peter Maydell
d-off-by: Peter Maydell --- block/sheepdog.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 4237132419..2a5bc0a59a 100644 --- a/block/sheepdog.c +++ b/block/sheepdog.c @@ -1859,9 +1859,7 @@ out: error_setg_errno(errp,

Re: [Qemu-block] [Qemu-devel] [PATCH] nvme: Make nvme_init error handling code more readable

2018-05-21 Thread Peter Maydell
On 21 May 2018 at 07:35, Fam Zheng wrote: > Coverity doesn't like the tests under fail label (report CID 1385847). > Reset the fields so the clean up order is more apparent. > > Signed-off-by: Fam Zheng > --- > block/nvme.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/block/nv

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

2018-05-24 Thread Peter Maydell
On 23 May 2018 at 14:11, Kevin Wolf wrote: > The following changes since commit 4f50c1673a89b07f376ce5c42d22d79a79cd466d: > > Merge remote-tracking branch 'remotes/ehabkost/tags/x86-next-pull-request' > into staging (2018-05-22 09:43:58 +0100) > > are available in the git repository at: > > g

Re: [Qemu-block] [Qemu-devel] [PULL 20/37] qcow2: Give the refcount cache the minimum possible size by default

2018-05-25 Thread Peter Maydell
On 15 May 2018 at 16:40, Kevin Wolf wrote: > From: Alberto Garcia > > The L2 and refcount caches have default sizes that can be overridden > using the l2-cache-size and refcount-cache-size (an additional > parameter named cache-size sets the combined size of both caches). Hi; Coverity raises a n

Re: [Qemu-block] [Qemu-devel] [PULL 20/37] qcow2: Give the refcount cache the minimum possible size by default

2018-05-28 Thread Peter Maydell
On 28 May 2018 at 09:58, Alberto Garcia wrote: > On Mon 28 May 2018 10:38:55 AM CEST, Kevin Wolf wrote: >>> > +if (!refcount_cache_size_set) { >>> > +*refcount_cache_size = MIN_REFCOUNT_CACHE_SIZE * >>> > s->cluster_size; >>> >>> ...but in the else clause down here, we don't h

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

2018-05-31 Thread Peter Maydell
On 30 May 2018 at 16:56, Kevin Wolf wrote: > Merge remote-tracking branch > 'remotes/edgar/tags/edgar/xilinx-next-2018-05-29-v1.for-upstream' into > staging (2018-05-29 13:01:11 +0100) > > are available in the git repository at: > > git://repo.or.cz/qemu/kevin.git tags/for-upstream > > for y

[Qemu-block] [PATCH 0/6] More conversions away from old_mmio

2018-06-01 Thread Peter Maydell
Half a dozen miscellaneous conversions away from old_mmio usage in the MemoryRegionOps struct. This leaves us with only 10 remaining in the tree. NB: mips parts tested only via 'make check'. thanks -- PMM Peter Maydell (6): hw/sh/sh7750: Convert away from old_mmio hw/m68k/mcf520

[Qemu-block] [PATCH 5/6] hw/input/pckbd: Convert away from old_mmio

2018-06-01 Thread Peter Maydell
Convert the pckbd device away from using the old_mmio field of MemoryRegionOps. This change only affects the memory-mapped variant of the i8042, which is used by the Unicore32 'puv3' board and the MIPS Jazz boards 'magnum' and 'pica61'. Signed-off-by: Peter Mayde

[Qemu-block] [PATCH 4/6] hw/watchdog/wdt_i6300esb: Convert away from old_mmio

2018-06-01 Thread Peter Maydell
Convert the wdt_i6300esb device away from using the old_mmio field of MemoryRegionOps. Signed-off-by: Peter Maydell --- hw/watchdog/wdt_i6300esb.c | 48 -- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/hw/watchdog/wdt_i6300esb.c b/hw

[Qemu-block] [PATCH 6/6] hw/char/parallel: Convert away from old_mmio

2018-06-01 Thread Peter Maydell
Convert the parallel device away from using the old_mmio field of MemoryRegionOps. This change only affects the memory-mapped variant, which is used by the MIPS Jazz boards 'magnum' and 'pica61'. Signed-off-by: Peter Maydell --- hw/

[Qemu-block] [PATCH 1/6] hw/sh/sh7750: Convert away from old_mmio

2018-06-01 Thread Peter Maydell
Convert the sh7750 device away from using the old_mmio field of MemoryRegionOps. This device is used by the sh4 r2d board. Signed-off-by: Peter Maydell --- hw/sh4/sh7750.c | 44 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/hw/sh4

[Qemu-block] [PATCH 2/6] hw/m68k/mcf5206: Convert away from old_mmio

2018-06-01 Thread Peter Maydell
Convert the mcf5206 device away from using the old_mmio field of MemoryRegionOps. This device is used by the an5206 board. Signed-off-by: Peter Maydell --- hw/m68k/mcf5206.c | 48 +++ 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/hw

<    1   2   3   4   5   6   7   8   9   10   >