[Qemu-devel] [PULL 00/14] Block layer patches

2017-12-20 Thread Kevin Wolf
The following changes since commit af352675efb7e92a1f5f6461a042a12015ab3d12: Merge remote-tracking branch 'remotes/aurel/tags/pull-target-sh4-20171218' into staging (2017-12-19 19:11:11 +) are available in the git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream for you

[Qemu-devel] [PULL 01/14] hw/block/nvme: Convert to realize

2017-12-20 Thread Kevin Wolf
From: Mao Zhongyi Convert nvme_init() to realize and rename it to nvme_realize(). Cc: John Snow Cc: Keith Busch Cc: Kevin Wolf Cc: Max Reitz Cc: Markus Armbruster Signed-off-by: Mao Zhongyi Signed-off-by: Kevin Wolf --- hw/block/nvme.c | 18 ++ 1 file changed, 10 inserti

Re: [Qemu-devel] [PATCH v2] Split adb.c into adb.c, adb-mouse.c and adb-kbd.c

2017-12-20 Thread Philippe Mathieu-Daudé
On Wed, Dec 20, 2017 at 9:14 AM, Laurent Vivier wrote: > It makes the code clearer to separate the bus implementation > from the devices one. > > Replace ADB_DPRINTF() with trace events (and adding new ones in adb-kbd.c). > Some minor changes to make checkpatch.pl happy. > > Signed-off-by: Laurent

Re: [Qemu-devel] [Qemu-trivial] [PATCH] target/m68k: remove unused variable gen_throws_exception

2017-12-20 Thread Philippe Mathieu-Daudé
On Wed, Dec 20, 2017 at 10:08 AM, Laurent Vivier wrote: > It has been introduced by e6e5906b6e ("ColdFire target."), > but the content is never used. > > Signed-off-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé > --- > target/m68k/translate.c | 10 -- > 1 file changed, 10 del

Re: [Qemu-devel] [PATCH 03/19] block: Make bdrv_drain() driver callbacks non-recursive

2017-12-20 Thread Fam Zheng
On Wed, 12/20 11:33, Kevin Wolf wrote: > bdrv_drain_begin() doesn't increase bs->quiesce_counter recursively, Pretty trivial but: s/bdrv_drain_begin/bdrv_drained_begin/ > which means that the child nodes are not actually drained. To keep this > consistent, we also shouldn't call the block driver

[Qemu-devel] [PATCH] target/m68k: remove unused variable gen_throws_exception

2017-12-20 Thread Laurent Vivier
It has been introduced by e6e5906b6e ("ColdFire target."), but the content is never used. Signed-off-by: Laurent Vivier --- target/m68k/translate.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/target/m68k/translate.c b/target/m68k/translate.c index b60909222c..dfb2d5dad2 100644

Re: [Qemu-devel] [RFC v6 1/2] virtio: introduce `query-virtio' QMP command

2017-12-20 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > Jan Dakinevich writes: > > > On Tue, 19 Dec 2017 15:57:18 +0100 > > Markus Armbruster wrote: > > > >> QAPI/QMP interface review only. > >> > >> You neglected to cc: the maintainers of qapi-schema.json, so I'm doing > >> that for you. > >> > > >

Re: [Qemu-devel] [Qemu-block] [PATCH 16/19] block: Allow graph changes in subtree drained section

2017-12-20 Thread Kevin Wolf
Am 20.12.2017 um 12:31 hat Paolo Bonzini geschrieben: > On 20/12/2017 12:18, Kevin Wolf wrote: > > Am 20.12.2017 um 11:51 hat Paolo Bonzini geschrieben: > >> On 20/12/2017 11:34, Kevin Wolf wrote: > >>> .inherit_options = bdrv_inherited_options, > >>> .drained_begin = bdrv_child_cb_drai

Re: [Qemu-devel] [PATCH v3 1/2] 9pfs: allow PDU to complete without sending a reply

2017-12-20 Thread Greg Kurz
On Mon, 18 Dec 2017 11:41:23 +0100 Greg Kurz wrote: > The 9p protocol mostly relies on a request/reply dialog between the > client and the server. A notable exception to this rule is request > cancellation (ie, flush in 9p wording): the server shouldn't send a > reply when the request was flushed

Re: [Qemu-devel] [PATCH v2] 9pfs: Correctly handle cancelled requests

2017-12-20 Thread Greg Kurz
On Tue, 12 Dec 2017 15:14:06 -0800 (PST) Stefano Stabellini wrote: > On Fri, 8 Dec 2017, Greg Kurz wrote: > > Cc'ing Stefano using a more appropriate address :) > > Thanks Greg for the ping, one comment inline below. > > > > On Thu, 7 Dec 2017 18:04:24 +0100 > > Greg Kurz wrote: > > > >

Re: [Qemu-devel] [RFC v6 1/2] virtio: introduce `query-virtio' QMP command

2017-12-20 Thread Cornelia Huck
On Wed, 20 Dec 2017 11:16:46 +0100 Markus Armbruster wrote: > Jan Dakinevich writes: > > > On Tue, 19 Dec 2017 15:57:18 +0100 > > Markus Armbruster wrote: > >> Jan Dakinevich writes: > Taking a step back: what's the intended purpose of query-virtio? The > cover letter doesn't really say: >

[Qemu-devel] [Bug 1739413] [NEW] Hotplugged vcpu does not guarantee cpu compat mode(power8) on power9 host

2017-12-20 Thread Satheesh Rajendran
Public bug reported: ./ppc64-softmmu/qemu-system-ppc64 -version QEMU emulator version 2.11.50 (v2.11.0-254-gaf35267) 1. Boot a power8 compat mode guest power9 HW. ./ppc64-softmmu/qemu-system-ppc64 -machine pseries,accel=kvm,max-cpu-compat=power8 -m 4096 /home/sath/images/guest.qcow2 -smp 1,maxc

Re: [Qemu-devel] [PATCH v20 0/7] Virtio-balloon Enhancement

2017-12-20 Thread Matthew Wilcox
On Wed, Dec 20, 2017 at 06:34:36PM +0800, Wei Wang wrote: > On 12/19/2017 10:05 PM, Tetsuo Handa wrote: > > I think xb_find_set() has a bug in !node path. > > I think we can probably remove the "!node" path for now. It would be good to > get the fundamental part in first, and leave optimization to

[Qemu-devel] [PATCH v2] Split adb.c into adb.c, adb-mouse.c and adb-kbd.c

2017-12-20 Thread Laurent Vivier
It makes the code clearer to separate the bus implementation from the devices one. Replace ADB_DPRINTF() with trace events (and adding new ones in adb-kbd.c). Some minor changes to make checkpatch.pl happy. Signed-off-by: Laurent Vivier --- v2: move internal declarations to adb-internal.h re

Re: [Qemu-devel] [PATCH 02/19] block: Assert drain_all is only called from main AioContext

2017-12-20 Thread Fam Zheng
On Wed, 12/20 11:33, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > --- > block/io.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/block/io.c b/block/io.c > index cf780c3cb0..b94740b8ff 100644 > --- a/block/io.c > +++ b/block/io.c > @@ -330,6 +330,12 @@ void bdrv_drain_all_begi

Re: [Qemu-devel] [PATCH v1 00/13] Fix VNC server unbounded memory usage

2017-12-20 Thread Marc-André Lureau
On Mon, Dec 18, 2017 at 8:12 PM, Daniel P. Berrange wrote: > In the 2.11 release we fixed CVE-2017-15268, which allowed the VNC websockets > server to consume arbitrary memory when a slow client was connected. I have > since discovered that this same type of problem can be triggered in several > o

Re: [Qemu-devel] [PATCH v1 11/13] ui: place a hard cap on VNC server output buffer size

2017-12-20 Thread Daniel P. Berrange
On Wed, Dec 20, 2017 at 12:32:51PM +0100, Marc-André Lureau wrote: > Hi > > On Mon, Dec 18, 2017 at 8:12 PM, Daniel P. Berrange > wrote: > > The previous patches fix problems with throttling of forced framebuffer > > updates > > and audio data capture that would cause the QEMU output buffer si

Re: [Qemu-devel] [PATCH v1 11/13] ui: place a hard cap on VNC server output buffer size

2017-12-20 Thread Marc-André Lureau
Hi On Mon, Dec 18, 2017 at 8:12 PM, Daniel P. Berrange wrote: > The previous patches fix problems with throttling of forced framebuffer > updates > and audio data capture that would cause the QEMU output buffer size to grow > without bound. Those fixes are graceful in that once the client catch

Re: [Qemu-devel] [Qemu-block] [PATCH 16/19] block: Allow graph changes in subtree drained section

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 12:18, Kevin Wolf wrote: > Am 20.12.2017 um 11:51 hat Paolo Bonzini geschrieben: >> On 20/12/2017 11:34, Kevin Wolf wrote: >>> .inherit_options = bdrv_inherited_options, >>> .drained_begin = bdrv_child_cb_drained_begin, >>> .drained_end = bdrv_child_cb_drained_end

Re: [Qemu-devel] [PULL 00/14] ppc-for-2.12 queue 20171219

2017-12-20 Thread Peter Maydell
On 19 December 2017 at 04:29, David Gibson wrote: > The following changes since commit eaefea537b476cb853e2edbdc68e969ec777e4bb: > > Merge remote-tracking branch 'remotes/mjt/tags/trivial-patches-fetch' into > staging (2017-12-18 14:17:42 +) > > are available in the Git repository at: > >

Re: [Qemu-devel] [Qemu-block] Raw notes from a small block layer/QAPI/something pre-christmas meeting

2017-12-20 Thread Kashyap Chamarthy
On Wed, Dec 20, 2017 at 10:57:40AM +, Daniel P. Berrange wrote: > On Wed, Dec 20, 2017 at 11:44:36AM +0100, Kashyap Chamarthy wrote: > > On Mon, Dec 18, 2017 at 11:11:00AM +0100, Markus Armbruster wrote: [...] > > > Another thought: do we want to give qemu-system-* the necessary > > > privile

Re: [Qemu-devel] [RESEND PATCH 2/6] memory: introduce AddressSpaceOps and IOMMUObject

2017-12-20 Thread David Gibson
On Wed, Dec 20, 2017 at 02:47:30PM +0800, Liu, Yi L wrote: > On Mon, Dec 18, 2017 at 10:35:31PM +1100, David Gibson wrote: > > On Wed, Nov 15, 2017 at 03:16:32PM +0800, Peter Xu wrote: > > > On Tue, Nov 14, 2017 at 10:52:54PM +0100, Auger Eric wrote: > > > > > > [...] > > > > > > > I meant, in th

Re: [Qemu-devel] [RESEND PATCH 2/6] memory: introduce AddressSpaceOps and IOMMUObject

2017-12-20 Thread David Gibson
On Wed, Dec 20, 2017 at 02:32:42PM +0800, Liu, Yi L wrote: > On Mon, Dec 18, 2017 at 10:22:18PM +1100, David Gibson wrote: > > On Mon, Dec 18, 2017 at 05:17:35PM +0800, Liu, Yi L wrote: > > > On Mon, Dec 18, 2017 at 05:14:42PM +1100, David Gibson wrote: > > > > On Thu, Nov 16, 2017 at 04:57:09PM +0

Re: [Qemu-devel] [PATCH 16/19] block: Allow graph changes in subtree drained section

2017-12-20 Thread Kevin Wolf
Am 20.12.2017 um 11:51 hat Paolo Bonzini geschrieben: > On 20/12/2017 11:34, Kevin Wolf wrote: > > .inherit_options = bdrv_inherited_options, > > .drained_begin = bdrv_child_cb_drained_begin, > > .drained_end = bdrv_child_cb_drained_end, > > +.attach = bdrv_child_c

Re: [Qemu-devel] Raw notes from a small block layer/QAPI/something pre-christmas meeting

2017-12-20 Thread Daniel P. Berrange
On Fri, Dec 15, 2017 at 05:38:00PM +0100, Max Reitz wrote: > Image creation in qemu-system-* vs. qemu-img: > In order to get proper introspection for qemu-img create, we need a > QAPI schema. If we have a QAPI schema, we might as well add > blockdev-create to QMP. > As long as we do not h

Re: [Qemu-devel] [PATCH 00/19] Drain fixes and cleanups, part 2

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 11:33, Kevin Wolf wrote: > This is the second part of my work to fix drain and hopefully to prevent > it from attracting bugs as much as it did in the past. There is > definitely at least a third part coming after this, see below. > > In this series, the following improvments are mad

Re: [Qemu-devel] [Qemu-block] Raw notes from a small block layer/QAPI/something pre-christmas meeting

2017-12-20 Thread Daniel P. Berrange
On Wed, Dec 20, 2017 at 11:44:36AM +0100, Kashyap Chamarthy wrote: > On Mon, Dec 18, 2017 at 11:11:00AM +0100, Markus Armbruster wrote: > > Max Reitz writes: > > [...] > > Thanks, Max, for the detailed notes. > > > > Image creation in qemu-system-* vs. qemu-img: > > > In order to get proper i

Re: [Qemu-devel] [PATCH 14/19] test-bdrv-drain: Test behaviour in coroutine context

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 11:34, Kevin Wolf wrote: > If bdrv_do_drained_begin/end() are called in coroutine context, they > first use a BH to get out of the coroutine context. Call some existing > tests again from a coroutine to cover this code path. > > Signed-off-by: Kevin Wolf > --- > tests/test-bdrv-dra

Re: [Qemu-devel] [PATCH 16/19] block: Allow graph changes in subtree drained section

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 11:34, Kevin Wolf wrote: > .inherit_options = bdrv_inherited_options, > .drained_begin = bdrv_child_cb_drained_begin, > .drained_end = bdrv_child_cb_drained_end, > +.attach = bdrv_child_cb_attach, > +.detach = bdrv_child_cb_detach, >

[Qemu-devel] [PATCH 16/19] block: Allow graph changes in subtree drained section

2017-12-20 Thread Kevin Wolf
We need to remember how many of the drain sections in which a node is were recursive (i.e. subtree drain rather than node drain), so that they can be correctly applied when children are added or removed during the drained section. With this change, it is safe to modify the graph even inside a bdrv

Re: [Qemu-devel] [Qemu-block] Raw notes from a small block layer/QAPI/something pre-christmas meeting

2017-12-20 Thread Kashyap Chamarthy
On Mon, Dec 18, 2017 at 11:11:00AM +0100, Markus Armbruster wrote: > Max Reitz writes: [...] Thanks, Max, for the detailed notes. > > Image creation in qemu-system-* vs. qemu-img: > > In order to get proper introspection for qemu-img create, we need a > > QAPI schema. If we have a QAPI sch

[Qemu-devel] [PATCH 17/19] test-bdrv-drain: Test graph changes in drained section

2017-12-20 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- tests/test-bdrv-drain.c | 80 + 1 file changed, 80 insertions(+) diff --git a/tests/test-bdrv-drain.c b/tests/test-bdrv-drain.c index b7322c5826..6803e64950 100644 --- a/tests/test-bdrv-drain.c +++ b/tests/test-bdrv-dr

[Qemu-devel] [PATCH 19/19] block: Keep nodes drained between reopen_queue/multiple

2017-12-20 Thread Kevin Wolf
The bdrv_reopen*() implementation doesn't like it if the graph is changed between queuing nodes for reopen and actually reopening them (one of the reasons is that queuing can be recursive). So instead of draining the device only in bdrv_reopen_multiple(), require that callers already drained all a

[Qemu-devel] [PATCH 18/19] commit: Simplify reopen of base

2017-12-20 Thread Kevin Wolf
Since commit bde70715, base is the only node that is reopened in commit_start(). This means that the code, which still involves an explicit BlockReopenQueue, can now be simplified by using bdrv_reopen(). Signed-off-by: Kevin Wolf --- block/commit.c | 8 +--- 1 file changed, 1 insertion(+), 7

[Qemu-devel] [PATCH 10/19] test-bdrv-drain: Test nested drain sections

2017-12-20 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- tests/test-bdrv-drain.c | 57 + 1 file changed, 57 insertions(+) diff --git a/tests/test-bdrv-drain.c b/tests/test-bdrv-drain.c index 4571137928..ede5cf6e64 100644 --- a/tests/test-bdrv-drain.c +++ b/tests/test-bdrv-dr

[Qemu-devel] [PATCH 14/19] test-bdrv-drain: Test behaviour in coroutine context

2017-12-20 Thread Kevin Wolf
If bdrv_do_drained_begin/end() are called in coroutine context, they first use a BH to get out of the coroutine context. Call some existing tests again from a coroutine to cover this code path. Signed-off-by: Kevin Wolf --- tests/test-bdrv-drain.c | 51 +++

[Qemu-devel] [PATCH 15/19] test-bdrv-drain: Recursive draining with multiple parents

2017-12-20 Thread Kevin Wolf
Test that drain sections are correctly propagated through the graph. Signed-off-by: Kevin Wolf --- tests/test-bdrv-drain.c | 74 + 1 file changed, 74 insertions(+) diff --git a/tests/test-bdrv-drain.c b/tests/test-bdrv-drain.c index a1e5693f33..b7

[Qemu-devel] [Bug 1739304] Re: Passing a directory to (eg.) -cdrom results in misleading error message

2017-12-20 Thread Dr. David Alan Gilbert
Yep, can repeat it here, it seems pretty random which error it gives: [dgilbert@dgilbert-t530 try]$ ./x86_64-softmmu/qemu-system-x86_64 -cdrom /tmp qemu-system-x86_64: -cdrom /tmp: Could not refresh total sector count: Invalid argument [dgilbert@dgilbert-t530 try]$ ./x86_64-softmmu/qemu-system-x8

[Qemu-devel] [PATCH 09/19] block: Nested drain_end must still call callbacks

2017-12-20 Thread Kevin Wolf
bdrv_do_drained_begin() restricts the call of parent callbacks and aio_disable_external() to the outermost drain section, but the block driver callbacks are always called. bdrv_do_drained_end() must match this behaviour, otherwise nodes stay drained even if begin/end calls were balanced. Signed-of

[Qemu-devel] [PATCH 11/19] block: Don't notify parents in drain call chain

2017-12-20 Thread Kevin Wolf
This is in preparation for subtree drains, i.e. drained sections that affect not only a single node, but recursively all child nodes, too. Calling the parent callbacks for drain is pointless when we just came from that parent node recursively and leads to multiple increases of bs->quiesce_counter

[Qemu-devel] [PATCH 06/19] blockjob: Pause job on draining any job BDS

2017-12-20 Thread Kevin Wolf
Block jobs already paused themselves when their main BlockBackend entered a drained section. This is not good enough: We also want to pause a block job and may not submit new requests if, for example, the mirror target node should be drained. This implements .drained_begin/end callbacks in child_j

[Qemu-devel] [PATCH 13/19] test-bdrv-drain: Tests for bdrv_subtree_drain

2017-12-20 Thread Kevin Wolf
Add a subtree drain version to the existing test cases. Signed-off-by: Kevin Wolf --- tests/test-bdrv-drain.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/tests/test-bdrv-drain.c b/tests/test-bdrv-drain.c index ede5cf6e64..c00d96bb2f 100644 ---

[Qemu-devel] [PATCH 02/19] block: Assert drain_all is only called from main AioContext

2017-12-20 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/io.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/block/io.c b/block/io.c index cf780c3cb0..b94740b8ff 100644 --- a/block/io.c +++ b/block/io.c @@ -330,6 +330,12 @@ void bdrv_drain_all_begin(void) BdrvNextIterator it; GSList *aio_ctxs = N

[Qemu-devel] [PATCH 07/19] test-bdrv-drain: Test drain vs. block jobs

2017-12-20 Thread Kevin Wolf
Block jobs must be paused if any of the involved nodes are drained. Signed-off-by: Kevin Wolf --- tests/test-bdrv-drain.c | 121 1 file changed, 121 insertions(+) diff --git a/tests/test-bdrv-drain.c b/tests/test-bdrv-drain.c index 2aa2b9aa43..01

[Qemu-devel] [PATCH 05/19] test-bdrv-drain: Test bs->quiesce_counter

2017-12-20 Thread Kevin Wolf
This is currently only working correctly for bdrv_drain(), not for bdrv_drain_all(). Leave a comment for the drain_all case, we'll address it later. Signed-off-by: Kevin Wolf --- tests/test-bdrv-drain.c | 45 + 1 file changed, 45 insertions(+) diff --

[Qemu-devel] [PATCH 12/19] block: Add bdrv_subtree_drained_begin/end()

2017-12-20 Thread Kevin Wolf
bdrv_drained_begin() waits for the completion of requests in the whole subtree, but it only actually keeps its immediate bs parameter quiesced until bdrv_drained_end(). Add a version that keeps the whole subtree drained. As of this commit, graph changes cannot be allowed during a subtree drained s

[Qemu-devel] [PATCH 01/19] block: Remove unused bdrv_requests_pending

2017-12-20 Thread Kevin Wolf
From: Fam Zheng Signed-off-by: Fam Zheng Signed-off-by: Kevin Wolf --- include/block/block_int.h | 1 - block/io.c| 18 -- 2 files changed, 19 deletions(-) diff --git a/include/block/block_int.h b/include/block/block_int.h index a5482775ec..e107163594 100644 -

[Qemu-devel] [PATCH 08/19] block: Don't block_job_pause_all() in bdrv_drain_all()

2017-12-20 Thread Kevin Wolf
Block jobs are already paused using the BdrvChildRole drain callbacks, so we don't need an additionall block_job_pause_all() call. Signed-off-by: Kevin Wolf --- block/io.c | 4 tests/test-bdrv-drain.c | 10 -- 2 files changed, 4 insertions(+), 10 deletions(-) diff --g

[Qemu-devel] [PATCH 04/19] test-bdrv-drain: Test callback for bdrv_drain

2017-12-20 Thread Kevin Wolf
The existing test is for bdrv_drain_all_begin/end() only. Generalise the test case so that it can be run for the other variants as well. At the moment this is only bdrv_drain_begin/end(), but in a while, we'll add another one. Also, add a backing file to the test node to test whether the operation

[Qemu-devel] [PATCH 00/19] Drain fixes and cleanups, part 2

2017-12-20 Thread Kevin Wolf
This is the second part of my work to fix drain and hopefully to prevent it from attracting bugs as much as it did in the past. There is definitely at least a third part coming after this, see below. In this series, the following improvments are made: * Fix several bugs and inconsistencies * Creat

[Qemu-devel] [PATCH 03/19] block: Make bdrv_drain() driver callbacks non-recursive

2017-12-20 Thread Kevin Wolf
bdrv_drain_begin() doesn't increase bs->quiesce_counter recursively, which means that the child nodes are not actually drained. To keep this consistent, we also shouldn't call the block driver callbacks. Signed-off-by: Kevin Wolf --- block/io.c | 16 +--- 1 file changed, 9 insertions

Re: [Qemu-devel] [PATCH v20 0/7] Virtio-balloon Enhancement

2017-12-20 Thread Wei Wang
On 12/19/2017 10:05 PM, Tetsuo Handa wrote: Wei Wang wrote: ChangeLog: v19->v20: 1) patch 1: xbitmap - add __rcu to "void **slot"; - remove the exceptional path. 2) patch 3: xbitmap - DeveloperNotes: add an item to comment that the current bit range related APIs

Re: [Qemu-devel] [PATCH v1 1/1] qmp: remove qmp_cpu

2017-12-20 Thread Daniel P. Berrange
On Wed, Dec 20, 2017 at 08:23:04AM -0200, Daniel Henrique Barboza wrote: > 'qmp_cpu' was implemented in commit 755f196898 ("qapi: Convert the cpu > command") as a functional no-op, a QMP call that does nothing and > return success. The idea, apparently, was to provide a counterpart > for the HMP 'h

Re: [Qemu-devel] [PATCH] scripts: correct a spelling error

2017-12-20 Thread Daniel P. Berrange
On Wed, Dec 20, 2017 at 06:06:41PM +0800, sochin.jiang wrote: > From: "sochin.jiang" > > Correct a spelling error in prompt message. > > Signed-off-by: sochin.jiang This fix is already sent 3 times now & on the qemu-trivial queue Regards, Daniel -- |: https://berrange.com -o-h

[Qemu-devel] [PATCH v1 1/1] qmp: remove qmp_cpu

2017-12-20 Thread Daniel Henrique Barboza
'qmp_cpu' was implemented in commit 755f196898 ("qapi: Convert the cpu command") as a functional no-op, a QMP call that does nothing and return success. The idea, apparently, was to provide a counterpart for the HMP 'hmp_cpu' command, introduced in the same commit. After 6 years of its creation, q

Re: [Qemu-devel] [RFC v6 1/2] virtio: introduce `query-virtio' QMP command

2017-12-20 Thread Markus Armbruster
Jan Dakinevich writes: > On Tue, 19 Dec 2017 15:57:18 +0100 > Markus Armbruster wrote: > >> QAPI/QMP interface review only. >> >> You neglected to cc: the maintainers of qapi-schema.json, so I'm doing >> that for you. >> > > Thank you so much. I screwed up with this patchset at least twice: wi

Re: [Qemu-devel] [PATCH 9/9] iotests.py: use io.StringIO with python3

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:25PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/iotests.py | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) Reviewed-by: Daniel P. Berrange > > diff --git a/tests/qemu-iotests/iotests.py

Re: [Qemu-devel] [PATCH 7/9] iotests: replace lambda function by lambda expression for python3 compatibility

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:23PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/065 | 4 ++-- > tests/qemu-iotests/139 | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Daniel P. Berrange > > diff --git a/tests/

Re: [Qemu-devel] [PATCH 6/9] iotests: replace dict.has_key() by 'in' operator for python3 compatibility

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:22PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/093 | 2 +- > tests/qemu-iotests/096 | 4 ++-- > tests/qemu-iotests/136 | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Daniel P. Ber

Re: [Qemu-devel] [PATCH 8/9] iotests: replace assertEquals() by assertEqual() for python3 compatibility

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:24PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/041| 6 +++--- > tests/qemu-iotests/118| 4 ++-- > tests/qemu-iotests/iotests.py | 2 +- > 3 files changed, 6 insertions(+), 6 deletions(-) R

[Qemu-devel] [PATCH] scripts: correct a spelling error

2017-12-20 Thread sochin . jiang
From: "sochin.jiang" Correct a spelling error in prompt message. Signed-off-by: sochin.jiang --- scripts/git-submodule.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/git-submodule.sh b/scripts/git-submodule.sh index bc7224a..807ca0b 100755 --- a/scripts/git-sub

Re: [Qemu-devel] [PATCH] scsi-generic: Add share-rw option

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 10:51, Fam Zheng wrote: > On Tue, 12/05 23:15, Fam Zheng wrote: >> Add the property to the device model, then parse it by calling >> blkconf_apply_backend_options(). >> >> In addition to blk_set_perm(), the called function also handles error >> options and wce. For error options we've

Re: [Qemu-devel] [PATCH 5/9] iotests: replace xrange() by range() for python3 compatibility

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:21PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/044 | 14 +++--- > tests/qemu-iotests/163 | 2 +- > 2 files changed, 8 insertions(+), 8 deletions(-) Reviewed-by: Daniel P. Berrange > > diff --

Re: [Qemu-devel] [PATCH 4/9] iotests: use octal numbers for python3 compatibility

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:20PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/118 | 24 > 1 file changed, 12 insertions(+), 12 deletions(-) Reviewed-by: Daniel P. Berrange > > diff --git a/tests/qemu-iotest

Re: [Qemu-devel] [PATCH 3/9] iotests: replace print statement by print() function for python3 compatibility

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:19PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/qemu-iotests/149| 3 ++- > tests/qemu-iotests/165| 3 ++- > tests/qemu-iotests/iotests.py | 5 +++-- > 3 files changed, 7 insertions(+), 4 deletions(-) >

Re: [Qemu-devel] [qemu-s390x] [PATCH v2 1/5] s390-ccw: update libc

2017-12-20 Thread Thomas Huth
On 19.12.2017 21:23, Collin L. Walling wrote: > On 12/19/2017 11:29 AM, Collin L. Walling wrote: >> On 12/19/2017 02:31 AM, Thomas Huth wrote: >>> On 18.12.2017 17:16, Collin L. Walling wrote: On 12/18/2017 08:06 AM, Thomas Huth wrote: > On 11.12.2017 23:19, Collin L. Walling wrote: >>

Re: [Qemu-devel] [ PATCH ] hpet: recover timer offset correctly

2017-12-20 Thread Pavel Dovgalyuk
> * Pavel Dovgalyuk (dovga...@ispras.ru) wrote: > > > From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] > > > * Pavel Dovgalyuk (pavel.dovga...@ispras.ru) wrote: > > > > HPET saves its state by calculating the current time and recovers timer > > > > offset using this calculated value. But

[Qemu-devel] [PATCH v2] hpet: recover timer offset correctly

2017-12-20 Thread Pavel Dovgalyuk
HPET saves its state by calculating the current time and recovers timer offset using this calculated value. But these calculations include divisions and multiplications. Therefore the timer state cannot be recovered precise enough. This patch introduces saving of the original value of the offset to

Re: [Qemu-devel] [PATCH 2/9] qmp.py: encode JSON unicode as byte strings for python3 compatibility

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:18PM -0300, Philippe Mathieu-Daudé wrote: > the socket API expects byte strings. > > Signed-off-by: Philippe Mathieu-Daudé > --- > scripts/qmp/qmp.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Daniel P. Berrange > > diff --git a/script

[Qemu-devel] [Bug 1738691] Re: Guest kernel crashes with kvm_pr on POWER8

2017-12-20 Thread Thomas Huth
No, this bug tracker is for QEMU bugs only. Please report KVM-PR bugs to the kvm-...@vger.kernel.org mailing list (see also https://www.linux- kvm.org/page/Bugs for how to report KVM kernel bugs in general) -- You received this bug notification because you are a member of qemu- devel-ml, which is

Re: [Qemu-devel] [PATCH 1/9] qemu.py: replace iteritems() by items() for python3 compatibility

2017-12-20 Thread Daniel P. Berrange
On Tue, Dec 19, 2017 at 02:34:17PM -0300, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > --- > scripts/qemu.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: https://berrange.com -o-https://www.f

Re: [Qemu-devel] [PATCH 0/2] qemu-iotests: add missing make rule for socket_scm_helper

2017-12-20 Thread Paolo Bonzini
On 19/12/2017 17:37, Philippe Mathieu-Daudé wrote: > Hi, > > Apparently block-tests are only run on patchew CI, not Travis, so this went > unnoticed. > > Now ./check does check for this helper, and errors are easier to figure out. > > Regards, > > Phil. > > Philippe Mathieu-Daudé (2): > qemu

Re: [Qemu-devel] [PATCH] scsi-generic: Add share-rw option

2017-12-20 Thread Fam Zheng
On Tue, 12/05 23:15, Fam Zheng wrote: > Add the property to the device model, then parse it by calling > blkconf_apply_backend_options(). > > In addition to blk_set_perm(), the called function also handles error > options and wce. For error options we've already checked that the > default values a

Re: [Qemu-devel] [ PATCH ] hpet: recover timer offset correctly

2017-12-20 Thread Dr. David Alan Gilbert
* Pavel Dovgalyuk (dovga...@ispras.ru) wrote: > > From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] > > * Pavel Dovgalyuk (pavel.dovga...@ispras.ru) wrote: > > > HPET saves its state by calculating the current time and recovers timer > > > offset using this calculated value. But these calcu

[Qemu-devel] [Bug 1299566] Re: virtio serial doesn't work with virtio nic

2017-12-20 Thread Thomas Huth
Ok, thanks for your answer. Then let's assume that it has been fixed by one of the past releases. ** Changed in: qemu Status: Incomplete => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.ne

Re: [Qemu-devel] [PATCH RFC] error: Include hint everywhere

2017-12-20 Thread Fam Zheng
On Wed, 12/20 10:05, Markus Armbruster wrote: > Fam Zheng writes: > > > On Tue, 12/19 15:29, Markus Armbruster wrote: > >> Adding Eric for additonal QMP design expertise. > >> > >> Fam Zheng writes: > >> > >> > Previously we only print hint lines if we are in a command line context > >> > or H

Re: [Qemu-devel] [ PATCH ] hpet: recover timer offset correctly

2017-12-20 Thread Pavel Dovgalyuk
> From: Dr. David Alan Gilbert [mailto:dgilb...@redhat.com] > * Pavel Dovgalyuk (pavel.dovga...@ispras.ru) wrote: > > HPET saves its state by calculating the current time and recovers timer > > offset using this calculated value. But these calculations include > > divisions and multiplications. The

Re: [Qemu-devel] [ PATCH ] hpet: recover timer offset correctly

2017-12-20 Thread Dr. David Alan Gilbert
* Pavel Dovgalyuk (pavel.dovga...@ispras.ru) wrote: > HPET saves its state by calculating the current time and recovers timer > offset using this calculated value. But these calculations include > divisions and multiplications. Therefore the timer state cannot be recovered > precise enough. > This

Re: [Qemu-devel] [PATCH v2 0/3] cpu: suffix cpu address spaces with indexes

2017-12-20 Thread Peter Xu
On Wed, Dec 20, 2017 at 09:56:10AM +0100, Paolo Bonzini wrote: > On 20/12/2017 04:13, Peter Xu wrote: > > On Fri, Nov 24, 2017 at 03:34:14PM +0800, Peter Xu wrote: > >> v2: > >> - drop patch 1 since merged > >> - add last patch as suggested by Paolo > >> > >> Please review, thanks. > > > > Ping fo

Re: [Qemu-devel] [PATCH RFC] error: Include hint everywhere

2017-12-20 Thread Markus Armbruster
Fam Zheng writes: > On Tue, 12/19 15:29, Markus Armbruster wrote: >> Adding Eric for additonal QMP design expertise. >> >> Fam Zheng writes: >> >> > Previously we only print hint lines if we are in a command line context >> > or HMP. However QMP errors are also eventually consumed by human and

Re: [Qemu-devel] [PATCH qemu] RFC: spapr/iommu: Enable in-kernel TCE acceleration via VFIO KVM device

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 02:47, Alexey Kardashevskiy wrote: >> - if we foresee having more IOMMU devices in KVM, let's rename >> KVM_DEV_VFIO_GROUP_SET_SPAPR_TCE to KVM_DEV_VFIO_GROUP_ATTACH_IOMMU and >> add a new function >> >> int iommu_memory_region_get_kvm_fd(IOMMUMemoryRegion *iommu); >> >> that req

Re: [Qemu-devel] [ PATCH ] hpet: recover timer offset correctly

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 08:58, Pavel Dovgalyuk wrote: > HPET saves its state by calculating the current time and recovers timer > offset using this calculated value. But these calculations include > divisions and multiplications. Therefore the timer state cannot be recovered > precise enough. > This patch in

Re: [Qemu-devel] [PATCHv3 00/13] net: introduce common net_crc32() and net_crc32_le() functions

2017-12-20 Thread Mark Cave-Ayland
On 20/12/17 08:35, Jason Wang wrote: On 2017年12月16日 02:41, Mark Cave-Ayland wrote: Whilst trying to debug a CRC32 endian issue for NIC multicast hash lookups, it struck me that it would make sense to have a common set of standard ethernet CRC32 functions (both little and big endian variants)

Re: [Qemu-devel] [RFC PATCH] vhost-user: quit infinite loop while used memslots is more than the backend limit

2017-12-20 Thread Jason Wang
On 2017年12月19日 18:21, Zhoujian (jay) wrote: -Original Message- From: Jason Wang [mailto:jasow...@redhat.com] Sent: Tuesday, December 19, 2017 5:24 PM To: Zhoujian (jay) ; qemu-devel@nongnu.org Cc: m...@redhat.com; Gonglei (Arei) ; marcandre.lur...@redhat.com; Huangweidong (C) ; wangxi

Re: [Qemu-devel] [PATCH v2 0/3] cpu: suffix cpu address spaces with indexes

2017-12-20 Thread Paolo Bonzini
On 20/12/2017 04:13, Peter Xu wrote: > On Fri, Nov 24, 2017 at 03:34:14PM +0800, Peter Xu wrote: >> v2: >> - drop patch 1 since merged >> - add last patch as suggested by Paolo >> >> Please review, thanks. > > Ping for 2.12 dev window. Already queued. :) Paolo >> >> Peter Xu (3): >> cpu: refa

Re: [Qemu-devel] [PATCH 0/2] vtd: tiny fixes for 2.12

2017-12-20 Thread Jason Wang
On 2017年12月08日 12:26, Peter Xu wrote: Please review. Thanks, Peter Xu (2): intel_iommu: remove X86_IOMMU_PCI_DEVFN_MAX intel_iommu: fix error param in string hw/i386/intel_iommu.c | 12 ++-- include/hw/i386/x86-iommu.h | 1 - 2 files changed, 6 insertions(+), 7 delet

Re: [Qemu-devel] [PATCHv3 00/13] net: introduce common net_crc32() and net_crc32_le() functions

2017-12-20 Thread Jason Wang
On 2017年12月16日 02:41, Mark Cave-Ayland wrote: Whilst trying to debug a CRC32 endian issue for NIC multicast hash lookups, it struck me that it would make sense to have a common set of standard ethernet CRC32 functions (both little and big endian variants) in net.c. Patches 1 and 2 introduce th

Re: [Qemu-devel] [PULL 00/10] Command line patches for 2017-12-18

2017-12-20 Thread Markus Armbruster
Peter Maydell writes: > On 18 December 2017 at 17:30, Markus Armbruster wrote: >> The following changes since commit 411ad78115ebeb3411cf4b7622784b93dfabe259: >> >> Merge remote-tracking branch >> 'remotes/stefanberger/tags/pull-tpm-2017-12-15-1' into staging (2017-12-17 >> 15:27:41 +) >

[Qemu-devel] [PULL v2 03/10] qemu-options qemu-doc: Move "Device URL Syntax" to qemu-doc

2017-12-20 Thread Markus Armbruster
Commit 0f5314a (v1.0) added section "Device URL Syntax" to qemu-options.hx. It's enclosed in STEXI..ETEXI, thus affects only qemu-options.texi, not --help. It appears as a subsection under section "Invocation". Similarly, qemu.1 has it as a subsection under "OPTIONS". Commit f9dadc9 (v1.1.0) dr

[Qemu-devel] [PULL v2 04/10] qemu-options: Move -iscsi under "Block device options"

2017-12-20 Thread Markus Armbruster
-iscsi ended up under the "Device URL Syntax" heading by a sequence of errors, as explained in the previous commit. Move it under the "Block device options" heading. Nothing left under "Device URL Syntax"; drop the heading. Cc: Ronnie Sahlberg Cc: Kevin Wolf Cc: Max Reitz Cc: qemu-bl...@nongn

Re: [Qemu-devel] [PATCH for-2.12 0/4] qmp dirty bitmap API

2017-12-20 Thread Vladimir Sementsov-Ogievskiy
20.12.2017 04:06, John Snow wrote: On 12/19/2017 11:07 AM, Vladimir Sementsov-Ogievskiy wrote: 13.12.2017 07:12, Fam Zheng wrote: On Mon, 11/13 19:20, Vladimir Sementsov-Ogievskiy wrote: Hi all. There are three qmp commands, needed to implement external backup API. Using these three command

[Qemu-devel] [PULL v2 07/10] qemu-options: Polish section "Character device options"

2017-12-20 Thread Markus Armbruster
Cc: Paolo Bonzini CC: Marc-André Lureau Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau --- qemu-options.hx | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 372cbabb7f..80b2331a32 100644 --- a/qemu-optio

[Qemu-devel] [PULL v2 01/10] qemu-options: Remove stray colons from output of --help

2017-12-20 Thread Markus Armbruster
Commit 43f187a broke --help: it put colons into blank lines. It removed the colon from DEFHEADING(TITLE:) and added it back in the macro expansion of DEFHEADING(TITLE), so hxtool can emit "@subsection TITLE" more easily. Trouble is it's added back even for the blank lines made with DEFHEADING().

[Qemu-devel] [PULL v2 08/10] qemu-options: Belatedly document --watchdog-action inject-nmi

2017-12-20 Thread Markus Armbruster
Missed in commit 795dc6e46d, v2.4.0. Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau --- qemu-options.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index 80b2331a32..84f41e6ac4 100644 --- a/qemu-options.hx +++ b/qemu-o

[Qemu-devel] [PULL v2 02/10] qemu-options: Fix markup of -netdev l2tpv3

2017-12-20 Thread Markus Armbruster
The table of option parameters lacks @table and @end table. The parameters become items in the enclosing table of options. Screwed up when l2tpv3 was added in commit 3fb69aa. Fix the obvious way. Cc: Jason Wang Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau --- qemu-options

[Qemu-devel] [PULL v2 09/10] option: Remove shadowing opt decl from qemu_opt_print()

2017-12-20 Thread Markus Armbruster
From: "Dr. David Alan Gilbert" opt was declared as a separate local inside the last loop, shadowing the local at the top of the function. Signed-off-by: Dr. David Alan Gilbert Message-Id: <20171005190725.18712-1-dgilb...@redhat.com> Reviewed-by: Eric Blake Signed-off-by: Markus Armbruster ---

[Qemu-devel] [PULL v2 05/10] qemu-options: Add missing -iscsi Texinfo documentation

2017-12-20 Thread Markus Armbruster
Cc: Ronnie Sahlberg Cc: Kevin Wolf Cc: Max Reitz Cc: qemu-bl...@nongnu.org Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau Reviewed-by: Ronnie Sahlberg --- qemu-options.hx | 6 ++ 1 file changed, 6 insertions(+) diff --git a/qemu-options.hx b/qemu-options.hx index 3d05bc

[Qemu-devel] [PULL v2 06/10] qemu-options: Polish section "TPM device options"

2017-12-20 Thread Markus Armbruster
Cc: Stefan Berger Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau --- qemu-options.hx | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index a173378d98..372cbabb7f 100644 --- a/qemu-options.hx +++ b/qemu-opt

[Qemu-devel] [PULL v2 10/10] option: Drop unused get_param_value(), get_next_param_value()

2017-12-20 Thread Markus Armbruster
Their last user went away in commit f51074cdc6, "pci-hotplug-old: Has been dead for five major releases, bury", v2.3.0. Remove them, as new code should use QemuOpts or maybe keyval_parse() instead. Signed-off-by: Markus Armbruster Message-Id: <20171006131645.17729-1-arm...@redhat.com> Reviewed-b

[Qemu-devel] [PULL v2 00/10] Command line patches for 2017-12-18

2017-12-20 Thread Markus Armbruster
The following changes since commit af352675efb7e92a1f5f6461a042a12015ab3d12: Merge remote-tracking branch 'remotes/aurel/tags/pull-target-sh4-20171218' into staging (2017-12-19 19:11:11 +) are available in the git repository at: git://repo.or.cz/qemu/armbru.git tags/pull-cmdline-2017-12

<    1   2   3   4   5   >