[Qemu-devel] [PATCH 15/18] slirp: Reindent after refactoring

2015-07-28 Thread Samuel Thibault
No code change. Signed-off-by: Guillaume Subiron Signed-off-by: Samuel Thibault --- slirp/slirp.h | 3 +- slirp/tcp_input.c | 95 +++--- slirp/tcp_output.c | 29 - slirp/tcp_subr.c | 50 ++-- 4 file

[Qemu-devel] [PATCH 13/18] slirp: Factorizing tcpiphdr structure with an union

2015-07-28 Thread Samuel Thibault
This patch factorizes the tcpiphdr structure to put the IPv4 fields in an union, for addition of version 6 in further patch. Using some macros, retrocompatibility of the existing code is assured. This patch also fixes the SLIRP_MSIZE and margin computation in various functions, and makes them comp

[Qemu-devel] [PATCH 14/18] slirp: Generalizing and neutralizing various TCP functions before adding IPv6 stuff

2015-07-28 Thread Samuel Thibault
Basically, this patch adds some switch in various TCP functions to prepare them for the IPv6 case. To have something to "switch" in tcp_input() and tcp_respond(), a new argument is used to give them the sa_family of the addresses they are working on. Signed-off-by: Guillaume Subiron --- slirp/i

[Qemu-devel] [PATCH 11/18] slirp: Adding ICMPv6 error sending

2015-07-28 Thread Samuel Thibault
Disambiguation : icmp_error is renamed into icmp_send_error, since it doesn't manage errors, but only sends ICMP Error messages. Adding icmp6_send_error to send ICMPv6 Error messages. This function is simpler than the v4 version. Adding some calls in various functions to send ICMP errors, when a r

[Qemu-devel] [PATCH 10/18] slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration

2015-07-28 Thread Samuel Thibault
This patch adds the functions needed to handle IPv6 packets. ICMPv6 and NDP headers are implemented. Slirp is now able to send NDP Router or Neighbor Advertisement when it receives Router or Neighbor Solicitation. Using a 64bit-sized IPv6 prefix, the guest is now able to perform stateless autoconf

Re: [Qemu-devel] [PATCH RFC v2 47/47] qapi-introspect: Hide type names

2015-07-28 Thread Eric Blake
On 07/01/2015 02:22 PM, Markus Armbruster wrote: > To eliminate the temptation for clients to look up types by name > (which are not ABI), replace all type names by meaningless strings. > > Reduces output of query-schema by 9 out of 80KiB. Among other things, it replaced all instances of 'str' wi

Re: [Qemu-devel] [RFC PATCH qemu 0/4] vfio: SPAPR IOMMU v2 (memory preregistration support)

2015-07-28 Thread Alexey Kardashevskiy
Oh, just noticed, this is missing "v4" in the subject line. On 07/20/2015 05:46 PM, Alexey Kardashevskiy wrote: Yet another try, reworked the whole patchset. Here are few patches to prepare an existing listener for handling memory preregistration for SPAPR guests running on POWER8. This used

Re: [Qemu-devel] [PATCH v2 for-2.5] rcu: Allow calling rcu_(un)register_thread() during synchronize_rcu()

2015-07-28 Thread Wen Congyang
On 07/29/2015 12:14 AM, Paolo Bonzini wrote: > > > On 28/07/2015 15:29, Wen Congyang wrote: >>> >>> If you call it just once, you have the same problem as before. In fact, >>> it's worse because instead of having an overflow every 2^31 periods, you >>> have one every 2 periods. Instead, by

[Qemu-devel] [PATCH] sheepdog: fix overlapping metadata update

2015-07-28 Thread Liu Yuan
From: Liu Yuan Current sheepdog driver use a range update_inode(min_idx, max_idx) for batching the updates. But there is subtle problem by determining min_idx and max_idx: for a single create request, min_idx == max_idx, so actually we just update one one bit as expected. Suppose we have 2 crea

[Qemu-devel] qemu 2.4rc2 : iothread hanging vm (2.4rc1 works fine)

2015-07-28 Thread Alexandre DERUMIER
Hi, since qemu 2.4rc2, when I'm using iothreads, the vm is hanging, qmp queries are not working, vnc not working. (qemu process don't crash). qemu 2.4 rc1 works fine. (don't have bisect it yet) qemu command line: qemu -chardev socket,id=qmp,path=/var/run/qemu-server/150.qmp,server,nowait -mo

[Qemu-devel] [PATCH v2 05/11] aio: Mark ctx->notifier's client type as "context"

2015-07-28 Thread Fam Zheng
It is important to include this for any blocking poll, on the other hand it is also OK to exclude it otherwise. Signed-off-by: Fam Zheng --- async.c | 4 ++-- include/block/aio.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/async.c b/async.c index 43f9425..0b

[Qemu-devel] [PATCH v2 01/11] aio: Introduce "type" in aio_set_fd_handler and aio_set_event_notifier

2015-07-28 Thread Fam Zheng
The parameter is added but not used. The callers are converted with following coccinelle semantic patch: @@ expression E1, E2, E3, E4, E5; @@ ( -aio_set_event_notifier(E1, E2, E3) +aio_set_event_notifier(E1, E2, AIO_CLIENT_UNSPECIFIED, E3) | -aio_set_fd_handler(E1,

[Qemu-devel] [PATCH v2 00/11] aio: Introduce handler type to fix nested aio_poll for dataplane

2015-07-28 Thread Fam Zheng
v2: Switch to disable/enable model. [Paolo] Most existing nested aio_poll()'s in block layer are inconsiderate of dispatching potential new r/w requests from ioeventfds and nbd exports, which might result in responsiveness issues (e.g. bdrv_drain_all will not return when new requests keep coming),

[Qemu-devel] [PATCH v2 07/11] aio-posix: introduce aio_{disable, enable}_clients

2015-07-28 Thread Fam Zheng
Signed-off-by: Fam Zheng --- aio-posix.c | 17 - include/block/aio.h | 24 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/aio-posix.c b/aio-posix.c index d25fcfc..840b769 100644 --- a/aio-posix.c +++ b/aio-posix.c @@ -26,6 +26,7 @@

[Qemu-devel] [PATCH v2 02/11] aio: Save type to AioHandler

2015-07-28 Thread Fam Zheng
So it can be used by aio_poll later. Signed-off-by: Fam Zheng --- aio-posix.c | 2 ++ aio-win32.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/aio-posix.c b/aio-posix.c index 56f2bce..d25fcfc 100644 --- a/aio-posix.c +++ b/aio-posix.c @@ -25,6 +25,7 @@ struct AioHandler IOHandler

[Qemu-devel] [PATCH v2 03/11] block: Mark fd handlers as "protocol"

2015-07-28 Thread Fam Zheng
The "protocol" type includes all the fd handlers and event notifiers used by block layer, especially those that should be polled in a nested event loop. Signed-off-by: Fam Zheng --- block/curl.c| 8 block/iscsi.c | 4 ++-- block/linux-aio.c | 4 ++-- block/nbd-client.

[Qemu-devel] [PATCH v2 04/11] nbd: Mark fd handlers client type as "nbd server"

2015-07-28 Thread Fam Zheng
So we could distinguish it from "protocol" to avoid handling in nested aio polls. Signed-off-by: Fam Zheng --- include/block/aio.h | 1 + nbd.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/block/aio.h b/include/block/aio.h index d02ddfa..8b15105

[Qemu-devel] [PATCH v2 08/11] aio-win32: Implement aio_{disable, enable}_clients

2015-07-28 Thread Fam Zheng
Signed-off-by: Fam Zheng --- aio-win32.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/aio-win32.c b/aio-win32.c index f5ecf57..1f6a3f0 100644 --- a/aio-win32.c +++ b/aio-win32.c @@ -28,6 +28,7 @@ struct AioHandler { GPollFD pfd; int deleted;

[Qemu-devel] [PATCH v2 06/11] dataplane: Mark host notifiers' client type as "dataplane"

2015-07-28 Thread Fam Zheng
Signed-off-by: Fam Zheng --- hw/block/dataplane/virtio-blk.c | 4 ++-- hw/scsi/virtio-scsi-dataplane.c | 16 include/block/aio.h | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/hw/block/dataplane/virtio-blk.c b/hw/block/dataplane/virtio-blk.c

[Qemu-devel] [PATCH v2 09/11] block: Introduce bdrv_aio_poll

2015-07-28 Thread Fam Zheng
This call is introduced simply as a wrapper of aio_poll, but it makes it is easy to change the polled client types. Signed-off-by: Fam Zheng --- block/io.c| 8 include/block/aio.h | 2 +- include/block/block.h | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH v2 10/11] block: Replace nested aio_poll with bdrv_aio_poll

2015-07-28 Thread Fam Zheng
Just a manual search and replace. No semantic change here. Signed-off-by: Fam Zheng --- block.c | 2 +- block/curl.c | 2 +- block/io.c| 18 +- block/nfs.c | 2 +- block/qed-table.c | 8 blockjob.c| 2 +- qemu-img.c| 2 +

[Qemu-devel] [PATCH v2 11/11] block: Only poll block layer fds in bdrv_aio_poll

2015-07-28 Thread Fam Zheng
So that external events are not processed in nested event loops. Signed-off-by: Fam Zheng --- block/io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/io.c b/block/io.c index 3d255e0..84047fe 100644 --- a/block/io.c +++ b/block/io.c @@ -2613,6 +2613,8 @@ bool bdrv_aio_poll(AioConte

Re: [Qemu-devel] qemu 2.4rc2 : iothread hanging vm (2.4rc1 works fine)

2015-07-28 Thread Alexandre DERUMIER
seem to come from this commit: http://git.qemu.org/?p=qemu.git;a=commit;h=eabc977973103527bbb8fed69c91cfaa6691f8ab "AioContext: fix broken ctx->dispatching optimization" - Mail original - De: "aderumier" À: "qemu-devel" Envoyé: Mercredi 29 Juillet 2015 06:15:48 Objet: [Qemu-devel] qemu

Re: [Qemu-devel] [sheepdog] [PATCH] sheepdog: fix overlapping metadata update

2015-07-28 Thread Hitoshi Mitake
At Wed, 29 Jul 2015 12:02:35 +0800, Liu Yuan wrote: > > From: Liu Yuan > > Current sheepdog driver use a range update_inode(min_idx, max_idx) for > batching > the updates. But there is subtle problem by determining min_idx and max_idx: > > for a single create request, min_idx == max_idx, so ac

Re: [Qemu-devel] [PATCH 01/18] slirp: goto bad in udp_input if sosendto fails

2015-07-28 Thread Wen Congyang
On 07/29/2015 06:57 AM, Samuel Thibault wrote: > Before this patch, if sosendto fails, udp_input is executed as if the > packet was sent, recording the packet for icmp errors, which does not > makes sense since the packet was not actually sent, errors would be > related to a previous packet. > > T

Re: [Qemu-devel] Debian 7.8.0 SPARC64 on qemu - anything i can do to speedup the emulation?

2015-07-28 Thread Dennis Luehring
Am 28.07.2015 um 11:54 schrieb Artyom Tarasenko: >anything i can do to speedup the emulation? Maybe try the fresh tcg optimizer improvements from Aurelien: https://lists.gnu.org/archive/html/qemu-devel/2015-07/msg05133.html it don't seems to target sparc (or isn't ready) many x86/x64 only etc.

Re: [Qemu-devel] [PATCH v2 33/45] ivshmem-server: fix hugetlbfs support

2015-07-28 Thread Andrew Jones
On Tue, Jul 28, 2015 at 08:02:54PM +0200, Marc-André Lureau wrote: > Hi > > On Tue, Jul 28, 2015 at 9:33 AM, Andrew Jones wrote: > > On Tue, Jul 28, 2015 at 02:32:45AM +0200, Marc-André Lureau wrote: > >> + > >> +return fs.f_bsize; > >> +} > >> + > >> + > >> + > > few extra lines here > > cu

<    1   2   3