[Qemu-devel] [PATCH] pc: limit 64 bit hole to 2G by default

2013-07-24 Thread Michael S. Tsirkin
It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is 2G. Limit it to 2G for piix and q35 by default, add properties to let management override the hole size. Examples: -global i440FX-pcihost.pci_hole64_size=137438953472 -global q35-pcihost.pci_hole64_size=137438953472

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

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 03:28, liu ping fan ha scritto: On Tue, Jul 23, 2013 at 6:30 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 04:53, liu ping fan ha scritto: The scenior I can figure out is if adopting timeout of poll, then when changing the deadline, we need to invoke poll, and set

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 02:53, Libaiqing ha scritto: Hi paolo, I test window guest with ide device with the following config,trim with ide drive failed. 1 The host fs is ext4 with discard option: /dev/sdb1 on /home/sdb type ext4 (rw,relatime,discard,data=ordered) 2

Re: [Qemu-devel] [PATCH] pc: limit 64 bit hole to 2G by default

2013-07-24 Thread Andreas Färber
Hi, Am 24.07.2013 08:01, schrieb Michael S. Tsirkin: It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is 2G. Limit it to 2G for piix and q35 by default, add properties to let management override the hole size. Examples: -global

Re: [Qemu-devel] [PATCH] pc: limit 64 bit hole to 2G by default

2013-07-24 Thread Gerd Hoffmann
On 07/24/13 08:01, Michael S. Tsirkin wrote: It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is 2G. Ah, *that* is the reason for winxp crashing with a 64bit hole. Current seabios uses a slightly different approach: the 64bit hole is present only in case it is

[Qemu-devel] [RFC] [PATCH] linux-user: implement m68k atomic syscalls

2013-07-24 Thread riku . voipio
From: Riku Voipio riku.voi...@linaro.org With nptl enabled, atomic_cmpxchg_32 and atomic_barrier system calls are needed. This patch enabled really dummy versions of the system calls, modeled after the m68k kernel code. With this patch I am able to execute m68k binaries with qemu linux-user

Re: [Qemu-devel] [sheepdog] [PATCH 00/11] sheepdog: reconnect server after connection failure

2013-07-24 Thread MORITA Kazutaka
At Tue, 23 Jul 2013 13:08:04 +0200, Luca Lazzeroni wrote: Is this series of patches applyable to sheepdog-stable-0.6 band qemu 1.5.0 ? I've seen they use async i/o... This series is against upstream qemu. I've not tried it with qemu 1.5.x, but probably it can be applied without a big

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

2013-07-24 Thread Alex Bligh
--On 24 July 2013 08:42:26 +0200 Paolo Bonzini pbonz...@redhat.com wrote: With ppoll, is this true or just hearsay? (Without ppoll, indeed setitimer has 1 us resolution while poll has 1 ms; too bad that select has other problems, because select has also 1 us resolution). Most 'reasonable'

Re: [Qemu-devel] [PATCH v2 01/11] block: replace in_use with refcnt_soft and refcnt_hard

2013-07-24 Thread Stefan Hajnoczi
On Wed, Jul 24, 2013 at 08:39:53AM +0800, Fam Zheng wrote: On Tue, 07/23 15:34, Stefan Hajnoczi wrote: On Tue, Jul 23, 2013 at 06:32:25PM +0800, Fam Zheng wrote: On Tue, 07/23 11:36, Stefan Hajnoczi wrote: On Wed, Jul 17, 2013 at 05:42:06PM +0800, Fam Zheng wrote: Introduce

Re: [Qemu-devel] [sheepdog] [PATCH 03/11] qemu-sockets: make wait_for_connect be invoked in qemu_aio_wait

2013-07-24 Thread MORITA Kazutaka
At Tue, 23 Jul 2013 13:36:08 +0200, Paolo Bonzini wrote: Il 23/07/2013 10:30, MORITA Kazutaka ha scritto: This allows us to use inet_nonblocking_connect() and unix_nonblocking_connect() in block drivers. qemu-ga needs to link block-obj to resolve dependencies of

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

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 09:31, Alex Bligh ha scritto: --On 24 July 2013 08:42:26 +0200 Paolo Bonzini pbonz...@redhat.com wrote: With ppoll, is this true or just hearsay? (Without ppoll, indeed setitimer has 1 us resolution while poll has 1 ms; too bad that select has other problems, because

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

2013-07-24 Thread liu ping fan
On Wed, Jul 24, 2013 at 2:42 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 24/07/2013 03:28, liu ping fan ha scritto: On Tue, Jul 23, 2013 at 6:30 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 04:53, liu ping fan ha scritto: The scenior I can figure out is if adopting timeout

Re: [Qemu-devel] [PATCH v2 01/11] block: replace in_use with refcnt_soft and refcnt_hard

2013-07-24 Thread Fam Zheng
On Wed, 07/24 09:35, Stefan Hajnoczi wrote: On Wed, Jul 24, 2013 at 08:39:53AM +0800, Fam Zheng wrote: On Tue, 07/23 15:34, Stefan Hajnoczi wrote: On Tue, Jul 23, 2013 at 06:32:25PM +0800, Fam Zheng wrote: On Tue, 07/23 11:36, Stefan Hajnoczi wrote: On Wed, Jul 17, 2013 at

[Qemu-devel] [PATCH qom-next for-1.6 04/29] integratorcp: QOM'ify icp_pic_state

2013-07-24 Thread Andreas Färber
Introduce type constant and use QOM cast. Fix indentation. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/integratorcp.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/hw/arm/integratorcp.c b/hw/arm/integratorcp.c index

[Qemu-devel] [PATCH qom-next for-1.6 01/29] armv7m: QOM'ify BitBandState

2013-07-24 Thread Andreas Färber
Introduce TYPE_* constant and use QOM cast. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/armv7m.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c index 5b22e84..82d36fb 100644 --- a/hw/arm/armv7m.c +++

[Qemu-devel] [PATCH qom-next for-1.6 00/29] arm: QOM cast cleanups

2013-07-24 Thread Andreas Färber
Hello Peter, This series eliminates FROM_SYSBUS() in hw/arm/. Variable naming has been prepared for QOM realize and to avoid -qdev access. Post-1.6 many of the devices should be moved into the appropriate hw/ sub-directory from their board file. Regards, Andreas Cc: Peter Maydell

[Qemu-devel] [PATCH qom-next for-1.6 05/29] musicpal: QOM'ify mv88w8618_eth_state

2013-07-24 Thread Andreas Färber
Introduce type constant and use QOM casts. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index b06d442..293ab26 100644 --- a/hw/arm/musicpal.c +++

[Qemu-devel] [PATCH qom-next for-1.6 03/29] integratorcp: QOM'ify integratorcm_state

2013-07-24 Thread Andreas Färber
Rename to IntegratorCMState, introduce type constant and use QOM cast. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/integratorcp.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/hw/arm/integratorcp.c b/hw/arm/integratorcp.c

[Qemu-devel] [PATCH qom-next for-1.6 07/29] musicpal: Use TYPE_MV88W8618_ETH

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index e7efed9..e2d9e84 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -1641,7 +1641,7 @@ static void

[Qemu-devel] [PATCH qom-next for-1.6 17/29] pxa2xx_pic: QOM'ify PXA2xxPICState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/pxa2xx_pic.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/hw/arm/pxa2xx_pic.c b/hw/arm/pxa2xx_pic.c index 8929b6d..46d337c 100644 --- a/hw/arm/pxa2xx_pic.c +++ b/hw/arm/pxa2xx_pic.c @@ -31,8

[Qemu-devel] [PATCH qom-next for-1.6 09/29] musicpal: QOM'ify mv88w8618_pit_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index d35b6cd..54ead12 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -814,8 +814,15 @@

[Qemu-devel] [PATCH qom-next for-1.6 06/29] musicpal: QOM'ify musicpal_lcd_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index 293ab26..e7efed9 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -461,8 +461,15 @@ static

[Qemu-devel] [PATCH qom-next for-1.6 11/29] musicpal: QOM'ify musicpal_gpio_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index 8c1d200..a8beae6 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -1181,8

[Qemu-devel] [PATCH qom-next for-1.6 26/29] strongarm: QOM'ify StrongARMPPCInfo

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/strongarm.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index efb56b3..421ac54 100644 --- a/hw/arm/strongarm.c +++ b/hw/arm/strongarm.c @@ -706,9

[Qemu-devel] [PATCH qom-next for-1.6 08/29] musicpal: QOM'ify mv88w8618_pic_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 23 ++- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index e2d9e84..d35b6cd 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -675,9 +675,15

[Qemu-devel] [PATCH qom-next for-1.6 13/29] pxa2xx: QOM'ify PXA2xxSSPState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/pxa2xx.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/hw/arm/pxa2xx.c b/hw/arm/pxa2xx.c index 3c520d7..babe22e 100644 --- a/hw/arm/pxa2xx.c +++ b/hw/arm/pxa2xx.c @@ -457,9 +457,16 @@

[Qemu-devel] [PATCH qom-next for-1.6 10/29] musicpal: QOM'ify mv88w8618_flashcfg

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index 54ead12..8c1d200 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -980,8 +980,15 @@ static

[Qemu-devel] [PATCH qom-next for-1.6 14/29] pxa2xx: QOM'ify PXA2xxRTCState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/pxa2xx.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/hw/arm/pxa2xx.c b/hw/arm/pxa2xx.c index babe22e..6548338 100644 --- a/hw/arm/pxa2xx.c +++ b/hw/arm/pxa2xx.c @@ -798,8 +798,15 @@ static int

[Qemu-devel] [PATCH qom-next for-1.6 24/29] strongarm: QOM'ify StrongARMRTCState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/strongarm.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index 457f9c7..78211a0 100644 --- a/hw/arm/strongarm.c +++ b/hw/arm/strongarm.c @@ -242,8 +242,13 @@

[Qemu-devel] [PATCH qom-next for-1.6 15/29] pxa2xx: QOM'ify PXA2xxI2CState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/pxa2xx.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/hw/arm/pxa2xx.c b/hw/arm/pxa2xx.c index 6548338..ab145ee 100644 --- a/hw/arm/pxa2xx.c +++ b/hw/arm/pxa2xx.c @@ -1224,8 +1224,15 @@

[Qemu-devel] [PATCH qom-next for-1.6 12/29] musicpal: QOM'ify musicpal_key_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index a8beae6..6e8eb5d 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -1434,8 +1434,15

[Qemu-devel] [PATCH qom-next for-1.6 20/29] stellaris: QOM'ify gptm_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/stellaris.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index a2b6b17..1c69bcf 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -43,8 +43,13 @@

[Qemu-devel] [PATCH qom-next for-1.6 16/29] pxa2xx_gpio: QOM'ify PXA2xxGPIOInfo

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/pxa2xx_gpio.c | 35 +-- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/hw/arm/pxa2xx_gpio.c b/hw/arm/pxa2xx_gpio.c index f8c3ee0..ca77f56 100644 --- a/hw/arm/pxa2xx_gpio.c +++

[Qemu-devel] [PATCH qom-next for-1.6 28/29] strongarm: QOM'ify StrongARMSSPState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/strongarm.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index 61c2b22..82a9492 100644 --- a/hw/arm/strongarm.c +++ b/hw/arm/strongarm.c @@

[Qemu-devel] [PATCH v2 0/9] sheepdog: reconnect server after connection failure

2013-07-24 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. v2: - Dropped nonblocking connect patches

[Qemu-devel] [PATCH qom-next for-1.6 27/29] strongarm: QOM'ify StrongARMUARTState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/strongarm.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index 421ac54..61c2b22 100644 --- a/hw/arm/strongarm.c +++ b/hw/arm/strongarm.c @@ -908,8 +908,13 @@

[Qemu-devel] [PATCH v2 6/9] coroutine: add co_aio_sleep_ns() to allow sleep in block drivers

2013-07-24 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

Re: [Qemu-devel] Question on aio_poll

2013-07-24 Thread Stefan Hajnoczi
On Tue, Jul 23, 2013 at 03:46:23PM +0100, Alex Bligh wrote: --On 23 July 2013 14:18:25 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: Unfortunately there is an issue with the series which I haven't had time to look into yet. I don't remember the details but I think make check is failing.

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-24 Thread Libaiqing
Hi paolo, With -M pc,trim works well in windows guest with ide device and ahci bus. About the filter driver,you mean do something in windows virtio-scsi driver,let it send unmap command to qemu? Thanks baiqing. -Original Message- From: Paolo Bonzini

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

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 09:43, liu ping fan ha scritto: Paid some time to dig the kernel code, and find out that the resolution lost by timeout of poll/select..etc is cause by the timeout is a slack region. See code in do_poll() if (!poll_schedule_timeout(wait, TASK_INTERRUPTIBLE, to, slack))

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

2013-07-24 Thread Alex Bligh
Paolo, --On 24 July 2013 09:43:28 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Most 'reasonable' POSIX compliant operating systems have ppoll Really? I could find no manpages for any of Solaris and *BSD. OK I shall (re)research that then! I suppose select() / pselect() is an alternative

[Qemu-devel] [PATCH qom-next for-1.6 23/29] strongarm: QOM'ify StrongARMPICState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/strongarm.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index feaaf45..457f9c7 100644 --- a/hw/arm/strongarm.c +++ b/hw/arm/strongarm.c @@ -70,8

Re: [Qemu-devel] [PATCH qom-next for-1.6 07/29] musicpal: Use TYPE_MV88W8618_ETH

2013-07-24 Thread Andreas Färber
Am 24.07.2013 09:48, schrieb Andreas Färber: Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/musicpal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Erm, this was supposed to be squashed, obviously. ;) Fixed. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409

[Qemu-devel] [PATCH v2 4/9] sheepdog: handle vdi objects in resend_aio_req

2013-07-24 Thread MORITA Kazutaka
The current resend_aio_req() doesn't work when the request is against vdi objects. This fixes the problem. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [PATCH v2 3/9] sheepdog: check return values of qemu_co_recv/send correctly

2013-07-24 Thread MORITA Kazutaka
qemu_co_recv/send return shorter length on error. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index 6a41ad9..bca5730 100644 --- a/block/sheepdog.c

[Qemu-devel] [PATCH qom-next for-1.6 21/29] stellaris: QOM'ify stellaris_i2c_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/stellaris.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index 1c69bcf..15093ba 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -684,8

[Qemu-devel] [PATCH qom-next for-1.6 29/29] versatilepb: QOM'ify vpb_sic_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/versatilepb.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/hw/arm/versatilepb.c b/hw/arm/versatilepb.c index 725f60f..b48d84c 100644 --- a/hw/arm/versatilepb.c +++

[Qemu-devel] [PATCH v2 1/9] ignore SIGPIPE in qemu-img and qemu-io

2013-07-24 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 v2 9/9] sheepdog: cancel aio requests if possible

2013-07-24 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. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 70

[Qemu-devel] [PATCH v2 7/9] sheepdog: try to reconnect to sheepdog after network error

2013-07-24 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. Signed-off-by: MORITA Kazutaka

[Qemu-devel] [PATCH v2 2/9] iov: handle EOF in iov_send_recv

2013-07-24 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

Re: [Qemu-devel] Question on aio_poll

2013-07-24 Thread Alex Bligh
Stefan, --On 24 July 2013 09:54:39 +0200 Stefan Hajnoczi stefa...@gmail.com wrote: I left this how it was in the end (I think), and got round it by creating a bogus pipe for the test to listen to. Doing that requires the changes in my patch series, otherwise you break aio_poll() loops that

[Qemu-devel] [PATCH v2 8/9] sheepdog: make add_aio_request and send_aioreq void functions

2013-07-24 Thread MORITA Kazutaka
These functions no longer return errors. We can make them void functions and simplify the codes. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 66 +++- 1 file changed, 17 insertions(+), 49 deletions(-)

[Qemu-devel] [PATCH v2 5/9] sheepdog: reload inode outside of resend_aioreq

2013-07-24 Thread MORITA Kazutaka
This prepares for using resend_aioreq() after reconnecting to the sheepdog server. Signed-off-by: MORITA Kazutaka morita.kazut...@lab.ntt.co.jp --- block/sheepdog.c | 33 +++-- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/block/sheepdog.c

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

2013-07-24 Thread Alex Bligh
Paolo, --On 24 July 2013 09:54:57 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Alex, can you add it to your series? (Note that you must set a timer slack of 1, because 0 is interpreted as default). Sure, will do. I'm guessing I'll have to look for that inside configure as well. -- Alex

Re: [Qemu-devel] [PATCH v2 01/11] target-ppc: Convert ppc cpu savevm to VMStateDescription

2013-07-24 Thread Alexey Kardashevskiy
On 07/19/2013 05:32 AM, Anthony Liguori wrote: From: Alexey Kardashevskiy a...@ozlabs.ru The savevm code for the powerpc cpu emulation is currently based around the old register_savevm() rather than register_vmstate() method. It's also rather broken, missing some important state on some CPU

[Qemu-devel] [PATCH qom-next for-1.6 19/29] spitz: QOM'ify SpitzKeyboardState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/spitz.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/hw/arm/spitz.c b/hw/arm/spitz.c index 0bf5c5c..70f23b3 100644 --- a/hw/arm/spitz.c +++ b/hw/arm/spitz.c @@ -215,8 +215,13 @@ static const int

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

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 10:01, Alex Bligh ha scritto: Part of it should be fixed by os_setup_early_signal_handling. This is corroborated by the fact that without os_setup_early_signal_handling Wine always works, and Windows breaks. This: http://www.windowstimestamp.com/description suggests that

Re: [Qemu-devel] trim in windows guest witch virtio

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 09:52, Libaiqing ha scritto: Hi paolo, With -M pc,trim works well in windows guest with ide device and ahci bus. About the filter driver,you mean do something in windows virtio-scsi driver,let it send unmap command to qemu? Yes, it must trap the

Re: [Qemu-devel] [PATCH v2 01/11] target-ppc: Convert ppc cpu savevm to VMStateDescription

2013-07-24 Thread Andreas Färber
Am 24.07.2013 10:16, schrieb Alexey Kardashevskiy: On 07/19/2013 05:32 AM, Anthony Liguori wrote: diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index 79bfcd8..09ea944 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -8449,6 +8449,8 @@

[Qemu-devel] [PATCH qom-next for-1.6 18/29] spitz: QOM'ify SLNANDState

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/spitz.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/hw/arm/spitz.c b/hw/arm/spitz.c index 593b75e..0bf5c5c 100644 --- a/hw/arm/spitz.c +++ b/hw/arm/spitz.c @@ -50,8 +50,12 @@ #define

[Qemu-devel] [PATCH qom-next for-1.6 02/29] highbank: QOM'ify HighbankRegsState

2013-07-24 Thread Andreas Färber
Add type constant and use QOM casts. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/highbank.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/hw/arm/highbank.c b/hw/arm/highbank.c index be264d3..35d5511 100644 --- a/hw/arm/highbank.c +++

Re: [Qemu-devel] [sheepdog] [PATCH v2 0/9] sheepdog: reconnect server after connection failure

2013-07-24 Thread Liu Yuan
On Wed, Jul 24, 2013 at 04:56:24PM +0900, MORITA Kazutaka wrote: 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

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

2013-07-24 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

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

2013-07-24 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] [PATCH v2 00/11] pseries: migration and QOM support

2013-07-24 Thread Andreas Färber
Am 23.07.2013 16:38, schrieb Anthony Liguori: Anthony Liguori aligu...@us.ibm.com writes: This series is based on Alexey's series: spapr: migration, pci, msi, power8 Which in turn was based on work by David Gibson. I've removed the bits not related to migration and made the following

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

2013-07-24 Thread liu ping fan
[...] http://social.msdn.microsoft.com/Forums/vstudio/en-US/e8a7cb1e-9edd-4ee3-982e-f66b7bf6ae44/improve-accuracy-waitforsingleobject suggest that WaitFor{Single,Multiple}Objects can have pretty appalling latency anyway (100ms!), and there's no evidence that's limited by making one of the FDs

[Qemu-devel] [PATCH qom-next for-1.6 0/4] audio: QOM cast cleanups

2013-07-24 Thread Andreas Färber
Hello, This series eliminates FROM_SYSBUS() in hw/audio/. Regards, Andreas Cc: Hu Tao hu...@cn.fujitsu.com Andreas Färber (4): cs4231: QOM'ify audio/marvell_88w8618: QOM'ify milkymist-ac97: QOM'ify pl041: QOM'ify hw/audio/cs4231.c | 15 ++-

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

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/cs4231.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/audio/cs4231.c b/hw/audio/cs4231.c index fabe9e6..d19195a 100644 --- a/hw/audio/cs4231.c +++ b/hw/audio/cs4231.c @@ -33,8 +33,13 @@ #define

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

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/marvell_88w8618.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/hw/audio/marvell_88w8618.c b/hw/audio/marvell_88w8618.c index b40ea43..97194ce 100644 --- a/hw/audio/marvell_88w8618.c +++

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

2013-07-24 Thread Igor Mammedov
On Tue, 23 Jul 2013 19:09:26 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 18:23, Igor Mammedov ha scritto: - if slot property is not specified on -device/device_add command, treat default value as request for assigning DimmDevice to the first free slot. Even with -m

[Qemu-devel] [PATCH qom-next for-1.6 22/29] stellaris: QOM'ify stellaris_adc_state

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/stellaris.c | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/hw/arm/stellaris.c b/hw/arm/stellaris.c index 15093ba..27205d0 100644 --- a/hw/arm/stellaris.c +++ b/hw/arm/stellaris.c @@ -896,9

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

2013-07-24 Thread Alex Bligh
--On 24 July 2013 09:01:22 +0100 Alex Bligh a...@alex.org.uk wrote: Most 'reasonable' POSIX compliant operating systems have ppoll Really? I could find no manpages for any of Solaris and *BSD. OK I shall (re)research that then! I suppose select() / pselect() is an alternative when there

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

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/milkymist-ac97.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/hw/audio/milkymist-ac97.c b/hw/audio/milkymist-ac97.c index 133de4e..9c0f7a0 100644 --- a/hw/audio/milkymist-ac97.c +++

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

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/audio/pl041.c | 45 + 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/hw/audio/pl041.c b/hw/audio/pl041.c index 7d331b9..4d7a329 100644 --- a/hw/audio/pl041.c +++ b/hw/audio/pl041.c

[Qemu-devel] [PATCH qom-next for-1.6 25/29] strongarm: QOM'ify StrongARMGPIOInfo

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/arm/strongarm.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c index 78211a0..efb56b3 100644 --- a/hw/arm/strongarm.c +++ b/hw/arm/strongarm.c @@ -464,6

Re: [Qemu-devel] [PATCH 03/16] vl: convert -m to qemu_opts_parse()

2013-07-24 Thread Igor Mammedov
On Tue, 23 Jul 2013 19:11:31 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 18:22, Igor Mammedov ha scritto: Signed-off-by: Igor Mammedov imamm...@redhat.com --- qemu-options.hx |9 +++-- vl.c| 53

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

2013-07-24 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- hw/block/onenand.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/hw/block/onenand.c b/hw/block/onenand.c index 2776f64..aae9ee7 100644 --- a/hw/block/onenand.c +++ b/hw/block/onenand.c @@

Re: [Qemu-devel] [PATCH 03/16] vl: convert -m to qemu_opts_parse()

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 10:40, Igor Mammedov ha scritto: On Tue, 23 Jul 2013 19:11:31 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 18:22, Igor Mammedov ha scritto: Signed-off-by: Igor Mammedov imamm...@redhat.com --- qemu-options.hx |9 +++-- vl.c| 53

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

2013-07-24 Thread Benjamin Herrenschmidt
On Wed, 2013-07-24 at 18:28 +1000, Alexey Kardashevskiy wrote: 1. if a physical device once reported UnrecoverableError, what is it expected to be able to do after that? Should ohci_hcd module reloading bring it back to life? With this patch, OHCI dies till reboot (but at least it does not

Re: [Qemu-devel] [sheepdog] [PATCH v2 0/9] sheepdog: reconnect server after connection failure

2013-07-24 Thread MORITA Kazutaka
At Wed, 24 Jul 2013 16:28:30 +0800, Liu Yuan wrote: On Wed, Jul 24, 2013 at 04:56:24PM +0900, MORITA Kazutaka wrote: 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

Re: [Qemu-devel] [PATCH 03/16] vl: convert -m to qemu_opts_parse()

2013-07-24 Thread Igor Mammedov
On Wed, 24 Jul 2013 11:04:14 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 24/07/2013 10:40, Igor Mammedov ha scritto: On Tue, 23 Jul 2013 19:11:31 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 18:22, Igor Mammedov ha scritto: Signed-off-by: Igor Mammedov

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

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 10:36, Igor Mammedov ha scritto: On Tue, 23 Jul 2013 19:09:26 +0200 Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 18:23, Igor Mammedov ha scritto: - if slot property is not specified on -device/device_add command, treat default value as request for assigning

Re: [Qemu-devel] [PATCH] pc: limit 64 bit hole to 2G by default

2013-07-24 Thread Michael S. Tsirkin
On Wed, Jul 24, 2013 at 09:01:51AM +0200, Gerd Hoffmann wrote: On 07/24/13 08:01, Michael S. Tsirkin wrote: It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is 2G. Ah, *that* is the reason for winxp crashing with a 64bit hole. Current seabios uses a slightly

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

2013-07-24 Thread Alexey Kardashevskiy
On 07/24/2013 07:05 PM, Benjamin Herrenschmidt wrote: On Wed, 2013-07-24 at 18:28 +1000, Alexey Kardashevskiy wrote: 1. if a physical device once reported UnrecoverableError, what is it expected to be able to do after that? Should ohci_hcd module reloading bring it back to life? With this

Re: [Qemu-devel] [PATCH 00/16 RFC v6] ACPI memory hotplug

2013-07-24 Thread Hu Tao
v6 doesn't work here, things are going fine until online hotplugged memory in guest. steps: 1. qemu cmd: ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -m 512,maxmem=2G,slots=1 \ -hda /mnt/data/libvirt-images/hut-rhel6.3.img -L ../pc-bios-memhp/ (bios is from MST's acpi tree) 2.

Re: [Qemu-devel] VM can not boot after commit 235e898

2013-07-24 Thread Alexander Graf
On 05.06.2013, at 04:44, Dunrong Huang wrote: On Wed, Jun 5, 2013 at 1:03 AM, Jordan Justen jljus...@gmail.com wrote: On Tue, Jun 4, 2013 at 1:26 AM, Dunrong Huang riegama...@gmail.com wrote: On Tue, Jun 4, 2013 at 3:51 PM, Gleb Natapov g...@redhat.com wrote: On Tue, Jun 04, 2013 at

Re: [Qemu-devel] [PATCH 00/16 RFC v6] ACPI memory hotplug

2013-07-24 Thread Igor Mammedov
On Wed, 24 Jul 2013 17:52:50 +0800 Hu Tao hu...@cn.fujitsu.com wrote: v6 doesn't work here, things are going fine until online hotplugged memory in guest. steps: 1. qemu cmd: ./x86_64-softmmu/qemu-system-x86_64 -enable-kvm -m 512,maxmem=2G,slots=1 \ -hda

Re: [Qemu-devel] [PATCH] pc: limit 64 bit hole to 2G by default

2013-07-24 Thread Igor Mammedov
On Wed, 24 Jul 2013 12:51:16 +0300 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jul 24, 2013 at 09:01:51AM +0200, Gerd Hoffmann wrote: On 07/24/13 08:01, Michael S. Tsirkin wrote: It turns out that some 32 bit windows guests crash if 64 bit PCI hole size is 2G. Ah, *that* is

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

2013-07-24 Thread Gerd Hoffmann
On 07/02/13 16:03, Paul Durrant wrote: This patch introduces a new PCI device which will act as the binding point for Citrix branded PV drivers for Xen. The intention is that Citrix Windows PV drivers will be available on Windows Update and thus using the existing Xen platform PCI device as an

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

2013-07-24 Thread Kevin Wolf
Am 23.07.2013 um 00:09 hat Ian Main geschrieben: This patch adds sync-modes to the drive-backup interface and implements the FULL, NONE and TOP modes of synchronization. FULL performs as before copying the entire contents of the drive while preserving the point-in-time using CoW. NONE only

Re: [Qemu-devel] [PATCH 00/16 RFC v6] ACPI memory hotplug

2013-07-24 Thread Vasilis Liaskovitis
On Wed, Jul 24, 2013 at 12:02:46PM +0200, Igor Mammedov wrote: On Wed, 24 Jul 2013 17:52:50 +0800 Hu Tao hu...@cn.fujitsu.com wrote: v6 doesn't work here, things are going fine until online hotplugged memory in guest. steps: 1. qemu cmd: ./x86_64-softmmu/qemu-system-x86_64

Re: [Qemu-devel] [PATCH V6 2/3] Add tests for sync modes 'TOP' and 'NONE'

2013-07-24 Thread Kevin Wolf
Am 23.07.2013 um 00:09 hat Ian Main geschrieben: This patch adds tests for sync modes top and none. Also added are tests for invalid and missing formats. Signed-off-by: Ian Main im...@redhat.com --- tests/qemu-iotests/055| 108 +-

Re: [Qemu-devel] [PATCH V6 3/3] Add backing drive while performing backup.

2013-07-24 Thread Kevin Wolf
Am 23.07.2013 um 00:09 hat Ian Main geschrieben: This patch adds the original source drive as a backing drive to our target image so that the target image will appear complete during backup. This is especially useful for SYNC_MODE_NONE as it allows export via NBD to have a complete

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

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 10:37, Alex Bligh ha scritto: --On 24 July 2013 09:01:22 +0100 Alex Bligh a...@alex.org.uk wrote: Most 'reasonable' POSIX compliant operating systems have ppoll Really? I could find no manpages for any of Solaris and *BSD. OK I shall (re)research that then! I suppose

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

2013-07-24 Thread Igor Mammedov
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 Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 18:23, Igor Mammedov ha scritto: - if slot property is not specified on

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

2013-07-24 Thread Paolo Bonzini
Il 24/07/2013 10:29, Alexey Kardashevskiy ha scritto: 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

[Qemu-devel] qemu git (f03d07d46) / e100 / sending large packets causes SIGABRT

2013-07-24 Thread Oleksii Shevchuk
1. qemu-kvm -sdl -nodefaults -name NP1-C1 \ -uuid b71057e9-5705-420b-a780-52339afa6ed9\ -boot c \ -hda np1UD.disk \ -hdb

Re: [Qemu-devel] [Qemu-trivial] [PULL trivial 0/5] trivial patches for 2013-07-19

2013-07-24 Thread Ed Maste
On 19 July 2013 05:11, Michael Tokarev m...@tls.msk.ru wrote: This is another trivial-patches pull request. This time we have just 5 patches accumulated in two (!) weeks period. Please consider apply. ... Michael Tokarev (2): slirp: remove mbuf(m_hdr,m_dat) indirection Any idea when

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

2013-07-24 Thread Paolo Bonzini
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 Paolo Bonzini pbonz...@redhat.com wrote: Il 23/07/2013 18:23, Igor Mammedov ha

  1   2   3   >