[PATCH] ppc/pnv: Fix NMI system reset SRR1 value

2020-05-07 Thread Nicholas Piggin
Commit a77fed5bd926 ("ppc/pnv: Add support for NMI interface") got the SRR1 setting wrong for sresets that hit outside of power-save states. Fix this, better documenting the source for the bit definitions. Fixes: a77fed5bd926 ("ppc/pnv: Add support for NMI interface") got the Cc: Cédric Le

Re: [PATCH] 9pfs: Fix potential deadlock of QEMU mainloop

2020-05-07 Thread Christian Schoenebeck
On Mittwoch, 6. Mai 2020 19:54:15 CEST Greg Kurz wrote: > On Wed, 06 May 2020 15:36:16 +0200 > > Christian Schoenebeck wrote: > > On Mittwoch, 6. Mai 2020 15:05:23 CEST Christian Schoenebeck wrote: > > > > diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c > > > > index 9e046f7acb51..ac84ae804496 100644 >

Re: [PATCH v3 32/33] block: Pass BdrvChildRole in remaining cases

2020-05-07 Thread Kevin Wolf
Am 07.05.2020 um 11:36 hat Max Reitz geschrieben: > On 06.05.20 19:13, Kevin Wolf wrote: > > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: > >> These calls have no real use for the child role yet, but it will not > >> harm to give one. > >> > >> Notably, the bdrv_root_attach_child() call in

RE: [PATCH v4 5/6] net/colo-compare.c, softmmu/vl.c: Check that colo-compare is active

2020-05-07 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Monday, May 4, 2020 6:28 PM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang ; Marc- > André Lureau ; Paolo Bonzini > > Subject: [PATCH v4 5/6] net/colo-compare.c, softmmu/vl.c: Check that colo- > compare is active > >

Re: [PATCH] 9pfs: Fix potential deadlock of QEMU mainloop

2020-05-07 Thread Christian Schoenebeck
On Mittwoch, 6. Mai 2020 19:49:10 CEST Greg Kurz wrote: > > Ok, but why not both? Moving locks to worker thread and QemuMutex -> > > CoMutex? > Using CoMutex would be mandatory if we leave the locking where it sits > today, so that the main thread can switch to other coroutines instead > of

Re: [PATCH v3 09/33] block: Add generic bdrv_inherited_options()

2020-05-07 Thread Max Reitz
On 07.05.20 13:19, Kevin Wolf wrote: > Am 07.05.2020 um 10:49 hat Max Reitz geschrieben: >> On 06.05.20 12:37, Kevin Wolf wrote: >>> Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: +if (role & BDRV_CHILD_COW) { +/* backing files are always opened read-only */ >>> >>> Not

Re: [PATCH v3 26/33] block: Use child_of_bds in remaining places

2020-05-07 Thread Kevin Wolf
Am 07.05.2020 um 11:33 hat Max Reitz geschrieben: > On 06.05.20 19:04, Kevin Wolf wrote: > > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: > >> Replace child_file by child_of_bds in all remaining places (excluding > >> tests). > >> > >> Signed-off-by: Max Reitz > >> Reviewed-by: Eric Blake >

Re: [PATCH v24 0/4] implement zstd cluster compression method

2020-05-07 Thread Max Reitz
On 07.05.20 10:25, Denis Plotnikov wrote: > v24: >01: add "compression_type" to the tests output [Max] >hopefully, I've found them all. Looks like it from what I can tell. :) Thanks, applied to my block branch: https://git.xanclic.moe/XanClic/qemu/commits/branch/block Max

Re: [PATCH v3 09/33] block: Add generic bdrv_inherited_options()

2020-05-07 Thread Kevin Wolf
Am 07.05.2020 um 10:49 hat Max Reitz geschrieben: > On 06.05.20 12:37, Kevin Wolf wrote: > > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: > >> +if (role & BDRV_CHILD_COW) { > >> +/* backing files are always opened read-only */ > > > > Not "always", just by default. > > OK. I

Re: [PATCH 7/9] parallels: Rework truncation logic

2020-05-07 Thread Denis V. Lunev
On 4/28/20 11:29 PM, Eric Blake wrote: > The parallels driver tries to use truncation for image growth, but can > only do so when reads are guaranteed as zero. Now that we have a way > to request zero contents from truncation, we can defer the decision to > actual allocation attempts rather than

Re: [PATCH v4 02/14] qcrypto/luks: implement encryption key management

2020-05-07 Thread Maxim Levitsky
On Thu, 2020-05-07 at 12:02 +0100, Daniel P. Berrangé wrote: > On Tue, May 05, 2020 at 11:08:07PM +0300, Maxim Levitsky wrote: > > Next few patches will expose that functionality > > to the user. > > > > Signed-off-by: Maxim Levitsky > > --- > > crypto/block-luks.c | 395

Re: [PATCH v4 02/14] qcrypto/luks: implement encryption key management

2020-05-07 Thread Maxim Levitsky
On Thu, 2020-05-07 at 12:02 +0100, Daniel P. Berrangé wrote: > On Tue, May 05, 2020 at 11:08:07PM +0300, Maxim Levitsky wrote: > > Next few patches will expose that functionality > > to the user. > > > > Signed-off-by: Maxim Levitsky > > --- > > crypto/block-luks.c | 395

[PATCH 1/2] megasas: use unsigned type for reply_queue_head

2020-05-07 Thread P J P
From: Prasad J Pandit A guest user may set 's->reply_queue_head' MegasasState field to a negative value. Later in 'megasas_lookup_frame' it is used to index into s->frames[] array. Use unsigned type to avoid OOB access issue. Reported-by: Ren Ding Signed-off-by: Prasad J Pandit ---

[PATCH 0/2] use unsigned type for MegasasState fields

2020-05-07 Thread P J P
From: Prasad J Pandit Hello, * This series fixes an OOB access issue which may occur when a guest user sets 's->reply_queue_head' field to a negative(or large positive) value, via 'struct mfi_init_qinfo' object in megasas_init_firmware(). * Second patch updates other numeric fields of

Re: [PATCH v4 02/14] qcrypto/luks: implement encryption key management

2020-05-07 Thread Daniel P . Berrangé
On Tue, May 05, 2020 at 11:08:07PM +0300, Maxim Levitsky wrote: > Next few patches will expose that functionality > to the user. > > Signed-off-by: Maxim Levitsky > --- > crypto/block-luks.c | 395 +++- > qapi/crypto.json| 61 ++- > 2 files

[PATCH 2/2] megasas: use unsigned type for positive numeric fields

2020-05-07 Thread P J P
From: Prasad J Pandit Use unsigned type for the MegasasState fields which hold positive numeric values. Signed-off-by: Prasad J Pandit --- hw/scsi/megasas.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/hw/scsi/megasas.c

RE: [PATCH v4 3/6] net/colo-compare.c: Fix deadlock in compare_chr_send

2020-05-07 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Monday, May 4, 2020 6:28 PM > To: qemu-devel > Cc: Zhang, Chen ; Li Zhijian > ; Jason Wang ; Marc- > André Lureau ; Paolo Bonzini > > Subject: [PATCH v4 3/6] net/colo-compare.c: Fix deadlock in > compare_chr_send > > The chr_out

Re: [PATCH v3] migration/throttle: Add cpu-throttle-tailslow migration parameter

2020-05-07 Thread zhukeqian
Hi Dr.David, Sorry for the reply delay, just come back from holiday. On 2020/4/30 22:12, Dr. David Alan Gilbert wrote: > * Keqian Zhu (zhukeqi...@huawei.com) wrote: >> At the tail stage of throttling, the Guest is very sensitive to >> CPU percentage while the @cpu-throttle-increment is excessive

Re: [PATCH 0/9] More truncate improvements

2020-05-07 Thread Kevin Wolf
Am 28.04.2020 um 22:28 hat Eric Blake geschrieben: > Based-on: <20200424125448.63318-1-kw...@redhat.com> > [PATCH v7 00/10] block: Fix resize (extending) of short overlays > > After reviewing Kevin's work, I questioned if we had a redundancy with > bdrv_has_zero_init_truncate. It turns out we

Re: [RFC PATCH 6/6] hw/block/nvme: Make device target agnostic

2020-05-07 Thread Stefan Hajnoczi
On Mon, May 04, 2020 at 05:36:22PM +0200, Philippe Mathieu-Daudé wrote: > +Keith new email > > On 5/4/20 11:46 AM, Philippe Mathieu-Daudé wrote: > > The NVMe device should not use target specific API. > > Use memory_region_do_writeback() (which was introduced > > in commit 61c490e25e0, after the

Re: tst-arm-mte bug: PSTATE.TCO is cleared on exceptions

2020-05-07 Thread Szabolcs Nagy
The 05/06/2020 13:57, Szabolcs Nagy wrote: > However later on during testing malloc with PROT_MTE > i got a qemu assert failure: > > Bail out! ERROR:/S/target/arm/mte_helper.c:97:allocation_tag_mem: assertion > failed: (tag_size <= in_page) > > i can reproduce it, but i don't know how to debug

Re: [PULL 00/10] tcg patch queue

2020-05-07 Thread Peter Maydell
On Wed, 6 May 2020 at 19:30, Richard Henderson wrote: > > The following changes since commit a36d64f43325fa503075cc9408ddabb69b32f829: > > Merge remote-tracking branch > 'remotes/stsquad/tags/pull-testing-and-gdbstub-060520-1' into staging > (2020-05-06 14:06:00 +0100) > > are available in

Re: [PATCH v1 7/7] translate-all: include guest address in out_asm output

2020-05-07 Thread Alex Bennée
Alex Bennée writes: > diff --git a/tcg/tcg.c b/tcg/tcg.c > index a2268d9db0..f5e4529df2 100644 > --- a/tcg/tcg.c > +++ b/tcg/tcg.c > @@ -4211,6 +4211,7 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb) > } > tcg_debug_assert(num_insns >= 0); >

Re: [PATCH v2 2/2] char-file: add test for distinct path= and pathin=

2020-05-07 Thread Darren Kenny
Hi Alex, For the most part this looks fine, but I wonder if maybe there should be a couple more assertions to be certain that things are set up correctly at first, as well as maybe being sure to confirm that things weren't modified using stat(). See below... On Thursday, 2020-05-07 at 02:24:42

Re: [PATCH v3 32/33] block: Pass BdrvChildRole in remaining cases

2020-05-07 Thread Max Reitz
On 06.05.20 19:13, Kevin Wolf wrote: > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: >> These calls have no real use for the child role yet, but it will not >> harm to give one. >> >> Notably, the bdrv_root_attach_child() call in blockjob.c is left >> unmodified because there is not much the

Re: [PATCH v3 26/33] block: Use child_of_bds in remaining places

2020-05-07 Thread Max Reitz
On 06.05.20 19:04, Kevin Wolf wrote: > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: >> Replace child_file by child_of_bds in all remaining places (excluding >> tests). >> >> Signed-off-by: Max Reitz >> Reviewed-by: Eric Blake > >> diff --git a/block/blkreplay.c b/block/blkreplay.c >> index

Re: [PATCH v2 1/2] chardev: enable distinct input for -chardev file

2020-05-07 Thread Darren Kenny
On Thursday, 2020-05-07 at 02:24:41 -04, Alexander Bulekov wrote: > char-file already supports distinct paths for input/output but it was > only possible to specify a distinct input through QMP. With this change, > we can also specify a distinct input with the -chardev file argument: > qemu

Re: [PATCH v3 22/33] block: Make backing files child_of_bds children

2020-05-07 Thread Max Reitz
On 06.05.20 18:37, Kevin Wolf wrote: > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: >> Make all parents of backing files pass the appropriate BdrvChildRole. >> By doing so, we can switch their BdrvChildClass over to the generic >> child_of_bds, which will do the right thing when given a

Re: [PATCH] virtiofsd: Use clone() and not unshare(), support non-root

2020-05-07 Thread Daniel P . Berrangé
On Wed, May 06, 2020 at 08:16:14PM +0100, Dr. David Alan Gilbert wrote: > * Colin Walters (walt...@verbum.org) wrote: > > I'd like to make use of virtiofs as part of our tooling in > > https://github.com/coreos/coreos-assembler > > Most of the code runs as non-root today; qemu also runs as

Re: [PATCH v3 18/33] block: Add bdrv_default_perms()

2020-05-07 Thread Max Reitz
On 06.05.20 15:47, Kevin Wolf wrote: > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: >> This callback can be used by BDSs that use child_of_bds with the >> appropriate BdrvChildRole for their children. >> >> Also, make bdrv_format_default_perms() use it for child_of_bds children >> (just a

Re: [PATCH v3 15/33] block: Pull out bdrv_default_perms_for_backing()

2020-05-07 Thread Max Reitz
On 06.05.20 15:21, Kevin Wolf wrote: > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: >> Right now, bdrv_format_default_perms() is used by format parents >> (generally). We want to switch to a model where most parents use a >> single BdrvChildClass, which then decides the permissions based on

Re: [PATCH v3 09/33] block: Add generic bdrv_inherited_options()

2020-05-07 Thread Max Reitz
On 06.05.20 15:11, Kevin Wolf wrote: > Am 06.05.2020 um 12:37 hat Kevin Wolf geschrieben: >> Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: >>> After the series this patch belongs to, we want to have a common >>> BdrvChildClass that encompasses all of child_file, child_format, and >>>

Re: [PATCH v3 12/33] block: Unify bdrv_child_cb_detach()

2020-05-07 Thread Max Reitz
On 06.05.20 14:41, Kevin Wolf wrote: > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: >> Make bdrv_child_cb_detach() call bdrv_backing_detach() for children with >> a COW role (and drop the reverse call from bdrv_backing_detach()), so it >> can be used for any child (with a proper role set). >>

Re: [PATCH 4/6] block/block: Document BlockSizes fields

2020-05-07 Thread Stefan Hajnoczi
On Mon, May 04, 2020 at 11:46:39AM +0200, Philippe Mathieu-Daudé wrote: > As it is not obvious for a block neophyte what means > the 'log' value, document it. > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/block/block.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH 1/6] qemu/osdep: Document qemu_memalign() and friends

2020-05-07 Thread Stefan Hajnoczi
On Mon, May 04, 2020 at 11:46:36AM +0200, Philippe Mathieu-Daudé wrote: > Document allocator functions that require a specific > de-allocator call. > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/block/block.h | 4 > include/qemu/osdep.h | 3 +++ >

Re: [PATCH 2/6] qemu/bitmap: Document bitmap_new() returned pointer

2020-05-07 Thread Stefan Hajnoczi
On Mon, May 04, 2020 at 11:46:37AM +0200, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > include/qemu/bitmap.h | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Stefan Hajnoczi signature.asc Description: PGP signature

Re: [PATCH 3/6] sysemu/block-backend: Document blk_read()/blk_pwrite()

2020-05-07 Thread Stefan Hajnoczi
On Mon, May 04, 2020 at 11:46:38AM +0200, Philippe Mathieu-Daudé wrote: > + > +/** > + * blk_pread: > + * > + * @blk - the block backend where the buffer content is going to be read from s/ - /: / > + > +/** > + * blk_pwrite: > + * > + * @blk - the block backend where the buffer content is going

Re: [PATCH v3 09/33] block: Add generic bdrv_inherited_options()

2020-05-07 Thread Max Reitz
On 06.05.20 12:37, Kevin Wolf wrote: > Am 18.02.2020 um 13:42 hat Max Reitz geschrieben: >> After the series this patch belongs to, we want to have a common >> BdrvChildClass that encompasses all of child_file, child_format, and >> child_backing. Such a single class needs a single

[PATCH v2 8/9] block/vhdx: drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
vhdx doesn't have .bdrv_co_block_status handler, so DATA|ALLOCATED is always assumed for it in bdrv_co_block_status(). unallocated_blocks_are_zero is useless (it doesn't affect the only user of the field: bdrv_co_block_status()), drop it. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by:

[PATCH v2 9/9] block: drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
Currently this field only set by qed and qcow2. But in fact, all backing-supporting formats (parallels, qcow, qcow2, qed, vmdk) share these semantics: on unallocated blocks, if there is no backing file they just memset the buffer with zeroes. So, document this behavior for .supports_backing and

[PATCH v2 6/9] block/iscsi: drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
We set bdi->unallocated_blocks_are_zero = iscsilun->lbprz, but iscsi_co_block_status doesn't return 0 in case of iscsilun->lbprz, it returns ZERO when appropriate. So actually unallocated_blocks_are_zero is useless (it doesn't affect the only user of the field: bdrv_co_block_status()). Drop it

[PATCH v2 7/9] block/file-posix: drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
raw_co_block_status() in block/file-posix.c never returns 0, so unallocated_blocks_are_zero is useless (it doesn't affect the only user of the field: bdrv_co_block_status()). Drop it. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- block/file-posix.c | 3 --- 1 file

[PATCH v2 2/9] block: inline bdrv_unallocated_blocks_are_zero()

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
The function has the only user: bdrv_co_block_status(). Inline it to simplify reviewing of the following patches, which will finally drop unallocated_blocks_are_zero field too. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/block.h | 1 - block.c | 15

[PATCH v2 5/9] block/crypto: drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
It's false by default, no needs to set it. We are going to drop this variable at all, so drop it now here, it doesn't hurt. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- block/crypto.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/crypto.c b/block/crypto.c

[PATCH v2 0/9] drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
Hi all! v2 (by Eric's review): 01: moved to the start of the series, add Eric's r-b 02: new 03-04: improve commit message 05: add Eric's r-b 06-08: improve commit message a bit, add Eric's r-b 09: typos and wording, rebase on 02 This is first step to block-status refactoring, and solves most

[PATCH v2 4/9] block/vpc: return ZERO block-status when appropriate

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
In case when get_image_offset() returns -1, we do zero out the corresponding chunk of qiov. So, this should be reported as ZERO. Note that this changes visible output of "qemu-img map --output=json" and "qemu-io -c map" commands. For qemu-img map, the change is obvious: we just mark as zero what

[PATCH v2 3/9] block/vdi: return ZERO block-status when appropriate

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
In case of !VDI_IS_ALLOCATED[], we do zero out the corresponding chunk of qiov. So, this should be reported as ZERO. Note that this changes visible output of "qemu-img map --output=json" and "qemu-io -c map" commands. For qemu-img map, the change is obvious: we just mark as zero what is really

[PATCH v2 1/9] qemu-img: convert: don't use unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
qemu-img convert wants to distinguish ZERO which comes from short backing files. unallocated_blocks_are_zero field of bdi is unrelated: space after EOF is always considered to be zero anyway. So, just make post_backing_zero true in case of short backing file. Signed-off-by: Vladimir

Re: [PULL v1 0/3] Merge tpm 2020/05/06 v1

2020-05-07 Thread Peter Maydell
On Wed, 6 May 2020 at 15:27, Stefan Berger wrote: > > Hello! > This PR provides PPI changes for TPM support on ARM and compat > machines for QEMU 5.1 > > Regards, >Stefan > > The following changes since commit ea1329bb3a8d5cd25b70e3dbf73e7ded4d5ad756: > > Merge remote-tracking branch

Re: [PATCH] qcow2: Fix preallocation on block devices

2020-05-07 Thread Kevin Wolf
Am 05.05.2020 um 16:18 hat Max Reitz geschrieben: > Calling bdrv_getlength() to get the pre-truncate file size will not > really work on block devices, because they have always the same length, > and trying to write beyond it will fail with a rather cryptic error > message. > > Instead, we should

Re: [PATCH 8/8] block: drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
06.05.2020 18:14, Eric Blake wrote: On 5/6/20 4:25 AM, Vladimir Sementsov-Ogievskiy wrote: Currently this field only set by qed and qcow2. Well, only after patches 1-6 (prior to then, it was also set in protocol drivers).  I think you might be able to hoist part of this patch earlier in the

[PATCH v24 3/4] qcow2: add zstd cluster compression

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

[PATCH v24 1/4] qcow2: introduce compression type feature

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

[PATCH v24 0/4] implement zstd cluster compression method

2020-05-07 Thread Denis Plotnikov
v24: 01: add "compression_type" to the tests output [Max] hopefully, I've found them all. v23: Undecided: whether to add zstd(zlib) compression details to the qcow2 spec 03: tighten assertion on zstd decompression [Eric] 04: use _rm_test_img appropriately [Max]

[PATCH v24 2/4] qcow2: rework the cluster compression routine

2020-05-07 Thread Denis Plotnikov
The patch enables processing the image compression type defined for the image and chooses an appropriate method for image clusters (de)compression. Signed-off-by: Denis Plotnikov Reviewed-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Alberto Garcia Reviewed-by: Max Reitz ---

[PATCH v24 4/4] iotests: 287: add qcow2 compression type test

2020-05-07 Thread Denis Plotnikov
The test checks fulfilling qcow2 requirements for the compression type feature and zstd compression type operability. Signed-off-by: Denis Plotnikov Reviewed-by: Vladimir Sementsov-Ogievskiy Tested-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- tests/qemu-iotests/287 | 152

Re: [PATCH 8/8] block: drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
07.05.2020 10:05, Vladimir Sementsov-Ogievskiy wrote: 06.05.2020 18:14, Eric Blake wrote: On 5/6/20 4:25 AM, Vladimir Sementsov-Ogievskiy wrote: Currently this field only set by qed and qcow2. Well, only after patches 1-6 (prior to then, it was also set in protocol drivers).  I think you

Re: [PATCH] Fix stack corruption when handling PR_GETDEATHSIG

2020-05-07 Thread Laurent Vivier
Le 07/05/2020 à 01:47, Stephen Long a écrit : > From: Ana Pazos > > Signed-off-by: Ana Pazos > --- > Submitting this patch on behalf of Ana Pazos. The bug was triggered by > the following c file on aarch64-linux-user. > >> #include >> #include >> >> int main() { >> int PDeachSig = 0; >>

[PATCH] ppc/spapr: add a POWER10 CPU model

2020-05-07 Thread Cédric Le Goater
Signed-off-by: Cédric Le Goater --- hw/ppc/spapr_cpu_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index ac1c10942771..9c7e0d225a0a 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -410,6 +410,7 @@ static const

Re: [PATCH 1/8] block/vdi: return ZERO block-status when appropriate

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
06.05.2020 16:57, Eric Blake wrote: On 5/6/20 4:25 AM, Vladimir Sementsov-Ogievskiy wrote: In case of !VDI_IS_ALLOCATED[], we do zero out the corresponding chunk of qiov. So, this should be reported as ZERO. This part makes sense outright, since vdi does not allow backing files, so all reads

Re: [PATCH v2 5/5] vhost: add device started check in migration set log

2020-05-07 Thread Michael S. Tsirkin
On Wed, May 06, 2020 at 06:08:34PM -0400, Raphael Norwitz wrote: > As you correctly point out, this code needs to be looked at more > carefully so that > if the device does disconnect in the background we can handle the migration > path > gracefully. In particular, we need to decide whether a

[Bug 1805256] Re: qemu-img hangs on rcu_call_ready_event logic in Aarch64 when converting images

2020-05-07 Thread Ike Panhc
Tested debs in ppa:rafaeldtinoco/lp1805256 for focal and eoan and 1000 qemu-img convert passed. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1805256 Title: qemu-img hangs on rcu_call_ready_event

Re: [PATCH 2/8] block/vpc: return ZERO block-status when appropriate

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
07.05.2020 0:18, Eric Blake wrote: On 5/6/20 4:25 AM, Vladimir Sementsov-Ogievskiy wrote: In case when get_image_offset() returns -1, we do zero out the corresponding chunk of qiov. So, this should be reported as ZERO. After block-status update, it never reports 0, so setting

Re: [PATCH 8/8] block: drop unallocated_blocks_are_zero

2020-05-07 Thread Vladimir Sementsov-Ogievskiy
06.05.2020 18:14, Eric Blake wrote: On 5/6/20 4:25 AM, Vladimir Sementsov-Ogievskiy wrote: Currently this field only set by qed and qcow2. Well, only after patches 1-6 (prior to then, it was also set in protocol drivers).  I think you might be able to hoist part of this patch earlier in the

[PATCH v2 0/2] Add pathin option to -chardev file

2020-05-07 Thread Alexander Bulekov
This adds a pathin= option to -chardev file, which allows specifying distinct input and output paths for the chardev. This functionaliy was already available through QMP. Alexander Bulekov (2): chardev: enable distinct input for -chardev file char-file: add test for distinct path= and pathin=

Re: [PATCH v16 QEMU 08/16] vfio: Register SaveVMHandlers for VFIO device

2020-05-07 Thread Cornelia Huck
On Thu, 7 May 2020 01:00:05 +0530 Kirti Wankhede wrote: > On 5/6/2020 10:23 PM, Dr. David Alan Gilbert wrote: > > * Cornelia Huck (coh...@redhat.com) wrote: > >> On Wed, 6 May 2020 02:38:46 -0400 > >> Yan Zhao wrote: > >> > >>> On Tue, May 05, 2020 at 12:37:26PM +0800, Alex Williamson

Re: [PATCH] Fix stack corruption when handling PR_GETDEATHSIG

2020-05-07 Thread Philippe Mathieu-Daudé
Hi Stephen, On 5/7/20 1:47 AM, Stephen Long wrote: From: Ana Pazos Signed-off-by: Ana Pazos --- Submitting this patch on behalf of Ana Pazos. The bug was triggered by the following c file on aarch64-linux-user. This is fine, but you have to add your own S-o-b tag too. See the link from

[PATCH v2 1/2] chardev: enable distinct input for -chardev file

2020-05-07 Thread Alexander Bulekov
char-file already supports distinct paths for input/output but it was only possible to specify a distinct input through QMP. With this change, we can also specify a distinct input with the -chardev file argument: qemu -chardev file,id=char1,path=/out/file,pathin=/in/file Signed-off-by:

[PATCH v2 2/2] char-file: add test for distinct path= and pathin=

2020-05-07 Thread Alexander Bulekov
Signed-off-by: Alexander Bulekov --- tests/test-char.c | 83 +++ 1 file changed, 83 insertions(+) diff --git a/tests/test-char.c b/tests/test-char.c index 3afc9b1b8d..9b3e1e2a9b 100644 --- a/tests/test-char.c +++ b/tests/test-char.c @@ -1228,6

Re: [PULL 00/18] ppc-for-5.1 queue 20200507

2020-05-07 Thread no-reply
20200507 Type: series === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT END === Updat

<    1   2   3   4