Re: [Qemu-devel] Using virtio for inter-VM communication

2014-06-14 Thread Jan Kiszka
On 2014-06-13 10:45, Paolo Bonzini wrote: > Il 13/06/2014 08:23, Jan Kiszka ha scritto: That would preserve zero-copy capabilities (as long as you can work against the shared mem directly, e.g. doing DMA from a physical NIC or storage device into it) and keep the hypervisor out of th

Re: [Qemu-devel] [PATCH V6 00/29] add direct support of event in qapi schema

2014-06-14 Thread Wenchao Xia
于 2014/6/10 13:48, Paolo Bonzini 写道: Il 05/06/2014 14:21, Wenchao Xia ha scritto: This series add support for tag/keyword 'event' in qapi-schema. A new file was created to store some helper functions in patch 2, patch 4 is the test case, patch 5 is a convert example. The implemention is done by

Re: [Qemu-devel] [PATCH V6 17/29] qapi event: convert WATCHDOG

2014-06-14 Thread Wenchao Xia
于 2014/6/14 6:05, Eric Blake 写道: On 06/13/2014 03:47 PM, Eric Blake wrote: On 06/05/2014 06:22 AM, Wenchao Xia wrote: Signed-off-by: Wenchao Xia --- docs/qmp/qmp-events.txt | 19 --- hw/watchdog/watchdog.c | 23 +++ monitor.c |2 +-

Re: [Qemu-devel] [PATCH V6 16/29] qapi event: convert RTC_CHANGE

2014-06-14 Thread Wenchao Xia
于 2014/6/14 5:27, Eric Blake 写道: On 06/05/2014 06:22 AM, Wenchao Xia wrote: This patch also eliminates build time warning caused by no caller of monitor_qapi_event_throttle(). Again, my suggestion on 6/29 could avoid that warning; if you use that workaround, don't clean it until 29/29, but you

Re: [Qemu-devel] [PATCH V6 08/29] qapi event: convert SHUTDOWN

2014-06-14 Thread Wenchao Xia
于 2014/6/14 3:57, Eric Blake 写道: On 06/05/2014 06:22 AM, Wenchao Xia wrote: This patch also eliminates build time warning caused by QAPI_EVENT_MAX = 0. I still don't know why I wasn't seeing a warning for that, but agree this cleans it up (or whichever event gets converted first, as there aren

Re: [Qemu-devel] [PATCH V6 06/29] monitor: add an implemention as qapi event emit method

2014-06-14 Thread Wenchao Xia
于 2014/6/14 3:04, Eric Blake 写道: On 06/05/2014 06:22 AM, Wenchao Xia wrote: In the subject: s/as/of/ Now monitor has been hooked on the new event mechanism, so the patches s/Now/The/ later can convert event callers one by one. Most code are copied from s/the patches later/that later patc

[Qemu-devel] [PATCH] qemu/target-ppc: software breakpoint support

2014-06-14 Thread Madhavan Srinivasan
This patch adds software breakpoint support for ppc. Patch allows to insert and remove sw breakpoints using Qemu gdbserver on ppc. Patch use "abs" instruction as sw breakpoint instruction. This instruction with primary opcode 31 and extended opcode 360 has been dropped from PowerISA (in v2.01) and

[Qemu-devel] [PATCH] input: fix jumpy mouse cursor with USB mouse emulation

2014-06-14 Thread Christian Burger
Guest mouse pointer was jumpy, when moving host mouse in the vertical direction (see bug #1327800). Signed-off-by: Christian Burger --- hw/input/hid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/input/hid.c b/hw/input/hid.c index 295bdab..c58847e 100644 --- a/hw/i

Re: [Qemu-devel] [PATCH v10 6/6] qcow2: Add full image preallocation option

2014-06-14 Thread Max Reitz
On 12.06.2014 05:54, Hu Tao wrote: This adds a preallocation=full mode to qcow2 image creation, which creates a non-sparse image file. Signed-off-by: Hu Tao --- block/qcow2.c | 90 -- tests/qemu-iotests/082.out | 54 ++-

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

2014-06-14 Thread Samuel Thibault
Jan Kiszka, le Thu 12 Jun 2014 07:47:25 +0200, a écrit : > On 2014-06-11 10:55, Samuel Thibault wrote: > > Before this patch, if sosendto fails, udp_input is executed as if the > > packet was sent. This could cause memory leak. > > Cannot follow yet how this could leak (not saying I fully got what

Re: [Qemu-devel] [PATCH v10 5/6] raw-posix: Add full image preallocation option

2014-06-14 Thread Max Reitz
On 12.06.2014 05:54, Hu Tao wrote: This patch adds a new option preallocation for raw format, and implements full preallocation. Signed-off-by: Hu Tao --- block/raw-posix.c | 59 --- 1 file changed, 52 insertions(+), 7 deletions(-) diff --

Re: [Qemu-devel] [PATCH v10 4/6] qapi: introduce PreallocMode and a new PreallocMode full.

2014-06-14 Thread Max Reitz
On 12.06.2014 05:54, Hu Tao wrote: This patch prepares for the subsequent patches. Reviewed-by: Fam Zheng Reviewed-by: Eric Blake Signed-off-by: Hu Tao --- block/qcow2.c| 8 qapi-schema.json | 14 ++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a

Re: [Qemu-devel] [PATCH v10 3/6] rename parse_enum_option to qapi_enum_parse and make it public

2014-06-14 Thread Max Reitz
On 12.06.2014 05:54, Hu Tao wrote: Signed-off-by: Hu Tao Suggested-by: Markus Armbruster --- blockdev.c | 22 ++ include/qapi/util.h | 17 + qapi/Makefile.objs | 2 +- qapi/qapi-util.c| 32 4 files changed

Re: [Qemu-devel] [PATCH v10 2/6] raw, qcow2: don't convert file size to sector size

2014-06-14 Thread Max Reitz
On 12.06.2014 05:54, Hu Tao wrote: and avoid converting it back later. And round up file size to nearest sector. Signed-off-by: Hu Tao --- block/qcow2.c | 8 block/raw-posix.c | 4 ++-- block/raw-win32.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/

Re: [Qemu-devel] [PATCH v10 1/6] block: round up file size to nearest sector

2014-06-14 Thread Max Reitz
On 12.06.2014 05:54, Hu Tao wrote: Signed-off-by: Hu Tao --- block/qcow2.c | 2 +- block/raw-posix.c | 2 +- block/raw-win32.c | 2 +- tests/qemu-iotests/093 | 64 ++ tests/qemu-iotests/093.out | 14 +

Re: [Qemu-devel] [PATCH 1/3] nbd: Drop nbd_can_read()

2014-06-14 Thread Max Reitz
On 14.06.2014 09:57, Paolo Bonzini wrote: Il 14/06/2014 00:30, Max Reitz ha scritto: +static void nbd_set_handlers(NBDClient *client) +{ +if (client->exp && client->exp->ctx) { +aio_set_fd_handler(client->exp->ctx, client->sock, + client->can_read ? nbd_read

Re: [Qemu-devel] Why I advise against using ivshmem

2014-06-14 Thread Vincent JARDIN
(resending, this email is missing at http://lists.nongnu.org/archive/html/qemu-devel/2014-06/index.html) > Fine, however Red Hat would also need a way to test ivshmem code, with > proper quality assurance (that also benefits upstream, of course). > With ivshmem this is not possible without the

Re: [Qemu-devel] [PATCH RFC 4/4] memory-backend-file: error out if failed to allocate memory

2014-06-14 Thread Paolo Bonzini
Il 14/06/2014 06:48, Hu Tao ha scritto: If user adds a memory-backend-file object using object_add command, specifying a non-existing directory for property mem-path, qemu will core dump with message: /nonexistingdir: No such file or directory Bad ram offset f000 Aborted (core

Re: [Qemu-devel] [PATCH RFC 3/4] exec: don't exit unconditionally if failed to allocate memory

2014-06-14 Thread Paolo Bonzini
Il 14/06/2014 06:48, Hu Tao ha scritto: return -1 instead. Now user can add objects memory-backend-ram on-the-fly, fail it if cannot allocate memory rather than quit qemu. Signed-off-by: Hu Tao This needs an audit of all callers or, alternatively, we need to add memory_region_init_ram_nofai

[Qemu-devel] Why does qemu not support qemu-system-armeb?

2014-06-14 Thread Ljun
Hello everyone,I am working on big endian for arm.I change the qemu configure and create a qemu-system-armeb,but I want to know qemu whether support armeb-softmmu. Software engineer ,Ljun

Re: [Qemu-devel] [PATCH 1/3] nbd: Drop nbd_can_read()

2014-06-14 Thread Paolo Bonzini
Il 14/06/2014 00:30, Max Reitz ha scritto: +static void nbd_set_handlers(NBDClient *client) +{ +if (client->exp && client->exp->ctx) { +aio_set_fd_handler(client->exp->ctx, client->sock, + client->can_read ? nbd_read : NULL, + client

[Qemu-devel] [Bug 1329956] [NEW] multi-core FreeBSD guest hangs after warm reboot

2014-06-14 Thread John Nielsen
Public bug reported: On some Linux KVM hosts in our environment, FreeBSD guests fail to reboot properly if they have more than one CPU (socket, core, and/or thread). They will boot fine the first time, but after issuing a "reboot" command via the OS the guest starts to boot but hangs during SMP in