Re: [Qemu-devel] [Qemu-trivial] [PATCH v5] snapshot: use local variable to bdrv_pwrite_sync L1 table

2014-10-23 Thread Michael Tokarev
On 10/22/2014 04:39 PM, Zhang Haoyu wrote: > Use local variable to bdrv_pwrite_sync L1 table, > needless to make conversion of cached L1 table between > big-endian and host style. ... Okay, so, why do you think that a patch which prompted such a hot discussion and is at v5 already is applicable to

Re: [Qemu-devel] [PATCH] snapshot: use local variable to bdrv_pwrite_sync L1 table

2014-10-23 Thread Kevin Wolf
Am 23.10.2014 um 00:18 hat Eric Blake geschrieben: > On 10/21/2014 03:24 AM, Max Reitz wrote: > > On 2014-10-21 at 10:04, Zhang Haoyu wrote: > >> Use local variable to bdrv_pwrite_sync L1 table, > >> needless to make conversion of cached L1 table between > >> big-endian and host style. > >> > >> Si

Re: [Qemu-devel] [PATCH 0/2] block/vdi: Fix bmap writing error

2014-10-23 Thread Max Reitz
On 2014-10-22 at 13:56, Kevin Wolf wrote: Am 21.10.2014 um 10:51 hat Max Reitz geschrieben: The bmap size in block/vdi.c may exceed INT_MAX. Using bdrv_pwrite_sync() (which takes an int byte count) is therefore not a good idea. The second patch of this series fixes this by replacing bdrv_pwrite_

Re: [Qemu-devel] [PATCH 0/2] block/vdi: Fix bmap writing error

2014-10-23 Thread Max Reitz
On 2014-10-22 at 13:56, Kevin Wolf wrote: Am 21.10.2014 um 10:51 hat Max Reitz geschrieben: The bmap size in block/vdi.c may exceed INT_MAX. Using bdrv_pwrite_sync() (which takes an int byte count) is therefore not a good idea. The second patch of this series fixes this by replacing bdrv_pwrite_

Re: [Qemu-devel] [PATCH 3/3] vnc: remove superfluous DisplayState *ds parameter

2014-10-23 Thread Michael Tokarev
On 10/23/2014 09:39 AM, arei.gong...@huawei.com wrote: [] > --- a/vl.c > +++ b/vl.c > @@ -4318,7 +4318,7 @@ int main(int argc, char **argv, char **envp) > if (vnc_display) { > Error *local_err = NULL; > vnc_display_init(ds); > -vnc_display_open(ds, vnc_display, &local

Re: [Qemu-devel] [PATCH RFC 00/11] qemu: towards virtio-1 host support

2014-10-23 Thread Michael S. Tsirkin
On Thu, Oct 23, 2014 at 07:34:16AM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2014-10-22 at 16:17 +0200, Jan Kiszka wrote: > > I thought about this again, and I'm not sure anymore if we can use > > ACPI > > to "black-list" the incompatible virtio devices. Reason: hotplug. To > > my > > understa

Re: [Qemu-devel] [PATCH 1/3] vnc: remove superfluous vnc_display_close()

2014-10-23 Thread Michael Tokarev
On 10/23/2014 09:39 AM, arei.gong...@huawei.com wrote: > From: Gonglei > > vnc_display_close() is called in vnc_display_open(). > And in this moment, the ds variable is initilized > at vnc_display_init(). Calling vnc_display_close() > is superfluous. Maybe the intent was to be able to open/close

Re: [Qemu-devel] [PATCH] snapshot: use local variable to bdrv_pwrite_sync L1 table

2014-10-23 Thread Max Reitz
On 2014-10-23 at 09:03, Kevin Wolf wrote: Am 23.10.2014 um 00:18 hat Eric Blake geschrieben: On 10/21/2014 03:24 AM, Max Reitz wrote: On 2014-10-21 at 10:04, Zhang Haoyu wrote: Use local variable to bdrv_pwrite_sync L1 table, needless to make conversion of cached L1 table between big-endian an

Re: [Qemu-devel] [Qemu-trivial] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-23 Thread Peter Maydell
On 23 October 2014 07:49, Michael Tokarev wrote: > If upstream already have a patch for this, why not take the > upstream's solution now, so we wont need to revert our solution > before applying next drop from upstream? Upstream haven't released it yet. > BTW, how the "upstream drop" is done, an

Re: [Qemu-devel] [Qemu-trivial] [PATCH v1] vl: Fix possible freed memory accessing

2014-10-23 Thread Peter Maydell
On 23 October 2014 07:33, Michael Tokarev wrote: > On 09/22/2014 11:34 AM, Michael Tokarev wrote: >> 22.09.2014 10:23, Markus Armbruster wrote: >>> Michael Tokarev writes: >>> Applied to -trivial, thank you! >>> >>> Makes my 'hmp: Remove "info pcmcia"' conflict. Either revert this one >>> b

Re: [Qemu-devel] [PATCH v3 3/3] iotests: Add test for external image truncation

2014-10-23 Thread Max Reitz
On 2014-10-22 at 18:50, Eric Blake wrote: On 10/22/2014 09:57 AM, Max Reitz wrote: It should not be happening, but it is possible to truncate an image outside of qemu while qemu is running (or any of the qemu tools using the block layer. raw_co_get_block_status() should not break then. Signed-o

Re: [Qemu-devel] [PATCH v3 1/3] raw-posix: Fix raw_co_get_block_status() after EOF

2014-10-23 Thread Max Reitz
On 2014-10-22 at 18:57, Eric Blake wrote: On 10/22/2014 09:57 AM, Max Reitz wrote: As its comment states, raw_co_get_block_status() should unconditionally return 0 and set *pnum to 0 for after EOF. An assertion after lseek(..., SEEK_HOLE) tried to catch this case by asserting that errno != -ENX

Re: [Qemu-devel] [PATCH v3 1/3] raw-posix: Fix raw_co_get_block_status() after EOF

2014-10-23 Thread Max Reitz
On 2014-10-23 at 09:27, Max Reitz wrote: On 2014-10-22 at 18:57, Eric Blake wrote: On 10/22/2014 09:57 AM, Max Reitz wrote: As its comment states, raw_co_get_block_status() should unconditionally return 0 and set *pnum to 0 for after EOF. An assertion after lseek(..., SEEK_HOLE) tried to catch

Re: [Qemu-devel] [PATCH v3 2/3] raw-posix: raw_co_get_block_status() return value

2014-10-23 Thread Max Reitz
On 2014-10-22 at 19:00, Eric Blake wrote: On 10/22/2014 09:57 AM, Max Reitz wrote: Instead of generating the full return value thrice in try_fiemap(), try_seek_hole() and as a fall-back in raw_co_get_block_status() itself, generate the value only in raw_co_get_block_status(). While at it, also

Re: [Qemu-devel] [PATCH] i386: fix breakpoints handling in icount mode

2014-10-23 Thread Frederic Konrad
On 23/10/2014 07:57, Pavel Dovgaluk wrote: From: Frederic Konrad [mailto:fred.kon...@greensocs.com] On 22/10/2014 13:38, Pavel Dovgalyuk wrote: Hi Pavel, This patch fixes instructions counting when execution is stopped on breakpoint (e.g. set from gdb). Without a patch extra instruction is tran

Re: [Qemu-devel] [PATCH 1/3] vnc: remove superfluous vnc_display_close()

2014-10-23 Thread Gonglei
On 2014/10/23 15:09, Michael Tokarev wrote: > On 10/23/2014 09:39 AM, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> vnc_display_close() is called in vnc_display_open(). >> And in this moment, the ds variable is initilized >> at vnc_display_init(). Calling vnc_display_close() >> is superfl

Re: [Qemu-devel] [PATCH v3 3/3] iotests: Add test for external image truncation

2014-10-23 Thread Kevin Wolf
Am 23.10.2014 um 09:26 hat Max Reitz geschrieben: > On 2014-10-22 at 18:50, Eric Blake wrote: > >On 10/22/2014 09:57 AM, Max Reitz wrote: > >>It should not be happening, but it is possible to truncate an image > >>outside of qemu while qemu is running (or any of the qemu tools using > >>the block l

Re: [Qemu-devel] [PATCH v3 3/3] iotests: Add test for external image truncation

2014-10-23 Thread Max Reitz
On 2014-10-23 at 09:46, Kevin Wolf wrote: Am 23.10.2014 um 09:26 hat Max Reitz geschrieben: On 2014-10-22 at 18:50, Eric Blake wrote: On 10/22/2014 09:57 AM, Max Reitz wrote: It should not be happening, but it is possible to truncate an image outside of qemu while qemu is running (or any of th

Re: [Qemu-devel] [PATCH v13 03/14] qcow2: Optimize bdrv_make_empty()

2014-10-23 Thread Max Reitz
On 2014-10-22 at 20:35, Kevin Wolf wrote: Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: bdrv_make_empty() is currently only called if the current image represents an external snapshot that has been committed to its base image; it is therefore unlikely to have internal snapshots. In this case

Re: [Qemu-devel] [PATCH] i386: fix breakpoints handling in icount mode

2014-10-23 Thread Pavel Dovgaluk
> From: Frederic Konrad [mailto:fred.kon...@greensocs.com] > On 23/10/2014 07:57, Pavel Dovgaluk wrote: > >> From: Frederic Konrad [mailto:fred.kon...@greensocs.com] > >> On 22/10/2014 13:38, Pavel Dovgalyuk wrote: > >> > >> Hi Pavel, > >>> This patch fixes instructions counting when execution is s

Re: [Qemu-devel] [PATCH] vnc: fix fd leak at vnc_display_open()

2014-10-23 Thread Gerd Hoffmann
On Do, 2014-10-23 at 14:33 +0800, arei.gong...@huawei.com wrote: > From: Gonglei > > When using qmp change vnc interface, will leak fd > of vs->lsock and vs->lwebsock (if configed). Close > them before: re-evaluate. I think we can do that before "if (reverse)", then we'll need the code only once

Re: [Qemu-devel] [PATCH 3/3] vnc: remove superfluous DisplayState *ds parameter

2014-10-23 Thread Gonglei
On 2014/10/23 15:09, Michael Tokarev wrote: > On 10/23/2014 09:39 AM, arei.gong...@huawei.com wrote: > [] >> --- a/vl.c >> +++ b/vl.c >> @@ -4318,7 +4318,7 @@ int main(int argc, char **argv, char **envp) >> if (vnc_display) { >> Error *local_err = NULL; >> vnc_display_init(d

Re: [Qemu-devel] [PATCH] vnc: fix fd leak at vnc_display_open()

2014-10-23 Thread Gerd Hoffmann
On Do, 2014-10-23 at 14:33 +0800, arei.gong...@huawei.com wrote: > From: Gonglei > > When using qmp change vnc interface, will leak fd > of vs->lsock and vs->lwebsock (if configed). Close > them before: re-evaluate. Ah, the file handles are leaked because you dropped the vnc_display_close() call

Re: [Qemu-devel] [Qemu-trivial] [PATCH] vmdk: Fix cylinders number during convert

2014-10-23 Thread Markus Armbruster
Michael Tokarev writes: > On 10/22/2014 05:25 PM, Arthur Gautier wrote: >> We can not rely on int cast to get a correct number of cylinders. The >> cylinders information was wrong in 49.% of cases. >> >> This ensures the cylinders always gets the ceiling value. > > Good thing, especially the

Re: [Qemu-devel] [PATCH] vnc: fix fd leak at vnc_display_open()

2014-10-23 Thread Gonglei
On 2014/10/23 15:57, Gerd Hoffmann wrote: > On Do, 2014-10-23 at 14:33 +0800, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> When using qmp change vnc interface, will leak fd >> of vs->lsock and vs->lwebsock (if configed). Close >> them before: re-evaluate. > > Ah, the file handles are le

Re: [Qemu-devel] [PATCH 0/3] vnc: trivial problem and memory leak fix

2014-10-23 Thread Gerd Hoffmann
On Do, 2014-10-23 at 13:39 +0800, arei.gong...@huawei.com wrote: > From: Gonglei > > Beside those problems, I also found another issue, see below pls. > > Qemu command line: > $ ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -drive > file=/home/redhat.img,if=none,id=drive-ide0-

Re: [Qemu-devel] [Qemu-trivial] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-23 Thread Michael Tokarev
On 10/09/2014 06:00 PM, Chen Gang wrote: > The related variables are useless, need be removed, or can not pass > microblaze building, after fix it, can build microblaze, successfully. ... Applied to trivial (with subject fixup), thanks! /mjt

[Qemu-devel] [PATCH v2] libqos: Convert malloc-pc allocator to a generic allocator

2014-10-23 Thread Marc Marí
The allocator in malloc-pc has been extracted, so it can be used in every arch. This operation showed that both the alloc and free functions can be also generic. Because of this, the QGuestAllocator has been removed from is function to wrap the alloc and free function, and now just contains the all

Re: [Qemu-devel] [PATCH 0/3] vnc: trivial problem and memory leak fix

2014-10-23 Thread Gonglei
On 2014/10/23 16:08, Gerd Hoffmann wrote: > On Do, 2014-10-23 at 13:39 +0800, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> Beside those problems, I also found another issue, see below pls. >> >> Qemu command line: >> $ ./qemu-system-x86_64 -enable-kvm -m 4096 -smp 4 -name redhat6.2 -driv

Re: [Qemu-devel] [PATCH] vfio: check if host device supports INTx

2014-10-23 Thread Frank Blaschka
On Wed, Oct 22, 2014 at 11:17:11AM -0600, Alex Williamson wrote: > On Wed, 2014-10-22 at 17:13 +0200, Frank Blaschka wrote: > > From: Frank Blaschka > > > > Let the kernel announce if INTx is available. Yes, there are platforms > > (e.g. s390) which do not support INTx. > > > > Signed-off-by: Fr

Re: [Qemu-devel] [PATCH v13 03/14] qcow2: Optimize bdrv_make_empty()

2014-10-23 Thread Kevin Wolf
Am 23.10.2014 um 09:46 hat Max Reitz geschrieben: > On 2014-10-22 at 20:35, Kevin Wolf wrote: > >Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > >>bdrv_make_empty() is currently only called if the current image > >>represents an external snapshot that has been committed to its base > >>image; i

Re: [Qemu-devel] [PATCH] MAINTAINERS: add myself as bootdevice.c maintainer

2014-10-23 Thread Markus Armbruster
Gerd Hoffmann writes: > On Mi, 2014-10-22 at 11:07 +0800, arei.gong...@huawei.com wrote: >> From: Gonglei >> >> bootdevice.c was created by me, and I wrote most of >> the code in this file. And now I can maintain it, >> I'd hope nobody object this. > > That is perfectly fine. I'll go add it in

Re: [Qemu-devel] [PATCH v13 03/14] qcow2: Optimize bdrv_make_empty()

2014-10-23 Thread Max Reitz
On 2014-10-23 at 10:29, Kevin Wolf wrote: Am 23.10.2014 um 09:46 hat Max Reitz geschrieben: On 2014-10-22 at 20:35, Kevin Wolf wrote: Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: bdrv_make_empty() is currently only called if the current image represents an external snapshot that has been

Re: [Qemu-devel] [PATCH] MAINTAINERS: add myself as bootdevice.c maintainer

2014-10-23 Thread Paolo Bonzini
On 10/23/2014 10:33 AM, Markus Armbruster wrote: > Since I already collected them to find out by how much they reduce the > number of unmaintained files: Peter, would you find a pull request for > the collection useful? I was going to submit mine today in a pull request. Paolo

Re: [Qemu-devel] [PATCH v13 03/14] qcow2: Optimize bdrv_make_empty()

2014-10-23 Thread Kevin Wolf
Am 23.10.2014 um 10:36 hat Max Reitz geschrieben: > On 2014-10-23 at 10:29, Kevin Wolf wrote: > >Am 23.10.2014 um 09:46 hat Max Reitz geschrieben: > >>On 2014-10-22 at 20:35, Kevin Wolf wrote: > >>>Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > bdrv_make_empty() is currently only called if

Re: [Qemu-devel] [PATCH] i386: fix breakpoints handling in icount mode

2014-10-23 Thread Frederic Konrad
On 23/10/2014 09:52, Pavel Dovgaluk wrote: From: Frederic Konrad [mailto:fred.kon...@greensocs.com] On 23/10/2014 07:57, Pavel Dovgaluk wrote: From: Frederic Konrad [mailto:fred.kon...@greensocs.com] On 22/10/2014 13:38, Pavel Dovgalyuk wrote: Hi Pavel, This patch fixes instructions counting w

Re: [Qemu-devel] [Qemu-trivial] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-23 Thread Peter Maydell
On 23 October 2014 09:09, Michael Tokarev wrote: > On 10/09/2014 06:00 PM, Chen Gang wrote: >> The related variables are useless, need be removed, or can not pass >> microblaze building, after fix it, can build microblaze, successfully. > ... > > Applied to trivial (with subject fixup), thanks! P

Re: [Qemu-devel] Help wanted: QEMU Advent Calendar 2014 extravaganza

2014-10-23 Thread Stefan Hajnoczi
On Wed, Oct 22, 2014 at 2:50 PM, Stefan Hajnoczi wrote: > * International Obfuscated C Coding Competition 2004 entry - 32-bit > multitasking operating system (http://www.ioccc.org/2004/gavin.hint) For the record, I created a floppy image (with SYSLINUX) but it doesn't boot successfully. Tried a

Re: [Qemu-devel] [PATCH v13 03/14] qcow2: Optimize bdrv_make_empty()

2014-10-23 Thread Max Reitz
On 2014-10-23 at 10:41, Kevin Wolf wrote: Am 23.10.2014 um 10:36 hat Max Reitz geschrieben: On 2014-10-23 at 10:29, Kevin Wolf wrote: Am 23.10.2014 um 09:46 hat Max Reitz geschrieben: On 2014-10-22 at 20:35, Kevin Wolf wrote: Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: bdrv_make_empty(

Re: [Qemu-devel] [PATCH RFC 00/11] qemu: towards virtio-1 host support

2014-10-23 Thread Michael S. Tsirkin
On Thu, Oct 23, 2014 at 08:44:09AM +0200, Jan Kiszka wrote: > On 2014-10-22 22:34, Benjamin Herrenschmidt wrote: > > On Wed, 2014-10-22 at 16:17 +0200, Jan Kiszka wrote: > >> I thought about this again, and I'm not sure anymore if we can use > >> ACPI > >> to "black-list" the incompatible virtio de

[Qemu-devel] [PATCH 1/1] omap_gpmc.c: Remove duplicate assignment

2014-10-23 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" This looks like an old merge error and should have no effect. (Build tested only) Found by Coccinelle using Julia Lawall's script: https://lkml.org/lkml/2014/8/23/128 Signed-off-by: Dr. David Alan Gilbert --- hw/misc/omap_gpmc.c | 2 -- 1 file changed, 2 deletio

Re: [Qemu-devel] [PATCH] MAINTAINERS: add myself as bootdevice.c maintainer

2014-10-23 Thread Peter Maydell
On 23 October 2014 09:33, Markus Armbruster wrote: > Gerd Hoffmann writes: >> That is perfectly fine. I'll go add it into one of the next pull >> requests, unless someone collects all the MAINTAINERS patches on the >> list earlier ;) > > Since I already collected them to find out by how much the

Re: [Qemu-devel] [PATCH v13 03/14] qcow2: Optimize bdrv_make_empty()

2014-10-23 Thread Kevin Wolf
Am 23.10.2014 um 11:11 hat Max Reitz geschrieben: > >>>Leaves the question, is it worth the hassle? > >>Probably not. Would you be fine with setting bs->drv to NULL in the > >>problematic error paths? > >By calling qcow2_signal_corruption(), right? I think that's fine. > > I don't know. The image

Re: [Qemu-devel] [PATCH v13 03/14] qcow2: Optimize bdrv_make_empty()

2014-10-23 Thread Max Reitz
On 2014-10-23 at 11:42, Kevin Wolf wrote: Am 23.10.2014 um 11:11 hat Max Reitz geschrieben: Leaves the question, is it worth the hassle? Probably not. Would you be fine with setting bs->drv to NULL in the problematic error paths? By calling qcow2_signal_corruption(), right? I think that's fine

Re: [Qemu-devel] [PULL 0/1] Fixes for QGA

2014-10-23 Thread Peter Maydell
On 22 October 2014 13:59, Michael Roth wrote: > The following changes since commit 01a2050fa5fb3d290134b67ee82eb3ebbd91d95b: > > hw/i386/pc_q35.c: Avoid g_assert_cmpint() as it is not in glib 2.12 > (2014-10-22 11:32:44 +0100) > > are available in the git repository at: > > git://github.com/m

Re: [Qemu-devel] [PATCH] i386: fix breakpoints handling in icount mode

2014-10-23 Thread Pavel Dovgaluk
> From: Frederic Konrad [mailto:fred.kon...@greensocs.com] > On 23/10/2014 09:52, Pavel Dovgaluk wrote: > >> From: Frederic Konrad [mailto:fred.kon...@greensocs.com] > >> On 23/10/2014 07:57, Pavel Dovgaluk wrote: > From: Frederic Konrad [mailto:fred.kon...@greensocs.com] > On 22/10/2014

Re: [Qemu-devel] [PATCHv2 5/6] block: add qemu-iotest for write-merge parameter

2014-10-23 Thread Max Reitz
On 2014-10-22 at 15:21, Peter Lieven wrote: Signed-off-by: Peter Lieven --- tests/qemu-iotests/108 | 108 It's a pity, but 108 is already taken (by me and on Kevin's block branch at least). 108 having 108 lines would have been nice, though.

Re: [Qemu-devel] [PATCH v13 05/14] blockjob: Add "ready" field

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > When a block job signals readiness, this is currently reported only > through QMP. If qemu wants to use block jobs for internal tasks, there > needs to be another way to correctly detect when a block job may be > completed. > > For this reason, i

Re: [Qemu-devel] [PATCHv2 6/6] block: fix qemu-iotest reference output for test 067

2014-10-23 Thread Max Reitz
On 2014-10-22 at 15:22, Peter Lieven wrote: Output is changed by the addition of the write-merging parameter Signed-off-by: Peter Lieven --- tests/qemu-iotests/067.out | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Max Reitz

Re: [Qemu-devel] [PATCH v5] linux-user: Let user specify random seed

2014-10-23 Thread Riku Voipio
On Wed, Oct 22, 2014 at 03:17:33PM +0200, Magnus Reftel wrote: > On Tue, Oct 14, 2014 at 5:18 PM, Magnus Reftel wrote: > > linux-user uses the rand function for generating the value of the AT_RANDOM > > elf > > aux vector entry, and explicitly seeds the random number generator with the > > curren

Re: [Qemu-devel] [PATCH v13 06/14] iotests: Omit length/offset test in 040 and 041

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > As of a follow-up patch to this one, the length of a mirror block job > will no longer directly depend on the size of the block device; > therefore, drop these checks from this test. Instead, just check whether > the final offset equals the block

Re: [Qemu-devel] [PATCH v13 06/14] iotests: Omit length/offset test in 040 and 041

2014-10-23 Thread Max Reitz
On 2014-10-23 at 12:06, Kevin Wolf wrote: Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: As of a follow-up patch to this one, the length of a mirror block job will no longer directly depend on the size of the block device; therefore, drop these checks from this test. Instead, just check wheth

Re: [Qemu-devel] [Qemu-trivial] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-23 Thread Peter Maydell
On 23 October 2014 10:02, Peter Maydell wrote: > On 23 October 2014 09:09, Michael Tokarev wrote: >> Applied to trivial (with subject fixup), thanks! > > Please don't -- as I said, I have a libvixl update in my queue, > and these will conflict. I'll apply an appropriate variation of > this patch

[Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-10-23 Thread Eric Auger
Dear all, The goal of this mail is to summarize how dynamic sysbus device tree nodes were created on ARM with "machvirt dynamic sysbus device instantiation", https://lists.gnu.org/archive/html/qemu-devel/2014-09/msg01626.html and request some advises after commit "hw/arm/boot: load DTB as a ROM im

Re: [Qemu-devel] [PATCHv4 1/4] util: introduce MIN_NON_ZERO

2014-10-23 Thread Max Reitz
On 2014-10-16 at 09:54, Peter Lieven wrote: at least in block layer we have the case of limits being defined for a BlockDriverState. However, in this context often zero (0) has the special meanining of undefined which means no limit. If two of those limits are combined and the minimum is needed t

Re: [Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-10-23 Thread Alexander Graf
On 23.10.14 12:10, Eric Auger wrote: > Dear all, > > The goal of this mail is to summarize how dynamic sysbus device tree > nodes were created on ARM with "machvirt dynamic sysbus device > instantiation", > https://lists.gnu.org/archive/html/qemu-devel/2014-09/msg01626.html > and request some ad

Re: [Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-10-23 Thread Ard Biesheuvel
> Dear all, > > The goal of this mail is to summarize how dynamic sysbus device tree > nodes were created on ARM with "machvirt dynamic sysbus device > instantiation", > https://lists.gnu.org/archive/html/qemu-devel/2014-09/msg01626.html > and request some advises after commit "hw/arm/boot: load DT

Re: [Qemu-devel] [Qemu-trivial] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-23 Thread Michael Tokarev
On 10/23/2014 02:09 PM, Peter Maydell wrote: > On 23 October 2014 10:02, Peter Maydell wrote: >> On 23 October 2014 09:09, Michael Tokarev wrote: >>> Applied to trivial (with subject fixup), thanks! >> >> Please don't -- as I said, I have a libvixl update in my queue, >> and these will conflict.

Re: [Qemu-devel] [PATCH v13 07/14] block/mirror: Improve progress report

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > Instead of taking the total length of the block device as the block > job's length, use the number of dirty sectors. The progress is now the > number of sectors mirrored to the target block device. Note that this > may result in the job's length i

Re: [Qemu-devel] [Qemu-trivial] [PATCH] disas/libvixl/a64/instructions-a64.h: Remove useless varialbe to avoid building break with '-Werror'

2014-10-23 Thread Peter Maydell
On 23 October 2014 11:27, Michael Tokarev wrote: > On 10/23/2014 02:09 PM, Peter Maydell wrote: >> On 23 October 2014 10:02, Peter Maydell wrote: >>> On 23 October 2014 09:09, Michael Tokarev wrote: Applied to trivial (with subject fixup), thanks! >>> >>> Please don't -- as I said, I have a

Re: [Qemu-devel] [PATCH v13 07/14] block/mirror: Improve progress report

2014-10-23 Thread Max Reitz
On 2014-10-23 at 12:52, Kevin Wolf wrote: Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: Instead of taking the total length of the block device as the block job's length, use the number of dirty sectors. The progress is now the number of sectors mirrored to the target block device. Note that

Re: [Qemu-devel] [PATCHv4 2/4] BlockLimits: introduce max_transfer_length

2014-10-23 Thread Max Reitz
On 2014-10-16 at 09:54, Peter Lieven wrote: Signed-off-by: Peter Lieven --- block.c |4 include/block/block_int.h |3 +++ 2 files changed, 7 insertions(+) Reviewed-by: Max Reitz

Re: [Qemu-devel] [PATCHv4 3/4] block/iscsi: set max_transfer_length

2014-10-23 Thread Max Reitz
On 2014-10-16 at 09:54, Peter Lieven wrote: the limit of 0xff for 16 byte CDBs is intentional to avoid overflows on 32-bit architectures. How is it related to 32 bit? I somehow feel like it has to do something with the result of sector_lun2qemu() which involves block_size... Signed-off-

Re: [Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-10-23 Thread Alexander Graf
On 23.10.14 12:19, Ard Biesheuvel wrote: >> Dear all, >> >> The goal of this mail is to summarize how dynamic sysbus device tree >> nodes were created on ARM with "machvirt dynamic sysbus device >> instantiation", >> https://lists.gnu.org/archive/html/qemu-devel/2014-09/msg01626.html >> and reque

Re: [Qemu-devel] [PATCHv4 4/4] block: avoid creating oversized writes in multiwrite_merge

2014-10-23 Thread Max Reitz
On 2014-10-16 at 09:54, Peter Lieven wrote: Signed-off-by: Peter Lieven Reviewed-by: Ronnie Sahlberg --- block.c |5 + 1 file changed, 5 insertions(+) diff --git a/block.c b/block.c index 0fbf916..9ad2287 100644 --- a/block.c +++ b/block.c @@ -4554,6 +4554,11 @@ static int multiwrit

Re: [Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-10-23 Thread Peter Maydell
On 23 October 2014 12:23, Alexander Graf wrote: > On 23.10.14 12:19, Ard Biesheuvel wrote: >> The reason for this change was that, before, the DTB would only be >> generated once, and after a reset, the machine would go through the >> kernel boot protocol as before but the DTB pointer would point

Re: [Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-10-23 Thread Alexander Graf
On 23.10.14 13:24, Peter Maydell wrote: > On 23 October 2014 12:23, Alexander Graf wrote: >> On 23.10.14 12:19, Ard Biesheuvel wrote: >>> The reason for this change was that, before, the DTB would only be >>> generated once, and after a reset, the machine would go through the >>> kernel boot pro

Re: [Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-10-23 Thread Eric Auger
Hi, Thanks everyone for entering the thread & reading my long email. Alex, I indeed can register the notifier in the machine file after the platform bus instantiation. This indeed guarantees the notifiers are called in the right order ... Thanks Best Regards Eric On 10/23/2014 01:26 PM, Alexa

[Qemu-devel] [PATCH] linux-user: Fix fault address truncation AArch64

2014-10-23 Thread riku . voipio
From: Riku Voipio On AArch64 the si_addr field of siginfo_t is truncated to 32 bits because the fault address passes through an uint32_t variable. This is fixed by changing the variable to uint64_t. v2 by Riku - follow Peters suggestion and drop the addr variable since its only used once in the

Re: [Qemu-devel] [PATCH v13 08/14] qemu-img: Implement commit like QMP

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > qemu-img should use QMP commands whenever possible in order to ensure > feature completeness of both online and offline image operations. As > qemu-img itself has no access to QMP (since this would basically require > just everything being linked

Re: [Qemu-devel] [PATCH v13 07/14] block/mirror: Improve progress report

2014-10-23 Thread Kevin Wolf
Am 23.10.2014 um 13:09 hat Max Reitz geschrieben: > On 2014-10-23 at 12:52, Kevin Wolf wrote: > >Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > >>Instead of taking the total length of the block device as the block > >>job's length, use the number of dirty sectors. The progress is now the > >>n

Re: [Qemu-devel] [PATCH] linux-user: Fix fault address truncation AArch64

2014-10-23 Thread Peter Maydell
On 23 October 2014 12:55, wrote: > From: Riku Voipio > > On AArch64 the si_addr field of siginfo_t is truncated to 32 bits > because the fault address passes through an uint32_t variable. This > is fixed by changing the variable to uint64_t. > > v2 by Riku - follow Peters suggestion and drop the

Re: [Qemu-devel] [PATCH] MAINTAINERS: add myself as bootdevice.c maintainer

2014-10-23 Thread Markus Armbruster
Peter Maydell writes: > On 23 October 2014 09:33, Markus Armbruster wrote: >> Gerd Hoffmann writes: >>> That is perfectly fine. I'll go add it into one of the next pull >>> requests, unless someone collects all the MAINTAINERS patches on the >>> list earlier ;) >> >> Since I already collected

Re: [Qemu-devel] The status about vhost-net on kvm-arm?

2014-10-23 Thread Li Liu
On 2014/10/17 20:49, GAUGUEY Rémy 228890 wrote: > Thanks for your feedback, > >> static irqreturn_t vm_interrupt(int irq, void *opaque) { >> .. >> >> /* Read and acknowledge interrupts */ >> /*status = readl(vm_dev->base + VIRTIO_MMIO_INTERRUPT_STATUS); >> writel(status,

[Qemu-devel] BlockBackend next steps

2014-10-23 Thread Markus Armbruster
"Need BlockBackend" has been a recurring theme for a long time. It's finally on master now. Plenty of work left to do. Let's coordinate next steps to avoid duplicate work. A few obvious tasks: * Complete monitor command conversion Commands deal with complete backends and with individual nod

Re: [Qemu-devel] [PATCH 0/3] vnc: trivial problem and memory leak fix

2014-10-23 Thread Gerd Hoffmann
Hi, > >> Though we call qmp_change_vnc() failed, the content of global variable > >> vnc_display > >> still will change, such as 'vs->auth = VNC_AUTH_NONE' now. I think this is > >> not > >> reasonable, but I have not good idea to address this issue. > > > > I think the current behavior is fi

Re: [Qemu-devel] [PATCH v4 46/47] postcopy: Wire up loadvm_postcopy_ram_handle_{run, end} commands

2014-10-23 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 03/10/2014 19:47, Dr. David Alan Gilbert (git) ha scritto: > > +bool one_message = false; > > +/* This looks good, but it's possible that the device loading in > > the > > + * main thread hasn't finished yet, and so we might

Re: [Qemu-devel] [PATCH 0/3] vnc: trivial problem and memory leak fix

2014-10-23 Thread Gonglei
On 2014/10/23 20:16, Gerd Hoffmann wrote: > Hi, > Though we call qmp_change_vnc() failed, the content of global variable vnc_display still will change, such as 'vs->auth = VNC_AUTH_NONE' now. I think this is not reasonable, but I have not good idea to address this iss

Re: [Qemu-devel] [PATCH] MAINTAINERS: add myself as bootdevice.c maintainer

2014-10-23 Thread Gerd Hoffmann
Hi, > I expect some of the patches to be in the Kevin's, Paolos and Gerd's > next pull requests. Happy to collect whatever's left after the dust > settled. I happily leave this one to you. Looking forward to see your first pull req ;) cheers, Gerd

Re: [Qemu-devel] [Qemu-trivial] [PATCH 0/3] bitops: Header dependency fixes

2014-10-23 Thread Eduardo Habkost
On Thu, Oct 23, 2014 at 10:35:47AM +0400, Michael Tokarev wrote: > On 09/26/2014 11:46 PM, Eduardo Habkost wrote: > > This series adds a missing include, kills a circular header dependency, and > > avoid including qemu-common.h from a header to avoid new circular > > dependencies. > > > > Eduardo

Re: [Qemu-devel] [PATCH] MAINTAINERS: add myself as bootdevice.c maintainer

2014-10-23 Thread Gonglei
On 2014/10/23 20:27, Gerd Hoffmann wrote: > Hi, > >> I expect some of the patches to be in the Kevin's, Paolos and Gerd's >> next pull requests. Happy to collect whatever's left after the dust >> settled. > > I happily leave this one to you. > Looking forward to see your first pull req ;) >

Re: [Qemu-devel] [PATCH v13 08/14] qemu-img: Implement commit like QMP

2014-10-23 Thread Max Reitz
On 2014-10-23 at 13:59, Kevin Wolf wrote: Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: qemu-img should use QMP commands whenever possible in order to ensure feature completeness of both online and offline image operations. As qemu-img itself has no access to QMP (since this would basically

Re: [Qemu-devel] [PATCH v13 08/14] qemu-img: Implement commit like QMP

2014-10-23 Thread Kevin Wolf
Am 23.10.2014 um 14:35 hat Max Reitz geschrieben: > On 2014-10-23 at 13:59, Kevin Wolf wrote: > >Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > >>qemu-img should use QMP commands whenever possible in order to ensure > >>feature completeness of both online and offline image operations. As > >>q

Re: [Qemu-devel] dynamic sysbus instantiation and load_dtb implementation

2014-10-23 Thread Eric Auger
On 10/23/2014 01:41 PM, Eric Auger wrote: > Hi, > > Thanks everyone for entering the thread & reading my long email. > > Alex, I indeed can register the notifier in the machine file after s/after/before Eric the > platform bus instantiation. This indeed guarantees the notifiers are > called in t

Re: [Qemu-devel] [PATCH v13 08/14] qemu-img: Implement commit like QMP

2014-10-23 Thread Max Reitz
On 2014-10-23 at 14:40, Kevin Wolf wrote: Am 23.10.2014 um 14:35 hat Max Reitz geschrieben: On 2014-10-23 at 13:59, Kevin Wolf wrote: Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: qemu-img should use QMP commands whenever possible in order to ensure feature completeness of both online and

Re: [Qemu-devel] [PATCH v13 09/14] qemu-img: Empty image after commit

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > After the top image has been committed, it should be emptied unless > specified otherwise. > > Signed-off-by: Max Reitz > Reviewed-by: Eric Blake Reviewed-by: Kevin Wolf

Re: [Qemu-devel] [PATCH v13 10/14] qemu-img: Enable progress output for commit

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > Implement progress output for the commit command by querying the > progress of the block job. > > Signed-off-by: Max Reitz > Reviewed-by: Eric Blake Reviewed-by: Kevin Wolf

Re: [Qemu-devel] [PATCH v13 11/14] qemu-img: Specify backing file for commit

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > Introduce a new parameter for qemu-img commit which may be used to > explicitly specify the backing file into which an image should be > committed if the backing chain has more than a single layer. > > Signed-off-by: Max Reitz Reviewed-by: Kevi

Re: [Qemu-devel] Help wanted: QEMU Advent Calendar 2014 extravaganza

2014-10-23 Thread Gerd Hoffmann
Hi, > Disk images: > * Need a disk image for each day: 1-25 December > * Must be freely redistributable (i.e. no proprietary license that > prevents distribution) > * Ideally under 100 MB per disk image > * Please include a command-line for launching the disk image > * Please include a shor

Re: [Qemu-devel] [PATCH v13 12/14] iotests: Add _filter_qemu_img_map

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > As different image formats most probably map guest addresses to > different host addresses, add a filter to filter the host addresses out; > also, the image filename should be filtered. > > Signed-off-by: Max Reitz > Reviewed-by: Eric Blake Re

[Qemu-devel] QEMU Summit 2014 minutes

2014-10-23 Thread Peter Maydell
This is a brief writeup of what we discussed at the QEMU Summit 2014 at KVM Forum last week. Unfortunately I didn't have the presence of mind to request that anybody took notes, so this is based on my memory and on the agenda we sent out, and may contain errors. Please feel free to correct me if I

Re: [Qemu-devel] [PATCH 2/3 RFC] s390: implement pci instructions

2014-10-23 Thread Thomas Huth
Hi Frank, On Wed, 22 Oct 2014 17:11:59 +0200 Frank Blaschka wrote: > From: Frank Blaschka > > This patch implements the s390 pci instructions in qemu. It allows > to access and drive pci devices attached to the s390 pci bus. > Because of platform constrains devices using IO BARs are not > su

Re: [Qemu-devel] [PATCH 1/1] omap_gpmc.c: Remove duplicate assignment

2014-10-23 Thread Peter Maydell
On 23 October 2014 10:17, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > This looks like an old merge error and should have no effect. > (Build tested only) > > Found by Coccinelle using Julia Lawall's script: > https://lkml.org/lkml/2014/8/23/128 > > Signed-off-by: Dr.

Re: [Qemu-devel] [PATCH] arm: fix TB alignment check

2014-10-23 Thread Peter Maydell
On 21 October 2014 13:14, Pavel Dovgalyuk wrote: > Sometimes page faults happen during the translation of the target > instructions. > To avoid the faults in the middle of the TB we have to stop translation at > the end of the page. Current implementation of ARM translation assumes that > instruc

Re: [Qemu-devel] [PATCH v13 13/14] iotests: Add test for backing-chain commits

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > Add a test for qemu-img commit on backing chains with more than two > images. This test also checks whether the top image is emptied (unless > this is prevented by specifying either -d or -b) and does therefore not > work for qed and vmdk which re

Re: [Qemu-devel] [PATCH 0/2] block/vdi: Fix bmap writing error

2014-10-23 Thread Max Reitz
On 2014-10-23 at 09:07, Max Reitz wrote: On 2014-10-22 at 13:56, Kevin Wolf wrote: Am 21.10.2014 um 10:51 hat Max Reitz geschrieben: The bmap size in block/vdi.c may exceed INT_MAX. Using bdrv_pwrite_sync() (which takes an int byte count) is therefore not a good idea. The second patch of this s

Re: [Qemu-devel] [PATCH v5 0/3] monitor: add peripheral device del completion support

2014-10-23 Thread Luiz Capitulino
On Tue, 21 Oct 2014 19:46:03 +0800 Zhu Guihua wrote: > After inputting device_del command in monitor, we expect to list all > hotpluggable devices automatically by pressing tab key. This patchset provides > the function to list all peripheral devices such as memory devices. Applied to the qmp br

[Qemu-devel] [PATCH] qemu-img: Print error if check failed

2014-10-23 Thread Max Reitz
Currently, if bdrv_check() fails either by returning -errno or having check_errors set, qemu-img check just exits with 1 after having told the user that there were no errors on the image. This is bad. Instead of printing the check result if there were internal errors which were so bad that bdrv_ch

Re: [Qemu-devel] [PATCH v13 14/14] iotests: Add test for qcow2's bdrv_make_empty

2014-10-23 Thread Kevin Wolf
Am 22.10.2014 um 14:51 hat Max Reitz geschrieben: > Add a test for qcow2's fast bdrv_make_empty implementation on images > without internal snapshots. > > Signed-off-by: Max Reitz We'll probably want to add more test cases, but what's there looks reasonable. Reviewed-by: Kevin Wolf

[Qemu-devel] [PULL 00/24] SCSI, maintainers and more - 2014-10-17

2014-10-23 Thread Paolo Bonzini
The following changes since commit 5f77ef69a195098baddfdc6d189f1b4a94587378: glib: add compatibility interface for g_strcmp0() (2014-10-16 23:02:31 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to 6dad2b7b17ddf

  1   2   3   >