[Qemu-devel] [Bug 1205156] Re: Errors while compiling version 1.5.2

2013-07-26 Thread jean-christophe manciot
I was able to compile and link latest 1.5.2 release with the tar.bz2 source files. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1205156 Title: Errors while compiling version 1.5.2 Status in

[Qemu-devel] [PATCH v4 01/10] ignore SIGPIPE in qemu-img and qemu-io

2013-07-26 Thread MORITA Kazutaka
This prevents the tools from being stopped when they write data to a closed connection in the other side. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- qemu-img.c | 4 qemu-io.c | 4 2 files changed, 8 insertions(+)

[Qemu-devel] [PATCH v4 06/10] coroutine: add co_aio_sleep_ns() to allow sleep in block drivers

2013-07-26 Thread MORITA Kazutaka
This helper function behaves similarly to co_sleep_ns(), but the sleeping coroutine will be resumed when using qemu_aio_wait(). Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- include/block/coroutine.h | 8 qemu-coroutine-sleep.c| 47

[Qemu-devel] [PATCH v4 02/10] iov: handle EOF in iov_send_recv

2013-07-26 Thread MORITA Kazutaka
Without this patch, iov_send_recv() never returns when do_send_recv() returns zero. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- util/iov.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/util/iov.c b/util/iov.c index

[Qemu-devel] [PATCH v4 05/10] sheepdog: reload inode outside of resend_aioreq

2013-07-26 Thread MORITA Kazutaka
This prepares for using resend_aioreq() after reconnecting to the sheepdog server. Tested-and-reviewed-by: Liu Yuan namei.u...@gmail.com Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 33 +++-- 1 file changed, 19 insertions(+), 14

[Qemu-devel] [PATCH v4 10/10] sheepdog: check simultaneous create in resend_aioreq

2013-07-26 Thread MORITA Kazutaka
After reconnection happens, all the inflight requests are moved to the failed request list. As a result, sd_co_rw_vector() can send another create request before resend_aioreq() resends a create request from the failed list. This patch adds a helper function check_simultaneous_create() and

[Qemu-devel] [PATCH v4 09/10] sheepdog: cancel aio requests if possible

2013-07-26 Thread MORITA Kazutaka
This patch tries to cancel aio requests in pending queue and failed queue. When the sheepdog driver cannot cancel the requests, it waits for them to be completed. Tested-and-reviewed-by: Liu Yuan namei.u...@gmail.com Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp ---

[Qemu-devel] [PATCH v4 08/10] sheepdog: make add_aio_request and send_aioreq void functions

2013-07-26 Thread MORITA Kazutaka
These functions no longer return errors. We can make them void functions and simplify the codes. Tested-and-reviewed-by: Liu Yuan namei.u...@gmail.com Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 66 +++-

[Qemu-devel] [PATCH v4 03/10] sheepdog: check return values of qemu_co_recv/send correctly

2013-07-26 Thread MORITA Kazutaka
If qemu_co_recv/send doesn't return the specified length, it means that an error happened. Tested-and-reviewed-by: Liu Yuan namei.u...@gmail.com Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 16 1 file changed, 8 insertions(+), 8

[Qemu-devel] [PATCH v4 04/10] sheepdog: handle vdi objects in resend_aio_req

2013-07-26 Thread MORITA Kazutaka
The current resend_aio_req() doesn't work when the request is against vdi objects. This fixes the problem. Tested-and-reviewed-by: Liu Yuan namei.u...@gmail.com Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 21 - 1 file changed, 16

[Qemu-devel] [PATCH v4 00/10] sheepdog: reconnect server after connection failure

2013-07-26 Thread MORITA Kazutaka
Currently, if a sheepdog server exits, all the connecting VMs need to be restarted. This series implements a feature to reconnect the server, and enables us to do online sheepdog upgrade and avoid restarting VMs when sheepdog servers crash unexpectedly. v4: - Added comment to explain why we

[Qemu-devel] [PATCH v4 07/10] sheepdog: try to reconnect to sheepdog after network error

2013-07-26 Thread MORITA Kazutaka
This introduces a failed request queue and links all the inflight requests to the list after network error happens. After QEMU reconnects to the sheepdog server successfully, the sheepdog block driver will retry all the requests in the failed queue. Tested-and-reviewed-by: Liu Yuan

Re: [Qemu-devel] Cirrus VGA slow screen update, show blank screen last 13s or so for windows XP guest

2013-07-26 Thread Gonglei (Arei)
-Original Message- From: Anthony Liguori [mailto:anth...@codemonkey.ws] Sent: Friday, July 26, 2013 11:21 AM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org; xen-de...@lists.xen.org; Hanweidong; Luonengjun; Huangweidong (Hardware) Subject: Re: [Qemu-devel] Cirrus VGA slow screen

Re: [Qemu-devel] [PATCH v6 01/18] block: ensure bdrv_drain_all() works during bdrv_delete()

2013-07-26 Thread Wenchao Xia
Reviewed-by: Wenchao Xia xiaw...@linux.vnet.ibm.com One question: old code missed itself in bdrv_drain_all(), is that a bug? In bdrv_delete() make sure to call bdrv_make_anon() *after* bdrv_close() so that the device is still seen by bdrv_drain_all() when iterating bdrv_states. Cc:

Re: [Qemu-devel] [PATCH 2/9] block: vhdx - add header update capability.

2013-07-26 Thread Fam Zheng
On Wed, 07/24 13:54, Jeff Cody wrote: This adds the ability to update the headers in a VHDX image, including generating a new MS-compatible GUID. As VHDX depends on uuid.h, VHDX is now a configurable build option. If VHDX support is enabled, that will also enable uuid as well. The default

Re: [Qemu-devel] [PATCH v2 1/2] qapi: change qapi to convert schema json

2013-07-26 Thread Amos Kong
On Fri, Jul 19, 2013 at 06:27:12AM -0600, Eric Blake wrote: On 07/16/2013 04:37 AM, Amos Kong wrote: QMP schema is defined in a json file, it will be parsed by qapi scripts and generate C files. We want to return the schema information to management, this patch converts the json file

Re: [Qemu-devel] [PATCH V7 1/2] Implement sync modes for drive-backup.

2013-07-26 Thread Paolo Bonzini
Il 26/07/2013 03:09, Ian Main ha scritto: +/* See if we have a backing HD we can use to create our new image + * on top of. */ +source = bs-backing_hd; +if (!source sync == MIRROR_SYNC_MODE_TOP) { +sync = MIRROR_SYNC_MODE_FULL; +} + I understand why you left

Re: [Qemu-devel] [PATCH v2 2/2] full introspection support for QMP

2013-07-26 Thread Amos Kong
On Tue, Jul 16, 2013 at 02:18:37PM +0200, Paolo Bonzini wrote: Il 16/07/2013 14:04, Amos Kong ha scritto: Thanks. I see this is unique, but it is also not too intuitive. So, could you add a kind field to DataObject that is an enum (list/dict/scalar, or something like that)? This

Re: [Qemu-devel] [PATCH v2 2/2] full introspection support for QMP

2013-07-26 Thread Amos Kong
On Wed, Jul 17, 2013 at 04:36:06PM -0400, Luiz Capitulino wrote: On Tue, 16 Jul 2013 18:37:42 +0800 Amos Kong ak...@redhat.com wrote: Introduces new monitor command to query QMP schema information, the return data is a dynamical and nested dict/list, it contains the useful metadata to

Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation

2013-07-26 Thread Igor Mammedov
On Wed, 24 Jul 2013 14:41:36 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 24/07/2013 13:34, Igor Mammedov ha scritto: On Wed, 24 Jul 2013 11:41:04 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 24/07/2013 10:36, Igor Mammedov ha scritto: On Tue, 23 Jul 2013 19:09:26 +0200

Re: [Qemu-devel] [PATCH v2 2/2] full introspection support for QMP

2013-07-26 Thread Amos Kong
On Fri, Jul 19, 2013 at 04:05:16PM -0600, Eric Blake wrote: On 07/16/2013 04:37 AM, Amos Kong wrote: Introduces new monitor command to query QMP schema information, the return data is a dynamical and nested dict/list, it contains s/dynamical/dynamic/ the useful metadata to help

Re: [Qemu-devel] [PATCH 1/2] hw/virtio/virtio: Don't allow guests to add/remove queues

2013-07-26 Thread Peter Maydell
On 26 July 2013 00:27, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Jul 25, 2013 at 11:37:22PM +0100, Peter Maydell wrote: On 25 July 2013 23:33, Michael S. Tsirkin m...@redhat.com wrote: On Thu, Jul 25, 2013 at 02:37:42PM +0100, Peter Maydell wrote: A queue size of 0 is used to

Re: [Qemu-devel] [Xen-devel] Cirrus VGA slow screen update, show blank screen last 13s or so for windows XP guest

2013-07-26 Thread Fabio Fantoni
Il 26/07/2013 03:57, Gonglei (Arei) ha scritto: Il 25/07/2013 15:13, Gonglei (Arei) ha scritto: Hi, I found a problem: For windows XP guest booting by qemu upstream, using the RDP(Remote Desktop Protocol) and VNC protocol to connect the windows XP guest which booting by Qemu upstream

Re: [Qemu-devel] [PATCH 3/4] qemu-nbd: add doc for internal snapshot export

2013-07-26 Thread Stefan Hajnoczi
On Wed, Jul 17, 2013 at 10:03:54PM +0800, Wenchao Xia wrote: Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com --- qemu-nbd.c|2 ++ qemu-nbd.texi |3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/qemu-nbd.c b/qemu-nbd.c index 46be2b2..833 100644

Re: [Qemu-devel] Cirrus VGA slow screen update, show blank screen last 13s or so for windows XP guest

2013-07-26 Thread Gonglei (Arei)
I got VMEXIT counts by xentrace When using the VNC protocol grab the RDP to connect Windows XP guest. the time-interval of running xentrace is five seconds.The number of VMEXIT (EXIT_REASON_EPT_VIOLATION) in unstream qemu far greater than qemu-dm. the command likes: xentrace -D -T 5 -c

Re: [Qemu-devel] [PATCH 0/4] export internal snapshot by qemu-nbd

2013-07-26 Thread Stefan Hajnoczi
On Fri, Jul 26, 2013 at 10:23:24AM +0800, Wenchao Xia wrote: 于 2013-7-25 16:06, Stefan Hajnoczi 写道: On Thu, Jul 25, 2013 at 10:30:49AM +0800, Wenchao Xia wrote: Besides the argument, I think it helps to probe snapshot without qemu-img convert, hope to get comments for the code. Hi

Re: [Qemu-devel] [PATCHv2] [RFC 2/7] aio / timers: qemu-timer.c utility functions and add list of clocks

2013-07-26 Thread Stefan Hajnoczi
On Thu, Jul 25, 2013 at 10:46:18AM +0100, Alex Bligh wrote: @@ -61,6 +71,15 @@ int64_t cpu_get_ticks(void); void cpu_enable_ticks(void); void cpu_disable_ticks(void); +static inline int64_t qemu_soonest_timeout(int64_t timeout1, int64_t timeout2) +{ +/* we can abuse the fact that -1

Re: [Qemu-devel] [PATCHv2] [RFC 6/7] aio / timers: Switch to ppoll, run AioContext timers in aio_poll/aio_dispatch

2013-07-26 Thread Stefan Hajnoczi
On Thu, Jul 25, 2013 at 03:53:55PM +0100, Alex Bligh wrote: Stefan, --On 25 July 2013 11:33:43 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: assert(progress || busy); -return true; +return progress; Now aio_poll() can return false when it used to return true? I don't

Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff

2013-07-26 Thread Stefan Hajnoczi
On Thu, Jul 25, 2013 at 07:53:33PM +0100, Alex Bligh wrote: --On 25 July 2013 14:32:59 +0200 Jan Kiszka jan.kis...@siemens.com wrote: I would happily at a QEMUClock of each type to AioContext. They are after all pretty lightweight. What's the point of adding tones of QEMUClock

[Qemu-devel] [PATCH] cpus: use cpu_is_stopped efficiently

2013-07-26 Thread Tiejun Chen
It makes more sense and simple later. Signed-off-by: Tiejun Chen tiejun.c...@windriver.com --- cpus.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cpus.c b/cpus.c index c232265..a997632 100644 --- a/cpus.c +++ b/cpus.c @@ -62,6 +62,11 @@ static

Re: [Qemu-devel] [PATCH qom-next for-1.6 1/4] cs4231: QOM'ify

2013-07-26 Thread Hu Tao
On Wed, Jul 24, 2013 at 10:35:51AM +0200, Andreas Färber wrote: Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/cs4231.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) Reviewed-by: Hu Tao hu...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH qom-next for-1.6 4/4] pl041: QOM'ify

2013-07-26 Thread Hu Tao
On Wed, Jul 24, 2013 at 10:35:54AM +0200, Andreas Färber wrote: Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/pl041.c | 45 + 1 file changed, 25 insertions(+), 20 deletions(-) Reviewed-by: Hu Tao hu...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH qom-next for-1.6 2/4] audio/marvell_88w8618: QOM'ify

2013-07-26 Thread Hu Tao
On Wed, Jul 24, 2013 at 10:35:52AM +0200, Andreas Färber wrote: Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/marvell_88w8618.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) Reviewed-by: Hu Tao hu...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH qom-next for-1.6 3/4] milkymist-ac97: QOM'ify

2013-07-26 Thread Hu Tao
On Wed, Jul 24, 2013 at 10:35:53AM +0200, Andreas Färber wrote: Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/milkymist-ac97.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) Reviewed-by: Hu Tao hu...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH qom-next for-1.6] onenand: QOM'ify

2013-07-26 Thread Hu Tao
On Wed, Jul 24, 2013 at 10:46:31AM +0200, Andreas Färber wrote: Signed-off-by: Andreas Färber afaer...@suse.de --- hw/block/onenand.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) Reviewed-by: Hu Tao hu...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH v3 14/14] i386: ACPI table generation code from seabios

2013-07-26 Thread Gerd Hoffmann
Hi, You can look at the tables without doing a full linker pass first, so the firmware can easily initialize the hardware according to what it finds in specific acpi tables. Check FADT for pm_base. Check MCFG for mmconf xbar location. cheers, Gerd That's something I think that

Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff

2013-07-26 Thread Alex Bligh
--On 26 July 2013 10:43:45 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: block.c and block/qed.c use vm_clock because block drivers should not do guest I/O while the vm is stopped. This is especially true during live migration where it's important to hand off the image file from the source

[Qemu-devel] [PATCH v3] hcd-ohci: add dma error handling

2013-07-26 Thread Alexey Kardashevskiy
Current hcd-ohci does not handle DMA errors. However they may happen so here we introduce simple error handling. On such errors, a typical OHCI will stop operating, signal the guest about the error by sending UnrecoverableError Event, set itself into error state and set Detected Parity Error in

Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff

2013-07-26 Thread Paolo Bonzini
Il 26/07/2013 11:08, Alex Bligh ha scritto: --On 26 July 2013 10:43:45 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: block.c and block/qed.c use vm_clock because block drivers should not do guest I/O while the vm is stopped. This is especially true during live migration where it's

[Qemu-devel] [PATCH v4] spapr-vscsi: add task management

2013-07-26 Thread Alexey Kardashevskiy
At the moment the guest kernel issues two types of task management requests to the hypervisor - task about and lun reset. This adds handling for these tasks. As spapr-vscsi starts calling scsi_req_cancel(), free_request callback was implemented. As virtio-vscsi, spapr-vscsi does not handle

Re: [Qemu-devel] vhost acceleration broken?

2013-07-26 Thread Stefan Hajnoczi
On Thu, Jul 25, 2013 at 05:53:06PM +0300, Michael S. Tsirkin wrote: On Thu, Jul 25, 2013 at 03:12:31PM +0100, Peter Maydell wrote: On 25 July 2013 03:08, Anthony Liguori anth...@codemonkey.ws wrote: We really ought to strongly deprecate -net because it's misleading. ...we still need to

Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation

2013-07-26 Thread Paolo Bonzini
Il 26/07/2013 09:38, Igor Mammedov ha scritto: Perhaps denying memory add and suggesting node migration to a node with more memory would be right approach, otherwise user is bound to be hit by cross node penalty. Or better, the user can first change the policy from bind to preferred, and then

Re: [Qemu-devel] [PATCH v4] spapr-vscsi: add task management

2013-07-26 Thread Paolo Bonzini
Il 26/07/2013 11:20, Alexey Kardashevskiy ha scritto: -return !fn; + +vscsi_send_rsp(s, req, resp, 0, 0); We're not there yet, but getting closer... These response codes are _not_ SCSI status codes that go in the SRP_RSP's status field. They go (in the error case) in the response

Re: [Qemu-devel] [PATCH 0/12 RFC v2] Localhost migration

2013-07-26 Thread Paolo Bonzini
Il 25/07/2013 22:18, Lei Li ha scritto: Hi, This patch series tries to add localhost migration support to Qemu. When doing localhost migration, the host memory will balloon up during the period, might consume double memories for some time. So we want to add a new live migration

Re: [Qemu-devel] [PATCH v3 06/14] i386: add bios linker/loader

2013-07-26 Thread Gerd Hoffmann
Hi, Hacked up coreboot support to verify the interface. +/* + * COMMAND_ALLOCATE - allocate a table from @alloc_file + * subject to @alloc_align alignment (must be power of 2) + * and @alloc_zone (can be HIGH or FSEG) requirements. + * + *

Re: [Qemu-devel] vhost acceleration broken?

2013-07-26 Thread Peter Maydell
On 26 July 2013 10:25, Stefan Hajnoczi stefa...@gmail.com wrote: On Thu, Jul 25, 2013 at 05:53:06PM +0300, Michael S. Tsirkin wrote: On Thu, Jul 25, 2013 at 03:12:31PM +0100, Peter Maydell wrote: On 25 July 2013 03:08, Anthony Liguori anth...@codemonkey.ws wrote: We really ought to strongly

Re: [Qemu-devel] [PATCH V3 for-1.6 2/5] block: Modify the throttling code to implement the leaky bucket algorithm.

2013-07-26 Thread Benoît Canet
I think it is easier to understand written like this: int64_t total_leak = ((bs-io_limits.iops[BLOCK_IO_LIMIT_TOTAL] * delta) / NANOSECONDS_PER_SECOND); if (ios[BLOCK_IO_LIMIT_READ] = total_leak / 2) { read_leak =

Re: [Qemu-devel] [PATCH V3 for-1.6 5/5] block: Add throttling percentage metrics.

2013-07-26 Thread Benoît Canet
If I understand it, the percentage is recalculated every leak check. So it only reflects the instant io flow, instead of historical statistics? But I think for system admin purpose, it's good to know a longer range io activity character. Or do you think management tool should sample it? Yes I

Re: [Qemu-devel] [PATCH] Citrix PV Bus device

2013-07-26 Thread Paul Durrant
-Original Message- From: Gerd Hoffmann [mailto:kra...@redhat.com] Sent: 24 July 2013 11:20 To: Paul Durrant Cc: qemu-devel@nongnu.org; xen-de...@lists.xen.org Subject: Re: [Qemu-devel] [PATCH] Citrix PV Bus device On 07/02/13 16:03, Paul Durrant wrote: This patch introduces a

[Qemu-devel] [PATCH] uhci: egsm fix

2013-07-26 Thread Gerd Hoffmann
When the guest goes suspend the uhci controller while there are pending resume requests on the ports go signal global resume instantly. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/hcd-uhci.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/hw/usb/hcd-uhci.c

Re: [Qemu-devel] [PATCH v3] hcd-ohci: add dma error handling

2013-07-26 Thread Gerd Hoffmann
On 07/26/13 11:10, Alexey Kardashevskiy wrote: Current hcd-ohci does not handle DMA errors. However they may happen so here we introduce simple error handling. On such errors, a typical OHCI will stop operating, signal the guest about the error by sending UnrecoverableError Event, set itself

Re: [Qemu-devel] Cirrus VGA slow screen update, show blank screen last 13s or so for windows XP guest

2013-07-26 Thread Andreas Färber
Am 26.07.2013 08:41, schrieb Gonglei (Arei): -Original Message- From: Anthony Liguori [mailto:anth...@codemonkey.ws] Sent: Friday, July 26, 2013 11:21 AM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org; xen-de...@lists.xen.org; Hanweidong; Luonengjun; Huangweidong (Hardware) Subject:

Re: [Qemu-devel] [RFC 0/8] arm AioContext with its own timer stuff

2013-07-26 Thread Jan Kiszka
On 2013-07-25 20:53, Alex Bligh wrote: --On 25 July 2013 14:32:59 +0200 Jan Kiszka jan.kis...@siemens.com wrote: I would happily at a QEMUClock of each type to AioContext. They are after all pretty lightweight. What's the point of adding tones of QEMUClock instances? Considering

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.5.2 Stable released

2013-07-26 Thread Daniel P. Berrange
On Thu, Jul 25, 2013 at 04:44:43PM -0500, Michael Roth wrote: The QEMU v1.5.2 stable release is now available at: http://wiki.qemu.org/download/qemu-1.5.2.tar.bz2 This is release is solely to address a security issue (CVE-2013-2231) found in the QEMU Guest Agent on Windows. More details

Re: [Qemu-devel] [PATCH v3] hcd-ohci: add dma error handling

2013-07-26 Thread Benjamin Herrenschmidt
On Fri, 2013-07-26 at 11:58 +0200, Gerd Hoffmann wrote: On 07/26/13 11:10, Alexey Kardashevskiy wrote: Current hcd-ohci does not handle DMA errors. However they may happen so here we introduce simple error handling. On such errors, a typical OHCI will stop operating, signal the guest

[Qemu-devel] [PATCH v2] e1000: add interrupt mitigation support

2013-07-26 Thread Vincenzo Maffione
Hello, I tried to support cross-version migration using version_id and VMState subsections. I also disable MIT if the machine is pc-i440fx-1.5: Is that the correct way to do it? Thanks, Vincenzo Maffione From 4e692113753db8dea6cbcc7a729cfa81469a76ca Mon Sep 17 00:00:00 2001 From: Vincenzo

Re: [Qemu-devel] Cirrus VGA slow screen update, show blank screen last 13s or so for windows XP guest

2013-07-26 Thread Gerd Hoffmann
On 07/26/13 12:02, Andreas Färber wrote: Am 26.07.2013 08:41, schrieb Gonglei (Arei): -Original Message- From: Anthony Liguori [mailto:anth...@codemonkey.ws] Sent: Friday, July 26, 2013 11:21 AM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org; xen-de...@lists.xen.org; Hanweidong;

Re: [Qemu-devel] [PATCH v3] hcd-ohci: add dma error handling

2013-07-26 Thread Gerd Hoffmann
On 07/26/13 12:10, Benjamin Herrenschmidt wrote: On Fri, 2013-07-26 at 11:58 +0200, Gerd Hoffmann wrote: On 07/26/13 11:10, Alexey Kardashevskiy wrote: Current hcd-ohci does not handle DMA errors. However they may happen so here we introduce simple error handling. On such errors, a typical

Re: [Qemu-devel] [PATCH v4] spapr-vscsi: add task management

2013-07-26 Thread Alexey Kardashevskiy
On 07/26/2013 07:34 PM, Paolo Bonzini wrote: Il 26/07/2013 11:20, Alexey Kardashevskiy ha scritto: -return !fn; + +vscsi_send_rsp(s, req, resp, 0, 0); We're not there yet, but getting closer... Oh. Right. Sorry and thanks (ohci + ehci + vscsi at the same time and my mind melted :)

Re: [Qemu-devel] Cirrus VGA slow screen update, show blank screen last 13s or so for windows XP guest

2013-07-26 Thread Andreas Färber
Am 26.07.2013 12:19, schrieb Gerd Hoffmann: On 07/26/13 12:02, Andreas Färber wrote: Am 26.07.2013 08:41, schrieb Gonglei (Arei): -Original Message- From: Anthony Liguori [mailto:anth...@codemonkey.ws] Sent: Friday, July 26, 2013 11:21 AM To: Gonglei (Arei) Cc:

[Qemu-devel] [PATCH v4] hcd-ohci: add dma error handling

2013-07-26 Thread Alexey Kardashevskiy
Current hcd-ohci does not handle DMA errors. However they may happen so here we introduce simple error handling. On such errors, a typical OHCI will stop operating, signal the guest about the error by sending UnrecoverableError Event, set itself into error state and set Detected Parity Error in

Re: [Qemu-devel] [PATCH v4] hcd-ohci: add dma error handling

2013-07-26 Thread Gerd Hoffmann
Hi, This also adds ohci_stop() call to ohci_bus_start() to handle possible failure of qemu_new_timer_ns(). * ohci_stop renamed to ohci_die to describe the action better Except in the commit message ... Also scripts/checkpatch.pl complains: ERROR: return is not a function, parentheses are

[Qemu-devel] [PATCH v5] hcd-ohci: add dma error handling

2013-07-26 Thread Alexey Kardashevskiy
Current hcd-ohci does not handle DMA errors. However they may happen so here we introduce simple error handling. On such errors, a typical OHCI will stop operating, signal the guest about the error by sending UnrecoverableError Event, set itself into error state and set Detected Parity Error in

Re: [Qemu-devel] [PATCH v4] spapr-vscsi: add task management

2013-07-26 Thread Paolo Bonzini
Il 26/07/2013 12:25, Alexey Kardashevskiy ha scritto: On 07/26/2013 07:34 PM, Paolo Bonzini wrote: Il 26/07/2013 11:20, Alexey Kardashevskiy ha scritto: -return !fn; + +vscsi_send_rsp(s, req, resp, 0, 0); We're not there yet, but getting closer... Oh. Right. Sorry and thanks

Re: [Qemu-devel] [PATCH v5] hcd-ohci: add dma error handling

2013-07-26 Thread Gerd Hoffmann
On 07/26/13 12:52, Alexey Kardashevskiy wrote: Current hcd-ohci does not handle DMA errors. However they may happen so here we introduce simple error handling. On such errors, a typical OHCI will stop operating, signal the guest about the error by sending UnrecoverableError Event, set itself

Re: [Qemu-devel] [PATCH 2/9] block: vhdx - add header update capability.

2013-07-26 Thread Jeff Cody
On Fri, Jul 26, 2013 at 02:49:04PM +0800, Fam Zheng wrote: On Wed, 07/24 13:54, Jeff Cody wrote: This adds the ability to update the headers in a VHDX image, including generating a new MS-compatible GUID. As VHDX depends on uuid.h, VHDX is now a configurable build option. If VHDX

Re: [Qemu-devel] [PATCH v2 2/2] full introspection support for QMP

2013-07-26 Thread Eric Blake
On 07/26/2013 01:51 AM, Amos Kong wrote: +# Query QMP schema information +# +# Returns: list of @SchemaEntry. Returns an error if json string is invalid. If you don't take any arguments, then the returns an error statement is impossible. When we execute the full introspecting, we will

Re: [Qemu-devel] [PATCH v2] e1000: add interrupt mitigation support

2013-07-26 Thread Andreas Färber
Hi, Am 26.07.2013 12:14, schrieb Vincenzo Maffione: I tried to support cross-version migration using version_id and VMState subsections. The point of using a subsection is to avoid incrementing version_id AFAIU. I also disable MIT if the machine is pc-i440fx-1.5: Is that the correct way

Re: [Qemu-devel] [PATCH v3 00/14] qemu: generate acpi tables for the guest

2013-07-26 Thread Andreas Färber
Am 25.07.2013 18:19, schrieb Michael S. Tsirkin: On Thu, Jul 25, 2013 at 05:50:55PM +0200, Andreas Färber wrote: Am 24.07.2013 18:01, schrieb Michael S. Tsirkin: This code can also be found here: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git acpi Please review, and consider for 1.6.

Re: [Qemu-devel] [PATCH v3 00/14] qemu: generate acpi tables for the guest

2013-07-26 Thread Andreas Färber
Am 25.07.2013 19:18, schrieb Michael S. Tsirkin: On Thu, Jul 25, 2013 at 05:50:55PM +0200, Andreas Färber wrote: Am 24.07.2013 18:01, schrieb Michael S. Tsirkin: This code can also be found here: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.git acpi Please review, and consider for 1.6.

Re: [Qemu-devel] [Xen-devel] Cirrus VGA slow screen update, show blank screen last 13s or so for windows XP guest

2013-07-26 Thread Fabio Fantoni
Il 26/07/2013 08:41, Gonglei (Arei) ha scritto: -Original Message- From: Anthony Liguori [mailto:anth...@codemonkey.ws] Sent: Friday, July 26, 2013 11:21 AM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org; xen-de...@lists.xen.org; Hanweidong; Luonengjun; Huangweidong (Hardware) Subject:

Re: [Qemu-devel] [libvirt] [PATCH 4/7] qemu: Add monitor APIs to fetch CPUID data from QEMU

2013-07-26 Thread Andreas Färber
Am 25.07.2013 20:02, schrieb Eduardo Habkost: On Thu, Jul 25, 2013 at 04:09:18PM +0200, Andreas Färber wrote: Am 25.07.2013 16:00, schrieb Eduardo Habkost: libvirt needs a way to find out how exactly -machine foo-1.0 -cpu bar looks different from -machine foo-1.1 -cpu bar, Why? (What's the

Re: [Qemu-devel] [PATCH] kvm: Change prototype of kvm_update_guest_debug

2013-07-26 Thread Andreas Färber
Am 25.07.2013 20:50, schrieb Stefan Weil: Passing a CPUState pointer instead of a CPUArchState pointer eliminates the last target dependent data type in sysemu/kvm.h. It also simplifies the code. Signed-off-by: Stefan Weil s...@weilnetz.de --- With this patch (and a previous one which

[Qemu-devel] [Bug 1079080] Re: ARM instruction srs wrong behaviour

2013-07-26 Thread Peter Maydell
** Changed in: qemu Status: Confirmed = Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1079080 Title: ARM instruction srs wrong behaviour Status in QEMU: Fix Committed Bug

[Qemu-devel] [PATCH 4/9] qapi.py: Decent syntax error reporting

2013-07-26 Thread Markus Armbruster
Signed-off-by: Markus Armbruster arm...@redhat.com --- scripts/qapi.py | 29 +++-- tests/qapi-schema/test-qapi.py| 2 ++ tests/qapi-schema/unclosed-string.err | 2 +- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH 0/9] Our QAPI parser is a hack, replace it

2013-07-26 Thread Markus Armbruster
If you think I'm exaggerating, check out the list of issues in PATCH 3/9. Markus Armbruster (9): tests: QAPI schema parser tests tests: Use qapi-schema-test.json as schema parser test qapi.py: Restructure lexer and parser qapi.py: Decent syntax error reporting qapi.py: Reject invalid

[Qemu-devel] [PATCH 1/9] tests: QAPI schema parser tests

2013-07-26 Thread Markus Armbruster
The parser handles erroneous input badly. To be improved shortly. Signed-off-by: Markus Armbruster arm...@redhat.com --- configure | 2 +- tests/Makefile | 22 -- tests/qapi-schema/empty.exit

[Qemu-devel] [PATCH 7/9] qapi.py: Fix diagnosing non-objects at a schema's top-level

2013-07-26 Thread Markus Armbruster
Report syntax error instead of crashing. Signed-off-by: Markus Armbruster arm...@redhat.com --- scripts/qapi.py | 10 ++ tests/qapi-schema/non-objects.err | 2 +- tests/qapi-schema/quoted-structural-chars.err | 2 +- 3 files changed, 8

[Qemu-devel] [PATCH 6/9] qapi.py: Fix schema parser to check syntax systematically

2013-07-26 Thread Markus Armbruster
Fixes at least the following parser bugs: * accepts any token in place of a colon * treats comma as optional * crashes when closing braces or brackets are missing Signed-off-by: Markus Armbruster arm...@redhat.com --- scripts/qapi.py | 40

[Qemu-devel] [PATCH 5/9] qapi.py: Reject invalid characters in schema file

2013-07-26 Thread Markus Armbruster
Signed-off-by: Markus Armbruster arm...@redhat.com --- scripts/qapi.py | 2 ++ tests/qapi-schema/funny-char.err | 1 + tests/qapi-schema/funny-char.exit | 2 +- tests/qapi-schema/funny-char.out | 3 --- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH 8/9] qapi.py: Rename expr_eval to expr in parse_schema()

2013-07-26 Thread Markus Armbruster
Signed-off-by: Markus Armbruster arm...@redhat.com --- scripts/qapi.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/qapi.py b/scripts/qapi.py index 5677daa..1d856c9 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -153,14 +153,14 @@ def

[Qemu-devel] [Bug 739785] Re: qemu-i386 user mode can't fork (bash: fork: Invalid argument)

2013-07-26 Thread Peter Maydell
This is a long and confusing bug report, but recent commits to make NPTL non-optional (and in particular enable it for x86-64 and i386) which will be in QEMU 1.6 should mean that the originally reported problem (of bash failing with fork: Invalid argument) is fixed, and at least basic

[Qemu-devel] [PATCH 9/9] qapi.py: Permit comments starting anywhere on the line

2013-07-26 Thread Markus Armbruster
Signed-off-by: Markus Armbruster arm...@redhat.com --- scripts/qapi.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/qapi.py b/scripts/qapi.py index 1d856c9..da46fb9 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@ -53,13 +53,12 @@ class QAPISchema:

[Qemu-devel] [PATCH 2/9] tests: Use qapi-schema-test.json as schema parser test

2013-07-26 Thread Markus Armbruster
Signed-off-by: Markus Armbruster arm...@redhat.com --- qapi-schema-test.json | 53 - tests/Makefile | 8 ++--- tests/qapi-schema/qapi-schema-test.exit | 1 + tests/qapi-schema/qapi-schema-test.json | 53

[Qemu-devel] [PATCH 3/9] qapi.py: Restructure lexer and parser

2013-07-26 Thread Markus Armbruster
The parser has a rather unorthodox structure: Until EOF: Read a section: Generator function get_expr() yields one section after the other, as a string. An unindented, non-empty line that isn't a comment starts a new section. Lexing:

Re: [Qemu-devel] [PATCH qom-next for-1.6 7/8] pl110: QOM'ify pl110, pl110_versatile and pl111

2013-07-26 Thread Andreas Färber
Am 26.07.2013 04:58, schrieb Hu Tao: On Thu, Jul 25, 2013 at 01:16:51AM +0200, Andreas Färber wrote: Let pl110_versatile and pl111 inherit from pl110 and use PL110() cast; set their version index in an instance_init. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/display/pl110.c |

Re: [Qemu-devel] [PATCH] kvm: Change prototype of kvm_update_guest_debug

2013-07-26 Thread Paolo Bonzini
Il 26/07/2013 14:33, Andreas Färber ha scritto: Am 25.07.2013 20:50, schrieb Stefan Weil: Passing a CPUState pointer instead of a CPUArchState pointer eliminates the last target dependent data type in sysemu/kvm.h. It also simplifies the code. Signed-off-by: Stefan Weil s...@weilnetz.de

Re: [Qemu-devel] [PATCH 1/9] tests: QAPI schema parser tests

2013-07-26 Thread Eric Blake
On 07/26/2013 06:39 AM, Markus Armbruster wrote: The parser handles erroneous input badly. To be improved shortly. Signed-off-by: Markus Armbruster arm...@redhat.com --- Lots of proof on how bad it is! I'd also like to see a couple tests on trailing commas: { 'enum': 'Foo', [ 'bar' ], } {

[Qemu-devel] [Bug 788701] Re: qemu-user fails to run rpcgen (i386, x86_64)

2013-07-26 Thread Peter Maydell
This should be fixed in QEMU 1.6. ** Changed in: qemu Status: New = Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/788701 Title: qemu-user fails to run rpcgen (i386, x86_64)

[Qemu-devel] [Bug 840686] Re: No such list qemu-users

2013-07-26 Thread Peter Maydell
The list for users is qemu-discuss now: http://lists.nongnu.org/archive/html/qemu-discuss/ ** Changed in: qemu Status: New = Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/840686

Re: [Qemu-devel] [PATCH 10/16] dimm: add busy slot check and slot auto-allocation

2013-07-26 Thread Igor Mammedov
On Fri, 26 Jul 2013 11:26:16 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 26/07/2013 09:38, Igor Mammedov ha scritto: Perhaps denying memory add and suggesting node migration to a node with more memory would be right approach, otherwise user is bound to be hit by cross node penalty.

[Qemu-devel] Application PID on i386

2013-07-26 Thread Anderson Sartor
Hi all, I've been modyfing the QEMU source from Android SDK in order to trace a larger amount of data, I know this Android QEMU is already a modified version and it has additional code just for Android. However, if anyone have any idea how I can get the application PID for i386 architecture, I

[Qemu-devel] [Bug 501141] Re: qemu powerpc target crashes on hello world

2013-07-26 Thread Peter Maydell
qemu-ppc works OK for me, so it seems likely that this bug has been fixed at some point in the preceding three years. ** Changed in: qemu Status: New = Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [Bug 1075272] Re: socket type mapping wrong for mips app-level emulation

2013-07-26 Thread Peter Maydell
This should be fixed in QEMU 1.6. ** Changed in: qemu Status: New = Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1075272 Title: socket type mapping wrong for mips app-level

[Qemu-devel] [Bug 824716] Re: linux-user broken for targets with TARGET_ABI32 (i.e. qemu-sparc32plus)

2013-07-26 Thread Peter Maydell
The fix for this was actually committed way back in 2011... ** Changed in: qemu Status: New = Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/824716 Title: linux-user broken

[Qemu-devel] [Bug 720787] Re: Fails to compile on MacOS

2013-07-26 Thread Peter Maydell
These compile errors have all been fixed some time ago. ** Changed in: qemu Status: New = Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/720787 Title: Fails to compile on

[Qemu-devel] [Bug 726962] Re: darwin user i386 no such directory

2013-07-26 Thread Peter Maydell
This is fixed, in that darwin-user was removed some time ago... ** Changed in: qemu Status: New = Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/726962 Title: darwin user i386

Re: [Qemu-devel] [PATCH 05/18] docs: Document QAPI union types

2013-07-26 Thread Eric Blake
On 07/23/2013 07:03 AM, Kevin Wolf wrote: Signed-off-by: Kevin Wolf kw...@redhat.com --- docs/qapi-code-gen.txt | 58 +- 1 file changed, 53 insertions(+), 5 deletions(-) +=== Complex types === A complex type is a dictionary containing a

Re: [Qemu-devel] [PATCH v2] e1000: add interrupt mitigation support

2013-07-26 Thread Vincenzo Maffione
2013/7/26 Andreas Färber afaer...@suse.de: Hi, Am 26.07.2013 12:14, schrieb Vincenzo Maffione: I tried to support cross-version migration using version_id and VMState subsections. The point of using a subsection is to avoid incrementing version_id AFAIU. Consider a migration from an

[Qemu-devel] [Bug 769986] Re: Binaries installed via ppa:serge-hallyn/spice still are affected by bug 723871

2013-07-26 Thread Peter Maydell
I'm guessing this bug report is obsolete -- in any case the main upstream QEMU project is the wrong place to file bugs against packages from random PPAs. ** Changed in: qemu Status: New = Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is

  1   2   3   4   >