Re: [Qemu-devel] [RFC][PATCH 0/6] "bootonceindex" property

2017-03-15 Thread Janne Huttunen
> >   - Does this approach make sense? Any better ideas? >   > What is the use case? The short answer: emulating real hardware. Since real HW has this capability, there exist certain auxiliary systems that are built on it. Having similar semantics available in QEMU allows me to build a virtual m

Re: [Qemu-devel] [PATCH for-2.9 07/47] qapi: Clean up build of generated documentation

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> Rename intermediate qemu-qapi.texi to qemu-qmp-qapi.texi to match its >> user qemu-qmp-ref.texi, just like qemu-ga-qapi.texi matches >> qemu-ga-ref.texi. >> >> Build the intermediate .texi next to the sources and the final

Re: [Qemu-devel] [PATCH for-2.9 08/47] tests/qapi-schema: Cover empty union base

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> The new test case shows off qapi.py choking on an empty union base. > > We're still finding ways to choke the parser ;) At least we're not finding dozens of ways without having to look hard anymore :) >> Signed-off-by: Mar

Re: [Qemu-devel] [PATCH for-2.9 15/47] qapi: Conjure up QAPIDoc.ArgSection for undocumented members

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> qapi2texi.py already conjures up ArgSections for undocumented >> enumeration values, in texi_enum). Drop that, and conjure them up for > > Missing '('? Or extra ')'. I'll clean it up. >> all kinds of "arguments" (enumera

Re: [Qemu-devel] [PATCHv2 for-2.10 2/5] pseries: Implement HPT resizing

2017-03-15 Thread Bharata B Rao
On Tue, Mar 14, 2017 at 11:04 AM, David Gibson wrote: > This patch implements hypercalls allowing a PAPR guest to resize its own > hash page table. This will eventually allow for more flexible memory > hotplug. > > The implementation is partially asynchronous, handled in a special thread > runni

Re: [Qemu-devel] [PATCH for-2.9 16/47] qapi2texi: Convert to QAPISchemaVisitor

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> qapi2texi works with schema expression trees. Such a tight coupling >> to schema language syntax is not a good idea. Convert it to the visitor >> interface the other generators use. >> >> No change to generated documentat

Re: [Qemu-devel] [PATCH for-2.9 17/47] qapi: The #optional tag is redundant, drop

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> We traditionally mark optional members #optional in the doc comment. >> Before commit 3313b61, this was entirely manual. >> >> Commit 3313b61 added some automation because its qapi2texi.py relied >> on #optional to determin

Re: [Qemu-devel] [RFC][PATCH 0/6] "bootonceindex" property

2017-03-15 Thread Vasiliy Tolstov
14 Мар 2017 г. 19:58 пользователь "Gerd Hoffmann" написал: Hi, > - Does this approach make sense? Any better ideas? What is the use case? Sometimes I'm wondering why we actually need the "once" thing. Looks like people use it for installs, but I fail to see why. I usually configure my gu

Re: [Qemu-devel] [PATCH for-2.9 17/47] qapi: The #optional tag is redundant, drop

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> We traditionally mark optional members #optional in the doc comment. >> Before commit 3313b61, this was entirely manual. >> >> Commit 3313b61 added some automation because its qapi2texi.py relied >> on #optional to determin

Re: [Qemu-devel] [PATCH for-2.9 24/47] qapi2texi: Implement boxed argument documentation

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> This replaces manual references like "For the arguments, see the >> documentation of ..." by a generated reference "Arguments: the members >> of ...". >> >> Signed-off-by: Markus Armbruster >> --- >> qapi-schema.json

Re: [Qemu-devel] [RFC][PATCH 0/6] "bootonceindex" property

2017-03-15 Thread Gerd Hoffmann
Hi, > The short answer: emulating real hardware. > > Since real HW has this capability, there exist certain > auxiliary systems that are built on it. Having similar > semantics available in QEMU allows me to build a virtual > machine that works with these systems without modifying > them in an

Re: [Qemu-devel] [PATCH for-2.9 26/47] qapi2texi: Generate reference to base type members

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> The generated documentation doesn't mention object type members >> inherited from a base type. Fix that. >> >> Example change (qemu-qmp-ref.txt): >> >> -- Struct: VncServerInfo >> >> The network connection inform

Re: [Qemu-devel] [PATCH for-2.9 27/47] qapi2texi: Generate documentation for variant members

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> A flat union's branch brings in the members of another type. Generate >> a suitable reference to that type. >> >> Example change (qemu-qmp-ref.txt): >> >> -- Flat Union: QCryptoBlockOpenOptions >> >> The options

Re: [Qemu-devel] [PATCH for-2.9 31/47] qapi: Fix detection of doc / expression mismatch

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> This fixes the errors uncovered by the previous commit. >> >> Signed-off-by: Markus Armbruster >> --- > >> >> expr = self.get_expr(False) >> if 'include' in expr: >> +self.reject

Re: [Qemu-devel] [PATCH for-2.9 32/47] qapi: Move detection of doc / expression name mismatch

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> Move the check whether the doc matches the expression name from >> check_definition_doc() to check_exprs(). This changes the error >> location from the comment to the expression. Makes sense as the >> message talks about t

Re: [Qemu-devel] [PATCH v2 1/9] configure: change CONFIG_XEN_BACKEND to be a target property

2017-03-15 Thread Paolo Bonzini
On 14/03/2017 21:23, Stefano Stabellini wrote: > On Tue, 14 Mar 2017, Stefano Stabellini wrote: >>> Then you add to Makefile: >>> >>> CONFIG_SOFTMMU := $(if $(filter %-softmmu,$(TARGET_DIRS)),y) >>> CONFIG_USER_ONLY := $(if $(filter %-user,$(TARGET_DIRS)),y) >>> +CONFIG_XEN := $(CONFIG_XEN_BACK

Re: [Qemu-devel] [PATCH for-2.9 34/47] qapi: Move empty doc section checking to doc parser

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:23 AM, Markus Armbruster wrote: >> Markus Armbruster writes: >> >>> Results in a more precise error location, but the real reason is >>> emptying out check_docs() step by step. >>> >>> Signed-off-by: Markus Armbruster >> >> Perhaps we should simply drop t

Re: [Qemu-devel] [PATCH for-2.9 37/47] qapi: Fix detection of bogus member documentation

2017-03-15 Thread Markus Armbruster
Eric Blake writes: > On 03/13/2017 01:18 AM, Markus Armbruster wrote: >> check_definition_doc() checks for member documentation without a >> matching member. It laboriously second-guesses what members >> QAPISchema._def_exprs() will create. That's a stupid game. >> >> Move the check into QAPIS

Re: [Qemu-devel] [PATCH] coverity-model: model address_space_read/write

2017-03-15 Thread Markus Armbruster
Paolo Bonzini writes: > When more complexity was added to facilitate inlining, Coverity > lost the ability to use the address_space_rw model for > address_space_read/write. Got the commit hash of the change? > This causes false positive defects when Coverity sees > a length-8 write in address_s

Re: [Qemu-devel] [PATCH v2 2/9] xen: import ring.h from xen

2017-03-15 Thread Greg Kurz
On Mon, 13 Mar 2017 16:55:53 -0700 Stefano Stabellini wrote: > Do not use the ring.h header installed on the system. Instead, import > the header into the QEMU codebase. This avoids problems when QEMU is > built against a Xen version too old to provide all the ring macros. > What kind of proble

Re: [Qemu-devel] [Qemu-arm] [PATCH v2 0/5] hw: arm: exynos: Bring up secondary CPU + CPUIDLE issue

2017-03-15 Thread Alex Bennée
Krzysztof Kozlowski writes: > On Tue, Mar 14, 2017 at 06:24:33PM +, Alex Bennée wrote: >> That means you're on a pre-mttcg tree so that's not the reason. > > I managed to build it on current master (v2.8.0-2182-g5e2fb7c598c6). It > behaves the same (with "-accel tcg,thread=single": cannot re

Re: [Qemu-devel] [PATCH v3] memory: reduce heap Rss size around 3M

2017-03-15 Thread Paolo Bonzini
On 15/03/2017 14:39, Yang Zhong wrote: > Since cpu-memory and memory have same address space,one malloced > memory is enough. This patch will skip memory malloc for memory > address space,which will reduce around 3M physical memory in heap. > > Signed-off-by: Yang Zhong > --- > memory.c | 2 +-

Re: [Qemu-devel] [PATCH] coverity-model: model address_space_read/write

2017-03-15 Thread Paolo Bonzini
On 15/03/2017 08:56, Markus Armbruster wrote: > Paolo Bonzini writes: > >> When more complexity was added to facilitate inlining, Coverity >> lost the ability to use the address_space_rw model for >> address_space_read/write. > > Got the commit hash of the change? > >> This causes false posit

[Qemu-devel] [PATCH v2] coverity-model: model address_space_read/write

2017-03-15 Thread Paolo Bonzini
Commit eb7eeb8 ("memory: split address_space_read and address_space_write", 2015-12-17) made address_space_rw dispatch to one of address_space_read or address_space_write, rather than vice versa. For callers of address_space_read and address_space_write this causes false positive defects when Cove

Re: [Qemu-devel] [PATCH v3] memory: reduce heap Rss size around 3M

2017-03-15 Thread Zhong, Yang
Hello Paolo&peter, Maybe below patch is much more better, I also did the verification. Please all of you give some comments, many thanks! diff --git a/memory.c b/memory.c index 64b0a60..230f2cb 100644 --- a/memory.c +++ b/memory.c @@ -2422,7 +2422,7 @@ AddressSpace *address_space_init_shareable(

[Qemu-devel] about trace TB

2017-03-15 Thread oussema ben khedher
hi 

[Qemu-devel] about trace Translation blocks

2017-03-15 Thread oussema ben khedher
hi  im trying to trace Translation bloks and i guess that this function its the responsible for print the trace informations  qemu_log_mask_and_addr(CPU_LOG_EXEC, itb->pc, "Trace %p [%d: " TARGET_FMT_lx "] %s\n", itb->tc_ptr, cpu->cpu_index, itb->pc, lookup_symbol(itb->pc)); but really i didn't u

[Qemu-devel] [Bug 720657] Re: SVM intercept for VINTR exits too early

2017-03-15 Thread Thomas Huth
Triaging old bug tickets ... can you still reproduce this problem with the latest version of QEMU? ** Changed in: qemu Status: New => Incomplete -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/7

Re: [Qemu-devel] KVM call for 2017-03-14

2017-03-15 Thread Gerd Hoffmann
On Di, 2017-03-14 at 17:29 +, Dr. David Alan Gilbert wrote: > * Peter Maydell (peter.mayd...@linaro.org) wrote: > > On 14 March 2017 at 17:01, Dr. David Alan Gilbert > > wrote: > > > I also do a FreeBSD VM > > > > Do you have repro instructions for how to conveniently set > > this up? > > N

Re: [Qemu-devel] [PATCH v1 2/2] reduce qemu's heap Rss size from 12252kB to 2752KB

2017-03-15 Thread Paolo Bonzini
On 14/03/2017 22:23, Xu, Anthony wrote: >> flatview_unref can call object_unref and thus reach: > > Okay, flatview_unref is the one you worried about, > > Flatview_unref is registered as a RCU callback only in > address_space_update_topology, > Strangely, it is registered as a RCU callback, a

Re: [Qemu-devel] KVM call for 2017-03-14

2017-03-15 Thread Christian Borntraeger
On 03/14/2017 11:56 AM, Peter Maydell wrote: > On 14 March 2017 at 09:59, Juan Quintela wrote: >> Peter Maydell wrote: >>> On 14 March 2017 at 09:13, Stefan Hajnoczi wrote: On Mon, Mar 13, 2017 at 11:02:01AM +0100, Peter Maydell wrote: The minimum requirements for the new language: >>>

[Qemu-devel] COLO failover hang

2017-03-15 Thread wangguang
am testing QEMU COLO feature described here [QEMU Wiki](http://wiki.qemu-project.org/Features/COLO). When the Primary Node panic,the Secondary Node qemu hang. hang at recvmsg in qio_channel_socket_readv. And I run { 'execute': 'nbd-server-stop' } and { "execute": "x-colo-lost-heartbeat" } in

Re: [Qemu-devel] [PATCH v2 3/9] xen: introduce the header file for the Xen 9pfs transport protocol

2017-03-15 Thread Greg Kurz
On Mon, 13 Mar 2017 16:55:54 -0700 Stefano Stabellini wrote: > It uses the new ring.h macros to declare rings and interfaces. > > Signed-off-by: Stefano Stabellini > CC: anthony.per...@citrix.com > CC: jgr...@suse.com > --- > hw/9pfs/xen_9pfs.h | 20 > 1 file changed, 20 i

[Qemu-devel] [RFC v2 0/8] qemu-img: add measure sub-command

2017-03-15 Thread Stefan Hajnoczi
RFCv2: * Publishing RFC again to discuss the new user-visible interfaces. Code has changed quite a bit, I have not kept any Reviewed-by tags. * Rename qemu-img sub-command "measure" and API bdrv_measure() [Nir] * Report both "required bytes" and "fully allocated bytes" to handle the empty

[Qemu-devel] [RFC v2 1/8] block: add bdrv_measure() API

2017-03-15 Thread Stefan Hajnoczi
bdrv_measure() provides a conservative maximum for the size of a new image. This information is handy if storage needs to be allocated (e.g. a SAN or an LVM volume) ahead of time. Signed-off-by: Stefan Hajnoczi --- qapi/block-core.json | 19 +++ include/block/block.h |

[Qemu-devel] [RFC v2 4/8] qcow2: extract image creation option parsing

2017-03-15 Thread Stefan Hajnoczi
The image creation options parsed by qcow2_create() are also needed to implement .bdrv_measure(). Extract the parsing code, including input validation. Signed-off-by: Stefan Hajnoczi --- block/qcow2.c | 109 +++--- 1 file changed, 73 insertion

[Qemu-devel] [RFC v2 2/8] raw-format: add bdrv_measure() support

2017-03-15 Thread Stefan Hajnoczi
Maximum size calculation is trivial for the raw format: it's just the requested image size (because there is no metadata). Signed-off-by: Stefan Hajnoczi --- block/raw-format.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/block/raw-format.c b/block/raw-format.c ind

[Qemu-devel] [RFC v2 6/8] qemu-img: add measure subcommand

2017-03-15 Thread Stefan Hajnoczi
The measure subcommand calculates the size required by a new image file. This can be used by users or management tools that need to allocate space on an LVM volume, SAN LUN, etc before creating or converting an image file. Suggested-by: Maor Lipchuk Signed-off-by: Stefan Hajnoczi --- qemu-img.c

[Qemu-devel] [RFC v2 3/8] qcow2: extract preallocation calculation function

2017-03-15 Thread Stefan Hajnoczi
Calculating the preallocated image size will be needed to implement .bdrv_measure(). Extract the code out into a separate function. Signed-off-by: Stefan Hajnoczi --- block/qcow2.c | 134 +- 1 file changed, 76 insertions(+), 58 deletions(-

[Qemu-devel] [RFC v2 8/8] iotests: add test 178 for qemu-img measure

2017-03-15 Thread Stefan Hajnoczi
Signed-off-by: Stefan Hajnoczi --- tests/qemu-iotests/178 | 75 tests/qemu-iotests/178.out.qcow2 | 33 ++ tests/qemu-iotests/178.out.raw | 33 ++ tests/qemu-iotests/group | 1 + 4 files changed, 142 inse

[Qemu-devel] [RFC v2 5/8] qcow2: add bdrv_measure() support

2017-03-15 Thread Stefan Hajnoczi
Use qcow2_calc_prealloc_size() to get the required file size. Signed-off-by: Stefan Hajnoczi --- TODO: * Query block status and only count allocated clusters if in_bs != NULL * Exclude backing file clusters if in_bs != NULL and -o backing_file= is given --- block/qcow2.c | 53 ++

[Qemu-devel] [RFC v2 7/8] qemu-iotests: support per-format golden output files

2017-03-15 Thread Stefan Hajnoczi
Some tests produce format-dependent output. Either the difference is filtered out and ignored, or the test case is format-specific so we don't need to worry about per-format output differences. There is a third case: the test script is the same for all image formats and the format-dependent outpu

Re: [Qemu-devel] [PATCH] migration: allow clearing migration string parameters

2017-03-15 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > "Dr. David Alan Gilbert" writes: > > > * Markus Armbruster (arm...@redhat.com) wrote: > >> "Daniel P. Berrange" writes: > >> > >> > On Wed, Mar 01, 2017 at 08:36:03AM -0600, Eric Blake wrote: > >> >> On 03/01/2017 06:32 AM, Daniel P. Berrange wro

Re: [Qemu-devel] [PATCH for-2.10 6/8] ppc/pnv: Add cut down PSI bridge model and hookup external interrupt

2017-03-15 Thread Benjamin Herrenschmidt
On Wed, 2017-03-15 at 17:16 +1100, David Gibson wrote: > It might be cleaner to just revaluate the irq level from scratch > here, > and set the level, rather than doing this complicated dance to work > out if it has changed. Hrm... there was a reason I did it this way but I can't quite remember wh

Re: [Qemu-devel] Obsolete QEMU host environments

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 07:09:55AM +1000, Richard Henderson wrote: > On 03/15/2017 03:07 AM, Peter Maydell wrote: > > On 14 March 2017 at 17:54, Thomas Huth wrote: > > > Our ia64 host backend in QEMU (tcg/ia64) is still marked as maintained > > > ... so it's maybe not as dead as you think? Or shou

Re: [Qemu-devel] [PATCH] Output dirty-bytes-rate instead of dirty-pages-rate

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 12:13:58PM +0800, Chao Fan wrote: > On Tue, Mar 14, 2017 at 12:37:30PM +, Daniel P. Berrange wrote: > >On Tue, Mar 14, 2017 at 01:29:43PM +0100, Juan Quintela wrote: > >> Chao Fan wrote: > >> > In hmp, dirty-bytes-rate is more friendly than dirty-pages-rate. > >> > It's

Re: [Qemu-devel] [PATCH v2 5/9] xen/9pfs: connect to the frontend

2017-03-15 Thread Greg Kurz
On Mon, 13 Mar 2017 16:55:56 -0700 Stefano Stabellini wrote: > Write the limits of the backend to xenstore. Connect to the frontend. > Upon connection, allocate the rings according to the protocol > specification. > > Initialize a QEMUBH to schedule work upon receiving an event channel > notific

Re: [Qemu-devel] Obsolete QEMU host environments

2017-03-15 Thread Thomas Huth
On 15.03.2017 10:40, Daniel P. Berrange wrote: > On Wed, Mar 15, 2017 at 07:09:55AM +1000, Richard Henderson wrote: >> On 03/15/2017 03:07 AM, Peter Maydell wrote: >>> On 14 March 2017 at 17:54, Thomas Huth wrote: Our ia64 host backend in QEMU (tcg/ia64) is still marked as maintained ...

Re: [Qemu-devel] [PATCH for-2.10 1/8] ppc/xics: add a xics_get_cpu_index_by_pir() helper

2017-03-15 Thread Cédric Le Goater
On 03/15/2017 05:53 AM, David Gibson wrote: > On Tue, Mar 14, 2017 at 06:00:43PM +0100, Cédric Le Goater wrote: >> On 03/14/2017 06:38 AM, David Gibson wrote: >>> On Wed, Mar 08, 2017 at 11:52:44AM +0100, Cédric Le Goater wrote: This helper will be used to translate the server number of the XI

Re: [Qemu-devel] [PATCH for-2.9] mirror: Fix backwards mirror_yield parameters

2017-03-15 Thread Stefan Hajnoczi
On Fri, Mar 10, 2017 at 02:49:22PM -0600, Eric Blake wrote: > On 03/09/2017 09:25 PM, Eric Blake wrote: > > [adding Stefan in cc, as trace maintainer] > > > > On 03/09/2017 09:15 PM, Eric Blake wrote: > > > > Perhaps I should update the subject to mention trace? > > > >> trace-events lists the p

Re: [Qemu-devel] [Qemu-block] [PATCH v2] migration/block: Avoid invoking blk_drain too frequently

2017-03-15 Thread Kevin Wolf
Am 15.03.2017 um 04:37 hat Lidong Chen geschrieben: > Increase bmds->cur_dirty after submit io, so reduce the frequency > involve into blk_drain, and improve the performance obviously > when block migration. > > The performance test result of this patch: > > During the block dirty save phase, thi

Re: [Qemu-devel] [PATCH for-2.9] mirror: Fix backwards mirror_yield parameters

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 06:18:35PM +0800, Stefan Hajnoczi wrote: > On Fri, Mar 10, 2017 at 02:49:22PM -0600, Eric Blake wrote: > > And here's where I'm stuck: the makefiles are broken. Touching > > scripts/tracetool/format/h.py does NOT cause tracetool to be re-run by a > > mere 'make'; I've had t

Re: [Qemu-devel] KVM call for 2017-03-14

2017-03-15 Thread Greg Kurz
On Tue, 14 Mar 2017 11:56:36 +0100 Peter Maydell wrote: > On 14 March 2017 at 09:59, Juan Quintela wrote: > > Peter Maydell wrote: > >> On 14 March 2017 at 09:13, Stefan Hajnoczi wrote: > >>> On Mon, Mar 13, 2017 at 11:02:01AM +0100, Peter Maydell wrote: > >>> The minimum requirements for

Re: [Qemu-devel] [PATCH] migration: allow clearing migration string parameters

2017-03-15 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Markus Armbruster (arm...@redhat.com) wrote: >> "Dr. David Alan Gilbert" writes: [...] >> > I'm confused why we need a 'reset to default' - all we need is the ability >> > to change each parameter, and for the new value of that parameter >> > to be an empty s

Re: [Qemu-devel] [PATCH] migration: allow clearing migration string parameters

2017-03-15 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: > "Dr. David Alan Gilbert" writes: > > > * Markus Armbruster (arm...@redhat.com) wrote: > >> "Dr. David Alan Gilbert" writes: > [...] > >> > I'm confused why we need a 'reset to default' - all we need is the > >> > ability > >> > to change each par

Re: [Qemu-devel] [PATCH v3] memory: reduce heap Rss size around 3M

2017-03-15 Thread Peter Maydell
On 15 March 2017 at 08:12, Paolo Bonzini wrote: > > > On 15/03/2017 14:39, Yang Zhong wrote: >> Since cpu-memory and memory have same address space,one malloced >> memory is enough. This patch will skip memory malloc for memory >> address space,which will reduce around 3M physical memory in heap.

Re: [Qemu-devel] Requesting Edit Access to the wiki

2017-03-15 Thread Kevin Wolf
Hi Andreas, Am 14.03.2017 um 10:50 hat Andreas Grapentin geschrieben: > The wiki sais to ask on the mailing list for write access to the wiki, > so here I am :) please send me a private email with your preferred username and an initial password (that you'll obviously change immediately) and I can

[Qemu-devel] [PATCH] cirrus: stop passing around dst pointers in the blitter

2017-03-15 Thread Gerd Hoffmann
Instead pass around the address (aka offset into vga memory). Calculate the pointer in the rop_* functions, after applying the mask to the address, to make sure the address stays within the valid range. Signed-off-by: Gerd Hoffmann --- hw/display/cirrus_vga.c | 20 +++--- hw/display/cirru

Re: [Qemu-devel] [PATCH] migration: allow clearing migration string parameters

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 10:36:35AM +, Dr. David Alan Gilbert wrote: > * Markus Armbruster (arm...@redhat.com) wrote: > > "Dr. David Alan Gilbert" writes: > > > > > * Markus Armbruster (arm...@redhat.com) wrote: > > >> "Dr. David Alan Gilbert" writes: > > [...] > > >> > I'm confused why we ne

Re: [Qemu-devel] [PATCH v2 6/9] xen/9pfs: receive requests from the frontend

2017-03-15 Thread Greg Kurz
On Mon, 13 Mar 2017 16:55:57 -0700 Stefano Stabellini wrote: > Upon receiving an event channel notification from the frontend, schedule > the bottom half. From the bottom half, read one request from the ring, > create a pdu and call pdu_submit to handle it. > > For now, only handle one request p

Re: [Qemu-devel] [PATCH] block: Always call bdrv_child_check_perm first

2017-03-15 Thread Kevin Wolf
Am 14.03.2017 um 03:30 hat Fam Zheng geschrieben: > bdrv_child_set_perm alone is not very usable because the caller must > call bdrv_child_check_perm first. Well, you can imagine use cases where you want to check multiple children first and then set or abort all of them, but apparently we haven't

[Qemu-devel] [PATCH] trace: ensure $(tracetool-y) is defined in top level makefile

2017-03-15 Thread Daniel P. Berrange
The build rules for trace files have a dependancy on $(tracetool-y). This variable populated in the trace/Makefile.objs file and thus its definition gets pulled into the top level makefile. This happens too late in the process though, so by the time $(tracetool-y) is defined, make has already evalu

Re: [Qemu-devel] [PATCH v2 7/9] xen/9pfs: implement in/out_iov_from_pdu and vmarshal/vunmarshal

2017-03-15 Thread Greg Kurz
On Mon, 13 Mar 2017 16:55:58 -0700 Stefano Stabellini wrote: > Implement xen_9pfs_init_in/out_iov_from_pdu and > xen_9pfs_pdu_vmarshal/vunmarshall by creating new sg pointing to the > data on the ring. > > This is safe as we only handle one request per ring at any given time. > > Signed-off-by:

Re: [Qemu-devel] [PATCH for-2.9] mirror: Fix backwards mirror_yield parameters

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 10:26:44AM +, Daniel P. Berrange wrote: > On Wed, Mar 15, 2017 at 06:18:35PM +0800, Stefan Hajnoczi wrote: > > On Fri, Mar 10, 2017 at 02:49:22PM -0600, Eric Blake wrote: > > > And here's where I'm stuck: the makefiles are broken. Touching > > > scripts/tracetool/format

Re: [Qemu-devel] [PATCH v2 8/9] xen/9pfs: send responses back to the frontend

2017-03-15 Thread Greg Kurz
On Mon, 13 Mar 2017 16:55:59 -0700 Stefano Stabellini wrote: > Once a request is completed, xen_9pfs_push_and_notify gets called. In > xen_9pfs_push_and_notify, update the indexes (data has already been > copied to the sg by the common code) and send a notification to the > frontend. > > Schedul

Re: [Qemu-devel] [PATCH] blk: fix aio context loss on media change

2017-03-15 Thread Kevin Wolf
Am 14.03.2017 um 18:11 hat Vladimir Sementsov-Ogievskiy geschrieben: > If we have separate iothread for cdrom, we lose connection to it on > qmp_blockdev_change_medium, as aio_context is on bds which is dropped > and switched with new one. > > As an example result, after such media change we have

Re: [Qemu-devel] [PATCH] block: Always call bdrv_child_check_perm first

2017-03-15 Thread Fam Zheng
On Wed, 03/15 11:52, Kevin Wolf wrote: > Am 14.03.2017 um 03:30 hat Fam Zheng geschrieben: > > bdrv_child_set_perm alone is not very usable because the caller must > > call bdrv_child_check_perm first. > > Well, you can imagine use cases where you want to check multiple > children first and then s

Re: [Qemu-devel] [PATCH v2] migration/block: Avoid invoking blk_drain too frequently

2017-03-15 Thread Fam Zheng
On Wed, 03/15 11:37, Lidong Chen wrote: > Increase bmds->cur_dirty after submit io, so reduce the frequency > involve into blk_drain, and improve the performance obviously > when block migration. > > The performance test result of this patch: > > During the block dirty save phase, this patch impr

Re: [Qemu-devel] [PATCH] blk: fix aio context loss on media change

2017-03-15 Thread Fam Zheng
On Wed, 03/15 12:03, Kevin Wolf wrote: > Am 14.03.2017 um 18:11 hat Vladimir Sementsov-Ogievskiy geschrieben: > > If we have separate iothread for cdrom, we lose connection to it on > > qmp_blockdev_change_medium, as aio_context is on bds which is dropped > > and switched with new one. > > > > As

Re: [Qemu-devel] [Qemu-ppc] qemu-system-ppc video artifacts since "tcg: drop global lock during TCG code execution"

2017-03-15 Thread Alex Bennée
BALATON Zoltan writes: > On Tue, 14 Mar 2017, Alex Bennée wrote: >> So from a single-threaded -smp guest case there should be no difference >> in behaviour. >>However this shouldn't affect >> anything in the single-threaded world. > > I think we have a single CPU and thread for these ppc machin

Re: [Qemu-devel] KVM call for 2017-03-14

2017-03-15 Thread Laurent Vivier
Le 15/03/2017 à 11:29, Greg Kurz a écrit : > On Tue, 14 Mar 2017 11:56:36 +0100 > Peter Maydell wrote: > >> On 14 March 2017 at 09:59, Juan Quintela wrote: >>> Peter Maydell wrote: On 14 March 2017 at 09:13, Stefan Hajnoczi wrote: > On Mon, Mar 13, 2017 at 11:02:01AM +0100, Peter

Re: [Qemu-devel] [PATCH] trace: ensure $(tracetool-y) is defined in top level makefile

2017-03-15 Thread Eric Blake
On 03/15/2017 05:56 AM, Daniel P. Berrange wrote: > The build rules for trace files have a dependancy on $(tracetool-y). > This variable populated in the trace/Makefile.objs file and thus its > definition gets pulled into the top level makefile. This happens too > late in the process though, so by

Re: [Qemu-devel] [PATCH] trace: ensure $(tracetool-y) is defined in top level makefile

2017-03-15 Thread Daniel P. Berrange
On Wed, Mar 15, 2017 at 06:44:25AM -0500, Eric Blake wrote: > On 03/15/2017 05:56 AM, Daniel P. Berrange wrote: > > The build rules for trace files have a dependancy on $(tracetool-y). > > This variable populated in the trace/Makefile.objs file and thus its > > definition gets pulled into the top l

Re: [Qemu-devel] [PATCH] block: Always call bdrv_child_check_perm first

2017-03-15 Thread Eric Blake
On 03/14/2017 10:06 PM, Fam Zheng wrote: >>> +static int bdrv_child_check_perm(BdrvChild *c, uint64_t perm, uint64_t >>> shared, >>> + GSList *ignore_children, Error **errp); >>> +static void bdrv_child_abort_perm_update(BdrvChild *c); >>> +static void bdrv_child_s

[Qemu-devel] [PATCH V4 1/3] virtio: guard against NULL pfn

2017-03-15 Thread Jason Wang
To avoid access stale memory region cache after reset, this patch check the existence of virtqueue pfn for all exported virtqueue access helpers before trying to use them. Cc: Cornelia Huck Cc: Paolo Bonzini Reviewed-by: Cornelia Huck Signed-off-by: Jason Wang --- Changes from V2: - return 1 i

[Qemu-devel] [PATCH V4 0/3] Several fixes for virtio region caches

2017-03-15 Thread Jason Wang
Hi: This series contains several fixes for virtio region caches, please review. Thakns Jason Wang (3): virtio: guard against NULL pfn virtio: destroy region cache during reset virtio: validate address space cache during init hw/virtio/virtio.c | 104 ++

[Qemu-devel] [PATCH V4 2/3] virtio: destroy region cache during reset

2017-03-15 Thread Jason Wang
We don't destroy region cache during reset which can make the maps of previous driver leaked to a buggy or malicious driver that don't set vring address before starting to use the device. Fix this by destroy the region cache during reset and validate it before trying to see them. Cc: Cornelia Huck

[Qemu-devel] [PATCH V4 3/3] virtio: validate address space cache during init

2017-03-15 Thread Jason Wang
We don't check the return value of address_space_cache_init(), this may lead buggy driver use incorrect region caches. Instead of triggering an assert, catch and warn this early in virtio_init_region_cache(). Cc: Cornelia Huck Cc: Paolo Bonzini Reviewed-by: Cornelia Huck Signed-off-by: Jason Wa

Re: [Qemu-devel] [PATCH for-2.9 07/47] qapi: Clean up build of generated documentation

2017-03-15 Thread Eric Blake
On 03/15/2017 02:08 AM, Markus Armbruster wrote: >>> +++ b/.gitignore >>> @@ -103,11 +103,11 @@ >>> /docs/qemu-ga-ref.txt >> >> [1] >> >>> /docs/qemu-qmp-ref.html >>> /docs/qemu-qmp-ref.txt >>> -docs/qemu-ga-ref.info* >>> -docs/qemu-qmp-ref.info* >>> -/qemu-ga-qapi.texi >>> -/qemu-qapi.texi >>>

Re: [Qemu-devel] [PATCH v2 6/9] xen/9pfs: receive requests from the frontend

2017-03-15 Thread Greg Kurz
On Mon, 13 Mar 2017 16:55:57 -0700 Stefano Stabellini wrote: > Upon receiving an event channel notification from the frontend, schedule > the bottom half. From the bottom half, read one request from the ring, > create a pdu and call pdu_submit to handle it. > > For now, only handle one request p

Re: [Qemu-devel] [PATCH v2] coverity-model: model address_space_read/write

2017-03-15 Thread Eric Blake
On 03/15/2017 03:16 AM, Paolo Bonzini wrote: > Commit eb7eeb8 ("memory: split address_space_read and > address_space_write", 2015-12-17) made address_space_rw > dispatch to one of address_space_read or address_space_write, > rather than vice versa. > > For callers of address_space_read and address

Re: [Qemu-devel] [PATCH v2] coverity-model: model address_space_read/write

2017-03-15 Thread Peter Maydell
On 15 March 2017 at 11:55, Eric Blake wrote: > On 03/15/2017 03:16 AM, Paolo Bonzini wrote: >> -MemTxResult address_space_rw(AddressSpace *as, hwaddr addr, MemTxAttrs >> attrs, >> - uint8_t *buf, int len, bool is_write) >> +MemTxResult address_space_read(AddressSpace *

Re: [Qemu-devel] [PATCH] block: Always call bdrv_child_check_perm first

2017-03-15 Thread Kevin Wolf
Am 15.03.2017 um 12:09 hat Fam Zheng geschrieben: > On Wed, 03/15 11:52, Kevin Wolf wrote: > > Am 14.03.2017 um 03:30 hat Fam Zheng geschrieben: > > > bdrv_child_set_perm alone is not very usable because the caller must > > > call bdrv_child_check_perm first. > > > > Well, you can imagine use case

[Qemu-devel] [PATCH] cirrus: fix cirrus_invalidate_region

2017-03-15 Thread Gerd Hoffmann
off_cur_end is exclusive, so off_cur_end == cirrus_addr_mask is valid. Fix calculation to make sure to allow that, otherwise the assert added by commit f153b563f8cf121aebf5a2fff5f0110faf58ccb3 can trigger for valid blits. Test case: boot windows nt 4.0 Signed-off-by: Gerd Hoffmann --- hw/displa

Re: [Qemu-devel] [PATCH] blk: fix aio context loss on media change

2017-03-15 Thread Kevin Wolf
Am 15.03.2017 um 12:14 hat Fam Zheng geschrieben: > On Wed, 03/15 12:03, Kevin Wolf wrote: > > Am 14.03.2017 um 18:11 hat Vladimir Sementsov-Ogievskiy geschrieben: > > > If we have separate iothread for cdrom, we lose connection to it on > > > qmp_blockdev_change_medium, as aio_context is on bds wh

Re: [Qemu-devel] [PATCH for-2.9 26/47] qapi2texi: Generate reference to base type members

2017-03-15 Thread Eric Blake
On 03/15/2017 02:30 AM, Markus Armbruster wrote: > Eric Blake writes: > >>> @@ -152,6 +152,8 @@ def texi_members(doc, what, member_func): >>> else: >>> desc = 'Not documented' >>> items += member_func(section.member) + texi_format(desc) + '\n' >>> +if base: >>>

Re: [Qemu-devel] [PATCH for-2.9 31/47] qapi: Fix detection of doc / expression mismatch

2017-03-15 Thread Eric Blake
On 03/15/2017 02:39 AM, Markus Armbruster wrote: > Eric Blake writes: > >> On 03/13/2017 01:18 AM, Markus Armbruster wrote: >>> This fixes the errors uncovered by the previous commit. >>> >>> Signed-off-by: Markus Armbruster >>> --- >> >>> >>> expr = self.get_expr(False) >>>

Re: [Qemu-devel] [PATCH v2] coverity-model: model address_space_read/write

2017-03-15 Thread Eric Blake
On 03/15/2017 06:58 AM, Peter Maydell wrote: > On 15 March 2017 at 11:55, Eric Blake wrote: >> On 03/15/2017 03:16 AM, Paolo Bonzini wrote: >>> -MemTxResult address_space_rw(AddressSpace *as, hwaddr addr, MemTxAttrs >>> attrs, >>> - uint8_t *buf, int len, bool is_write

[Qemu-devel] [PATCH v2] trace: ensure $(tracetool-y) is defined in top level makefile

2017-03-15 Thread Daniel P. Berrange
The build rules for trace files have a dependancy on $(tracetool-y). This variable populated in the trace/Makefile.objs file and thus its definition gets pulled into the top level makefile. This happens too late in the process though, so by the time $(tracetool-y) is defined, make has already evalu

Re: [Qemu-devel] [PATCH v3] memory: reduce heap Rss size around 3M

2017-03-15 Thread Zhong, Yang
Hello Peter, The cpu-memory and memory have same address space through info mtree tool. address-space: memory - (prio 0, i/o): system -7fff (prio 0, i/o): alias ram-below-4g @pc.ram -7fff 00

[Qemu-devel] [PATCH v2 for-2.9 01/47] qapi: Factor QAPISchemaParser._include() out of .__init__()

2017-03-15 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Reviewed-by: Marc-André Lureau --- scripts/qapi.py | 45 +++-- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/scripts/qapi.py b/scripts/qapi.py index 53a4477..345cde1 100644 --- a/s

[Qemu-devel] [PATCH v2 for-2.9 08/47] tests/qapi-schema: Cover empty union base

2017-03-15 Thread Markus Armbruster
The new test case shows off qapi.py choking on an empty union base. Signed-off-by: Markus Armbruster Reviewed-by: Marc-André Lureau Reviewed-by: Eric Blake --- tests/Makefile.include | 1 + tests/qapi-schema/union-base-empty.err | 10 ++ tests/qapi-schema/union-base-

[Qemu-devel] [PATCH v2 for-2.9 11/47] qapi: Avoid unwanted blank lines in QAPIDoc

2017-03-15 Thread Markus Armbruster
We silently fix missing #optional tags for QAPIDoc by appending a line "#optional" to the section's .content. However, this interferes with .__repr__ stripping trailing blank lines from .content. Use new ArgSection instance variable .optional instead, and leave .content alone. To permit testing

[Qemu-devel] [PATCH v2 for-2.9 04/47] docs/qapi-code-gen.txt: Drop confusing reference to 'gen'

2017-03-15 Thread Markus Armbruster
Section "Commands" qualifies its rules on permitted argument and return types "with one exception noted below when 'gen' is used". The note went away in commit 2d21291. Clean up the dangling references. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Reviewed-by: Marc-André Lureau --

[Qemu-devel] [PATCH v2 for-2.9 12/47] qapi/rocker: Fix up doc comment notes on optional members

2017-03-15 Thread Markus Armbruster
Talking about #optional like this # Note: fields are marked #optional to indicate that they may or may # not appear ... doesn't work so well in generated documentation, because the #optional tag is not visible there. Replace by # Note: optional members may or may not appear ... Sig

[Qemu-devel] [PATCH v2 for-2.9 10/47] qapi2texi: Fix up output around #optional

2017-03-15 Thread Markus Armbruster
We use tag #optional to mark optional members, like this: # @name: #optional The name of the guest texi_body() strips #optional, but not whitespace around it. For the above, we get in qemu-qmp-qapi.texi @item @code{'name'} (optional) The name of the guest @end table The extra

[Qemu-devel] [PATCH v2 for-2.9 22/47] qapi2texi: Explain enum value undocumentedness more clearly

2017-03-15 Thread Markus Armbruster
Instead of not saying anything when we have no documentation, say "Not documented". Example change (qemu-qmp-ref.txt): -- Enum: GuestPanicAction An enumeration of the actions taken when guest OS panic is detected Values: 'pause' system pauses 'poweroff' +

[Qemu-devel] [PATCH v2 for-2.9 05/47] qapi: Have each QAPI schema declare its returns white-list

2017-03-15 Thread Markus Armbruster
qapi.py has a hardcoded white-list of command names that may violate the rules on permitted return types. Add a new pragma directive 'returns-whitelist', and use it to replace the hard-coded white-list. Signed-off-by: Markus Armbruster --- docs/qapi-code-gen.txt | 13

[Qemu-devel] [PATCH v2 for-2.9 25/47] qapi2texi: Include member type in generated documentation

2017-03-15 Thread Markus Armbruster
The recent merge of docs/qmp-commands.txt and docs/qmp-events.txt into the schema lost type information. Fix this documentation regression. Example change (qemu-qmp-ref.txt): -- Struct: InputKeyEvent Keyboard input event. Members: - 'button' + 'button: InputButton'

[Qemu-devel] [PATCH v2 for-2.9 07/47] qapi: Clean up build of generated documentation

2017-03-15 Thread Markus Armbruster
Rename intermediate qemu-qapi.texi to qemu-qmp-qapi.texi to match its user qemu-qmp-ref.texi, just like qemu-ga-qapi.texi matches qemu-ga-ref.texi. Build the intermediate .texi next to the sources and the final output in docs/ instead of dumping them into the build root. Fix version.texi dependen

  1   2   3   4   >