[Qemu-devel] [PATCH 14/21] qemu-char: convert braille backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- backends/baum.c | 13 - include/sysemu/char.h | 3 --- qemu-char.c | 4 +--- stubs/Makefile.objs | 1 - stubs/chr-baum-init.c | 7 --- 5 files changed, 9 insertions(+), 19 deletions(-) delete mode 100644

[Qemu-devel] [PATCH 06/21] qemu-char: convert parallel backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Conversion to Error * brings better error messages; before: qemu-system-x86_64: -chardev id=serial,backend=parallel,path=vl.c: Failed to create chardev After: qemu-system-x86_64: -chardev id=serial,backend=parallel,path=vl.c: not a parallel port: Inappropriate ioctl for device

[Qemu-devel] [PATCH 07/21] qemu-char: convert pipe backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 37 + 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 84cb8d0..3545cd8 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -1078,18 +1078,17 @@ static

[Qemu-devel] [PATCH 3/3] qemu-gdb: add $qemu_coroutine_sp and $qemu_coroutine_pc

2015-10-12 Thread Paolo Bonzini
These can be useful to manually get a stack trace of a coroutine inside a core dump. Signed-off-by: Paolo Bonzini --- scripts/qemu-gdb.py | 3 +++ scripts/qemugdb/coroutine.py | 16 2 files changed, 19 insertions(+) diff --git

[Qemu-devel] [PATCH 10/21] qemu-char: convert pty backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 79c0c05..c36cbf0 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -1390,7 +1390,9 @@ static void pty_chr_close(struct

[Qemu-devel] [PATCH 09/21] qemu-char: convert UDP backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 459ed5c..79c0c05 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -4232,9 +4232,12 @@ static CharDriverState

[Qemu-devel] [PATCH 20/21] qemu-char: convert ringbuf backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 7ef1293..e0faeb7 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3222,9 +3222,12 @@ static void

[Qemu-devel] [PATCH 05/21] qemu-char: convert serial backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 48 +--- 1 file changed, 29 insertions(+), 19 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 13fd394..8567580 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -1886,7 +1886,7

[Qemu-devel] [PULL 13/14] netfilter: add a netbuffer filter

2015-10-12 Thread Jason Wang
From: Yang Hongyang This filter is to buffer/release packets. Can be used when using MicroCheckpointing or other Remus like VM FT solutions. You can also use it to crudely simulate network delay. Doesn't actually delay individual packets, but batches them together, which

[Qemu-devel] [PULL 03/14] e1000: use alias for default model

2015-10-12 Thread Jason Wang
Instead of duplicating the "e1000-82540em" device model as "e1000", make the latter an alias for the former. Cc: Markus Armbruster Reviewed-by: Markus Armbruster Signed-off-by: Jason Wang --- hw/net/e1000.c | 8 +---

[Qemu-devel] [PULL 00/14] Net patches

2015-10-12 Thread Jason Wang
The following changes since commit 5fdb4671b08e0d1631447e81348b2b50a6b85bf7: Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2015-10-06 13:42:33 +0100) are available in the git repository at: https://github.com/jasowang/qemu.git tags/net-pull-request

Re: [Qemu-devel] [PATCH 2/2] hw/arm/virt: don't use a15memmap directly

2015-10-12 Thread Pavel Fedin
Hello! > Before this patch it would complain that the requested > number of cpus was greater than 123, but for gicv2 configs, it > should complain that the number is greater than 8. Actually, gicv2 code has own check, and it would complain about >8 CPU (see arm_gic_common_realize()). Kind

[Qemu-devel] [PATCH 1/3] qemu-gdb: allow using glibc_pointer_guard() on core dumps

2015-10-12 Thread Paolo Bonzini
get_fs_base() cannot be run on a core dump, because it uses the arch_prctl system call. The fs base is the value that is returned by pthread_self(), and it would be nice to just glean it from the "info threads" output: * 1Thread 0x7f16a3fff700 (LWP 33642) pthread_cond_wait@@GLIBC_2.3.2 ()

[Qemu-devel] [PATCH 2/3] qemu-gdb: extract parts of "qemu coroutine" implementation

2015-10-12 Thread Paolo Bonzini
Provide useful Python functions to reach and decipher a jmpbuf. Signed-off-by: Paolo Bonzini --- scripts/qemugdb/coroutine.py | 56 +--- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/scripts/qemugdb/coroutine.py

[Qemu-devel] [PATCH 0/3] qemu-gdb: add functionality for inspecting core dumps

2015-10-12 Thread Paolo Bonzini
Currently it is very hard to inspect coroutine in core dumps, because none of the qemu-gdb functionality works. Fixing this is not really possible because "bt" only works on the core dump's stack pointer and program counter, but the situation would improve noticeably if only a coroutine's stack

[Qemu-devel] [PATCH 02/21] qemu-char: cleanup HAVE_CHARDEV_*

2015-10-12 Thread Paolo Bonzini
Move the #ifdef up into qmp_chardev_add, and avoid duplicating the code that reports unavailable backends. Split HAVE_CHARDEV_TTY into HAVE_CHARDEV_SERIAL and HAVE_CHARDEV_PTY. Signed-off-by: Paolo Bonzini --- qemu-char.c | 24 1 file changed, 12

[Qemu-devel] [PATCH 13/21] qemu-char: convert msmouse backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- backends/msmouse.c| 7 +-- include/sysemu/char.h | 3 --- qemu-char.c | 2 +- stubs/Makefile.objs | 1 - stubs/chr-msmouse.c | 7 --- 5 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644

[Qemu-devel] [PATCH 18/21] qemu-char: convert spice backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- include/ui/qemu-spice.h | 2 -- qemu-char.c | 6 ++ spice-qemu-char.c | 21 - stubs/Makefile.objs | 1 - stubs/qemu-chr-open-spice.c | 14 -- 5 files changed, 14

[Qemu-devel] [PATCH 11/21] qemu-char: convert null backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index c36cbf0..3e48a47 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -383,7 +383,10 @@ static int

Re: [Qemu-devel] Quick question on NVME on qemu

2015-10-12 Thread Igor Mammedov
On Sat, 10 Oct 2015 00:39:43 -0700 sahlot arvind wrote: > Hello, > > Does qemu emulate a proper NVMe controller? Can someone please tell me how s far as I'm aware, QEMU doesn't emulate any NVMe controller yet. > can I use it to emulate a proper NVMe controller? Is there

Re: [Qemu-devel] [PATCH v2] spice: Allow to set password even if disable-ticketing was used

2015-10-12 Thread Gerd Hoffmann
Hi, > > Signed-off-by: Christophe Fergeau > > Reviewed-by: Daniel P. Berrange > > Any taker for that patch? please resend, with me in cc, and add to the changelog why this is needed. thanks, Gerd

Re: [Qemu-devel] [Qemu-block] [PATCH v5 3/4] qmp: add monitor command to add/remove a child

2015-10-12 Thread Markus Armbruster
Max Reitz writes: > On 08.10.2015 08:15, Markus Armbruster wrote: >> Max Reitz writes: >> >>> On 22.09.2015 09:44, Wen Congyang wrote: The new QMP command name is x-blockdev-child-add, and x-blockdev-child-del. It justs for adding/removing

Re: [Qemu-devel] QEMU Technical Talk: NVDIMM and persistent memory in QEMU

2015-10-12 Thread Stefan Hajnoczi
On Mon, Oct 5, 2015 at 8:52 PM, Stefan Hajnoczi wrote: Just a reminder that QEMU's first technical talk is today (Monday, 12 October 2015) at 14:00 UTC. We will be using Hangouts On Air for video/audio. The URL is: https://plus.google.com/events/cfssoojfogaafulssb1qeijn07k

[Qemu-devel] [PULL 01/14] net/vmxnet3: Refine l2 header validation

2015-10-12 Thread Jason Wang
From: Dana Rubin Validation of l2 header length assumed minimal packet size as eth_header + 2 * vlan_header regardless of the actual protocol. This caused crash for valid non-IP packets shorter than 22 bytes, as 'tx_pkt->packet_type' hasn't been assigned for such

[Qemu-devel] [PATCH 12/21] qemu-char: convert mux backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 3e48a47..8e3a79a 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -682,11 +682,20 @@ static GSource

Re: [Qemu-devel] [PATCH v3 0/5] simplified QEMU guest exec

2015-10-12 Thread Denis V. Lunev
On 10/07/2015 01:32 PM, Denis V. Lunev wrote: This patchset provides simplified guest-exec functionality. The idea is simple. We drop original guest-pipe-open etc stuff and provides simple and dumb API: - spawn process (originally with stdin/stdout/stderr as /dev/null) - later simple buffer is

Re: [Qemu-devel] [PATCH 1/2] [RFC] arm_gic_common.h: add gicv2 aliases for defines

2015-10-12 Thread Pavel Fedin
Hi! > It looks like the only thing in the gicv3 code that is using > a define from the arm_gic_common.h file is "GIC_INTERNAL", > so we can just put a suitable define of that into the v3 header > (maybe giving it a better name in the process). Yes, indeed. Actually, first versions of my GICv3

Re: [Qemu-devel] [Bug 1504513] [NEW] Socket leak on each call to qemu_socket()

2015-10-12 Thread Markus Armbruster
Mark Pizzolato writes: > Public bug reported: > > On any host platform where SOCK_CLOEXEC is defined (Linux at least), a > socket is leaked on each call to qemu_socket() AND the socket returned > hasn't been created with the desired SOCK_CLOEXEC attribute. The > qemu_socket

[Qemu-devel] [PULL 02/14] vmxnet3: Support reading IMR registers on bar0

2015-10-12 Thread Jason Wang
From: Shmulik Ladkani Instead of asserting, return the actual IMR register value. This is aligned with what's returned on ESXi. Signed-off-by: Shmulik Ladkani Tested-by: Dana Rubin

[Qemu-devel] [PATCH 08/21] qemu-char: convert socket backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 3545cd8..459ed5c 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -4163,11 +4163,14 @@ static gboolean

[Qemu-devel] [PATCH 00/22] qemu-char: refactoring of chardev creation

2015-10-12 Thread Paolo Bonzini
This series rewrites chardev creation to use a new ->create member of the CharDriver struct, and to always signal errors via Error*. The advantage is that backend-specific creation functions need not be exported anymore for qemu-char.c's usage, and hence do not need stubs anymore. Paolo Bonzini

[Qemu-devel] [PATCH 15/21] qemu-char: convert testdev backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- backends/testdev.c| 7 +-- include/sysemu/char.h | 3 --- qemu-char.c | 2 +- stubs/Makefile.objs | 1 - stubs/chr-testdev.c | 7 --- 5 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644

[Qemu-devel] [PATCH 04/21] qemu-char: convert file backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index a6411d6..13fd394 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -4010,8 +4010,12 @@ QemuOptsList

[Qemu-devel] [PATCH 16/21] qemu-char: convert stdio backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
The backend now always returns errors via the Error* argument. This avoids a double error message. Before: qemu-system-x86_64: -chardev stdio,id=base: cannot use stdio with -daemonize qemu-system-x86_64: -chardev stdio,id=base: Failed to create chardev After: qemu-system-x86_64:

Re: [Qemu-devel] [PATCH 1/2] kvm/x86: Hyper-V synthetic interrupt controller

2015-10-12 Thread Christian Borntraeger
Am 09.10.2015 um 16:42 schrieb Paolo Bonzini: > Christian, the question for you is towards the end... [] > >> --- a/virt/kvm/irqchip.c >> +++ b/virt/kvm/irqchip.c >> @@ -144,11 +144,13 @@ static int setup_routing_entry(struct >> kvm_irq_routing_table *rt, >> >> /* >> * Do not

Re: [Qemu-devel] [Qemu-block] [PATCH v5 3/4] qmp: add monitor command to add/remove a child

2015-10-12 Thread Dr. David Alan Gilbert
* Max Reitz (mre...@redhat.com) wrote: > On 09.10.2015 18:42, Dr. David Alan Gilbert wrote: > > * Max Reitz (mre...@redhat.com) wrote: > >> On 08.10.2015 08:15, Markus Armbruster wrote: > >>> Max Reitz writes: > >>> > On 22.09.2015 09:44, Wen Congyang wrote: > > The

Re: [Qemu-devel] [Qemu-block] [PATCH v5 3/4] qmp: add monitor command to add/remove a child

2015-10-12 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Max Reitz (mre...@redhat.com) wrote: >> On 08.10.2015 08:15, Markus Armbruster wrote: >> > Max Reitz writes: >> > >> >> On 22.09.2015 09:44, Wen Congyang wrote: >> >>> The new QMP command name is x-blockdev-child-add,

[Qemu-devel] [PATCH 03/21] qemu-char: add create to register_char_driver

2015-10-12 Thread Paolo Bonzini
Having creation as a member of the CharDriver struct removes the need to export functions for qemu-char.c's usage. After the conversion, chardev backends implemented outside qemu-char.c will not need a stub creation function anymore. Ultimately all drivers will be converted. For now, support

[Qemu-devel] [PATCH 19/21] qemu-char: convert vc backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- include/sysemu/char.h | 5 ++--- qemu-char.c | 2 +- stubs/Makefile.objs | 1 - stubs/vc-init.c | 7 --- ui/console.c | 10 ++ ui/gtk.c | 2 +- 6 files changed, 10 insertions(+), 17

[Qemu-devel] [PATCH 21/21] qemu-char: cleanup after completed conversion to cd->create

2015-10-12 Thread Paolo Bonzini
All backends now return errors through Error*, so the "Failed to create chardev" placeholder error can only be reached if the backend is not available (and only from the chardev-add QMP command; instead, the -chardev command line option fails earlier). Signed-off-by: Paolo Bonzini

[Qemu-devel] [PULL 07/14] netfilter: hook packets before net queue send

2015-10-12 Thread Jason Wang
From: Yang Hongyang Capture packets that will be sent. Signed-off-by: Yang Hongyang Reviewed-by: Thomas Huth Signed-off-by: Jason Wang --- include/net/filter.h | 8 +++ net/filter.c | 17

[Qemu-devel] [PULL 12/14] net/queue: export qemu_net_queue_append_iov

2015-10-12 Thread Jason Wang
From: Yang Hongyang This will be used by buffer filter implementation later to queue packets. Signed-off-by: Yang Hongyang Reviewed-by: Thomas Huth Signed-off-by: Jason Wang --- include/net/queue.h | 7

Re: [Qemu-devel] [PATCH v7 10/14] qapi: Detect collisions in C member names

2015-10-12 Thread Markus Armbruster
Eric Blake writes: > On 10/09/2015 08:11 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Detect attempts to declare two object members that would result >>> in the same C member name, by keying the 'seen' dictionary off >>> of the C name rather

Re: [Qemu-devel] [PATCH v3 00/32] implement vNVDIMM

2015-10-12 Thread Xiao Guangrong
On 10/12/2015 04:20 PM, Igor Mammedov wrote: On Mon, 12 Oct 2015 11:06:20 +0800 Xiao Guangrong wrote: On 10/12/2015 10:59 AM, Bharata B Rao wrote: Xiao, Are these patches present in any git tree so that they can be easily tried out. Sorry, currently no

Re: [Qemu-devel] Stick to loops

2015-10-12 Thread Paolo Bonzini
On 12/10/2015 12:00, Daniel P. Berrange wrote: > I don't think your example here is a reasonable comparison when you consider > the full extent of this patch series. You are only having to iterate over a > single data structure here. At the end of this patch series we have to > iterate over

Re: [Qemu-devel] [PATCH] qmp-commands.hx: Update the supported 'transaction' operations

2015-10-12 Thread Kashyap Chamarthy
[Sorry, I noticed your question only just now, as I was briefly away from this list.] On Fri, Oct 02, 2015 at 07:59:48PM +0200, Max Reitz wrote: > On 02.10.2015 14:12, Kashyap Chamarthy wrote: > > Although the canonical source of reference for QMP commands is > > qapi-schema.json, for

Re: [Qemu-devel] [PATCH 0/3] Use glib 2.26 version macros

2015-10-12 Thread Cornelia Huck
On Mon, 12 Oct 2015 12:54:56 +0200 marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Bump glib requirement to be able to use the GLIB_VERSION macros. > > Marc-André Lureau (3): > hw/acpi/aml-build: remove useless glib version check > configure:

[Qemu-devel] [PATCH v2 09/16] io: add helper module for creating watches on FDs

2015-10-12 Thread Daniel P. Berrange
A number of the channel implementations will require the ability to create watches on file descriptors / sockets. To avoid duplicating this code in each channel, provide a helper API for dealing with file descriptor watches. There are two watch implementations provided. The first is useful for

[Qemu-devel] [PATCH v2 06/16] coroutine: move into libqemuutil.a library

2015-10-12 Thread Daniel P. Berrange
The coroutine files are currently referenced by the block-obj-y variable. The coroutine functionality though is already used by more than just the block code. eg migration code uses coroutine yield. In the future the I/O channel code will also use the coroutine yield functionality. Since the

[Qemu-devel] [PATCH v2 07/16] util: pull Buffer code out of VNC module

2015-10-12 Thread Daniel P. Berrange
The Buffer code in the VNC server is useful for the IO channel code, so pull it out into a shared module, QIOBuffer. Signed-off-by: Daniel P. Berrange --- MAINTAINERS | 6 +++ include/qemu/buffer.h | 118 ++

Re: [Qemu-devel] [Qemu-block] [PATCH v5 3/4] qmp: add monitor command to add/remove a child

2015-10-12 Thread Kevin Wolf
Am 09.10.2015 um 20:24 hat Max Reitz geschrieben: > On 09.10.2015 18:42, Dr. David Alan Gilbert wrote: > > * Max Reitz (mre...@redhat.com) wrote: > >> On 08.10.2015 08:15, Markus Armbruster wrote: > >>> Max Reitz writes: > >>> > On 22.09.2015 09:44, Wen Congyang wrote: >

Re: [Qemu-devel] [PATCH 05/12] aio: introduce aio_{disable, enable}_clients

2015-10-12 Thread Kevin Wolf
Am 09.10.2015 um 18:27 hat Fam Zheng geschrieben: > On Fri, 10/09 16:31, Kevin Wolf wrote: > > Am 09.10.2015 um 07:45 hat Fam Zheng geschrieben: > > > Signed-off-by: Fam Zheng > > > --- > > > aio-posix.c | 3 ++- > > > aio-win32.c | 3 ++- > > > async.c

[Qemu-devel] [PATCH 1/1] log hmp/qmp command

2015-10-12 Thread Denis V. Lunev
From: Pavel Butsykin This log would be very welcome for long-term diagnostics of the system in the production. This log is at least necessary to understand what has been happened on the system and to identify issues at higher-level subsystems (libvirt, etc).

[Qemu-devel] [PATCH 01/21] qemu-char: cleanup qmp_chardev_add

2015-10-12 Thread Paolo Bonzini
Use the usual idioms for error propagation. Signed-off-by: Paolo Bonzini --- qemu-char.c | 56 +++- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 653ea10..f51c0aa 100644

[Qemu-devel] [Bug 1505041] Re: Live snapshot revert times increases linearly with snapshot age

2015-10-12 Thread Daniel Berrange
I'm unsure why clock time would affect snapshot revert, but one thing to note is that the general recommended timer settings for guest OS are different from what you have. virt-manager/oVirt/OpenStack would all set: in general for all guest OS, and if they have new

[Qemu-devel] [PATCH v7 1/5] block: check for existing device IDs in external_snapshot_prepare()

2015-10-12 Thread Alberto Garcia
The 'snapshot-node-name' parameter of blockdev-snapshot-sync allows setting the node name of the image that is going to be created. Before creating the image, external_snapshot_prepare() checks that the name is not already being used. The check is however incomplete since it only considers

[Qemu-devel] [PATCH 0/3] aio: Use epoll in aio_poll()

2015-10-12 Thread Fam Zheng
This series adds the ability to use epoll in aio_poll() on Linux. It's switched on in a dynamic way rather than static for two reasons: 1) when the number of fds is not high enough, using epoll has little advantage; 2) when an epoll incompatible fd needs to be handled, we need to fall back. The

[Qemu-devel] [PATCH 1/3] aio: Move AioHandler struct to header

2015-10-12 Thread Fam Zheng
AioHandler for win32 is a superset of the counterpart in aio-posix, move that to a new header "aio-internal.h" and drop the posix variation. Signed-off-by: Fam Zheng --- aio-posix.c | 11 +-- aio-win32.c | 12 +---

Re: [Qemu-devel] [PATCH 3/3] aio: Introduce aio-epoll.c

2015-10-12 Thread Paolo Bonzini
On 12/10/2015 11:55, Fam Zheng wrote: > Signed-off-by: Fam Zheng > --- > Makefile.objs| 1 + > aio-epoll.c | 150 > +++ > aio-posix.c | 16 - > include/block/aio-internal.h | 15

Re: [Qemu-devel] [PULL 00/11] virtio-gpu+gtk: add 3d rendering support

2015-10-12 Thread Peter Maydell
On 9 October 2015 at 09:18, Gerd Hoffmann wrote: > Hi, > > Here comes the 3d rendering support for virtio-gpu, together with the > support bits in the gtk ui. There are also some ui bugfixes. > > sdl2 is expected to follow shortly, once we've pinned down one remaining >

[Qemu-devel] [PULL v2 0/5] Block patches

2015-10-12 Thread Stefan Hajnoczi
The following changes since commit b37686f7e84b22cfaf7fd01ac5133f2617cc3027: Merge remote-tracking branch 'remotes/stefanha/tags/tracing-pull-request' into staging (2015-10-09 12:18:14 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git tags/block-pull-request

[Qemu-devel] [PATCH 17/21] qemu-char: convert console backend to data-driven creation

2015-10-12 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- qemu-char.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 74ca66d..535db73 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2204,7 +2204,10 @@ static CharDriverState

[Qemu-devel] [PULL 05/14] vl.c: init delayed object after net_init_clients

2015-10-12 Thread Jason Wang
From: Yang Hongyang Init delayed object after net_init_clients, because netfilters need to be initialized after net clients initialized. Signed-off-by: Yang Hongyang Signed-off-by: Jason Wang --- vl.c | 15 --- 1

[Qemu-devel] [PULL 11/14] netfilter: print filter info associate with the netdev

2015-10-12 Thread Jason Wang
From: Yang Hongyang When execute "info network", print filter info also. add a info_str member to NetFilterState, store specific filters info. Signed-off-by: Yang Hongyang Signed-off-by: Jason Wang --- include/net/filter.h | 1 +

[Qemu-devel] [PULL 06/14] init/cleanup of netfilter object

2015-10-12 Thread Jason Wang
From: Yang Hongyang Add a netfilter object based on QOM. A netfilter is attached to a netdev, captures all network packets that pass through the netdev. When we delete the netdev, we also delete the netfilter object attached to it, because if the netdev is removed, the

[Qemu-devel] [PULL 04/14] vmxnet3: Add support for VMXNET3_CMD_GET_ADAPTIVE_RING_INFO command

2015-10-12 Thread Jason Wang
From: Shmulik Ladkani Some drivers (e.g. vmware-tools) issue the VMXNET3_CMD_GET_ADAPTIVE_RING_INFO command. Currently, due to lack of support, a bogus value (-1) is returned. Support this command, returning the "adaptive-ring disabled" flag. Signed-off-by:

[Qemu-devel] [PATCH v2 0/5] virtio-9p: hotplug and migration support

2015-10-12 Thread Greg Kurz
Hi, We already have a blocker to prevent migration of an active virtio-9p device. But in fact, there is no migration support at all for 9p, even if the device is considered to be quiescent (when the VirtFS share is not mounted): migration succeeds but the device is lost in the restarted guest.

[Qemu-devel] [PATCH v7 3/5] block: support passing 'backing': '' to 'blockdev-add'

2015-10-12 Thread Alberto Garcia
Passing an empty string allows opening an image but not its backing file. This was already described in the API documentation, only the implementation was missing. This is useful for creating snapshots using images opened with blockdev-add, since they are not supposed to have a backing image

[Qemu-devel] [PATCH v7 5/5] block: add tests for the 'blockdev-snapshot' command

2015-10-12 Thread Alberto Garcia
Signed-off-by: Alberto Garcia Reviewed-by: Max Reitz --- tests/qemu-iotests/085 | 102 ++--- tests/qemu-iotests/085.out | 34 ++- 2 files changed, 128 insertions(+), 8 deletions(-) diff --git

[Qemu-devel] [PATCH v7 4/5] block: add a 'blockdev-snapshot' QMP command

2015-10-12 Thread Alberto Garcia
One of the limitations of the 'blockdev-snapshot-sync' command is that it does not allow passing BlockdevOptions to the newly created snapshots, so they are always opened using the default values. Extending the command to allow passing options is not a practical solution because there is overlap

[Qemu-devel] [PATCH 3/3] aio: Introduce aio-epoll.c

2015-10-12 Thread Fam Zheng
To minimize code duplication, epoll is hooked into aio-posix's aio_poll() instead of rolling its own. This approach also has the advantage that both compile time and run time ability to switch from between the two: 1) If configure script didn't find epoll, the libqemustub.a nop functions will be

[Qemu-devel] [PATCH 2/3] aio: Introduce aio_context_setup

2015-10-12 Thread Fam Zheng
This is the place to initialize platform specific bits of AioContext. Signed-off-by: Fam Zheng --- aio-posix.c | 4 aio-win32.c | 4 async.c | 14 -- include/block/aio-internal.h | 2 ++ 4 files

[Qemu-devel] [PATCH V2] hw/pxb: add chassis_nr property

2015-10-12 Thread Marcel Apfelbaum
Add a chassis_nr property instead of using PXB bus number as internal bridge's chassis nr. Suggested-by: Michael S. Tsirkin Signed-off-by: Marcel Apfelbaum --- v1->v2: - Rebased on master docs/pci_expander_bridge.txt| 7 +++

Re: [Qemu-devel] [PATCH v3 08/32] exec: allow memory to be allocated from any kind of path

2015-10-12 Thread Michael S. Tsirkin
On Sun, Oct 11, 2015 at 11:52:40AM +0800, Xiao Guangrong wrote: > Currently file_ram_alloc() is designed for hugetlbfs, however, the memory > of nvdimm can come from either raw pmem device eg, /dev/pmem, or the file > locates at DAX enabled filesystem > > So this patch let it work on any kind of

[Qemu-devel] [PULL v2 3/5] virtio dataplane: adapt dataplane for virtio Version 1

2015-10-12 Thread Stefan Hajnoczi
From: Pierre Morel Let dataplane allocate different region for the desc/avail/used ring regions. Take VIRTIO_RING_F_EVENT_IDX into account to increase the used/avail rings accordingly. [Fix 32-bit builds by changing 16lx format specifier to HWADDR_PRIx. --Stefan]

[Qemu-devel] [PULL v2 4/5] block: switch from g_slice allocator to malloc

2015-10-12 Thread Stefan Hajnoczi
From: Paolo Bonzini Simplify memory allocation by sticking with a single API. GSlice is not that fast anyway (tcmalloc/jemalloc are better). Signed-off-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- block/io.c|

[Qemu-devel] [PULL v2 5/5] sdhci.c: Limit the maximum block size

2015-10-12 Thread Stefan Hajnoczi
From: Alistair Francis It is possible for the guest to set an invalid block size which is larger then the fifo_buffer[] array. This could cause a buffer overflow. To avoid this limit the maximum size of the blksize variable. Signed-off-by: Alistair Francis

[Qemu-devel] [PATCH 2/3] configure: require glib 2.26

2015-10-12 Thread marcandre . lureau
From: Marc-André Lureau This allows to use the GLIB_VERSION macros that will help to ensure the newer symbols are not being used (or with compatibility code). Signed-off-by: Marc-André Lureau --- configure | 5 +++-- 1 file changed, 3

[Qemu-devel] [PATCH 3/3] Remove glib < 2.26 compatibility code

2015-10-12 Thread marcandre . lureau
From: Marc-André Lureau Since 2.26 is now the minimum. Signed-off-by: Marc-André Lureau --- include/glib-compat.h | 4 tests/vhost-user-test.c | 4 2 files changed, 8 deletions(-) diff --git a/include/glib-compat.h

Re: [Qemu-devel] [PATCH v7 05/14] qapi: Lazy creation of array types

2015-10-12 Thread Markus Armbruster
Eric Blake writes: > On 10/07/2015 10:38 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> Commit ac88219a had several TODO markers about whether we needed >>> to automatically create the corresponding array type alongside >>> any other type. It

[Qemu-devel] [PULL 10/14] netfilter: add an API to pass the packet to next filter

2015-10-12 Thread Jason Wang
From: Yang Hongyang add an API qemu_netfilter_pass_to_next() to pass the packet to next filter. Signed-off-by: Yang Hongyang Reviewed-by: Thomas Huth Signed-off-by: Jason Wang --- include/net/filter.h | 7

Re: [Qemu-devel] Quick question on NVME on qemu

2015-10-12 Thread Kevin Wolf
Am 12.10.2015 um 10:05 hat Igor Mammedov geschrieben: > On Sat, 10 Oct 2015 00:39:43 -0700 > sahlot arvind wrote: > > > Hello, > > > > Does qemu emulate a proper NVMe controller? Can someone please tell me how > s far as I'm aware, QEMU doesn't emulate any NVMe controller

Re: [Qemu-devel] [PATCH 1/2] kvm/x86: Hyper-V synthetic interrupt controller

2015-10-12 Thread Paolo Bonzini
On 12/10/2015 10:48, Cornelia Huck wrote: > Going back to Paolo's original question, I think changing the check > to !KVM_IRQ_ROUTING_IRQCHIP makes sense, if I understand the code > correctly. They seem to be the only special one. Great. Roman, Denis, can you do this then? Thanks, Paolo

[Qemu-devel] [PATCH v2 4/5] virtio-9p: add unrealize handler

2015-10-12 Thread Greg Kurz
This patch allows to hot-unplug a quiescent virtio-9p device, and free its allocated resources. A refcount is added to the v9fs thread pool, so that its resources are freed as well when the last virtio-9p device is unplugged. Note that we have an unplug blocker which prevents this code to be

[Qemu-devel] [PATCH v2 5/5] virtio-9p: add savem handlers

2015-10-12 Thread Greg Kurz
We don't support migration of mounted 9p shares. This is handled by a migration blocker. One would expect, however, to be able to migrate if the share is unmounted. Unfortunately virtio-9p-device does not register savevm handlers at all ! Migration succeeds and leaves the guest with a dangling

Re: [Qemu-devel] simple qmp core dump

2015-10-12 Thread Markus Armbruster
Eric Blake writes: > Just noticed this core dump (I was actually trying to exceed the 1024 > hard-baked limit in qmp-input-visitor.c which tries to set an Error > object, but it looks like that limit was unreachable due to this earlier > assertion): > > $ printf

Re: [Qemu-devel] i386: SSE 4 implementation does not match bare metal

2015-10-12 Thread Paolo Bonzini
On 12/10/2015 10:21, Florian Weimer wrote: > We received a bug report that the SSE-4.2-based strstr in glibc 2.17 was > misbehaving and returned NULL for certain inputs, even though the search > pattern is clearly present in the subject string. I'm attaching a test > case. You can run it as

[Qemu-devel] [PULL v2 1/5] sdhci: Pass drive parameter to sdhci-pci via qdev property

2015-10-12 Thread Stefan Hajnoczi
From: Kevin O'Connor Commit 19109131 disabled the sdhci-pci support because it used drive_get_next(). This patch reenables sdhci-pci and changes it to pass the drive via a qdev property - for example: -device sdhci-pci,drive=drive0 -drive id=drive0,if=sd,file=myimage

[Qemu-devel] [PATCH 0/3] Use glib 2.26 version macros

2015-10-12 Thread marcandre . lureau
From: Marc-André Lureau Bump glib requirement to be able to use the GLIB_VERSION macros. Marc-André Lureau (3): hw/acpi/aml-build: remove useless glib version check configure: require glib 2.26 Remove glib < 2.26 compatibility code configure |

[Qemu-devel] [PATCH 1/3] hw/acpi/aml-build: remove useless glib version check

2015-10-12 Thread marcandre . lureau
From: Marc-André Lureau 2.22 is the minimum version required Signed-off-by: Marc-André Lureau --- hw/acpi/aml-build.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 0d4b324..a00a0ab

Re: [Qemu-devel] [PATCH 1/2] kvm/x86: Hyper-V synthetic interrupt controller

2015-10-12 Thread Roman Kagan
On Mon, Oct 12, 2015 at 10:58:36AM +0200, Paolo Bonzini wrote: > On 12/10/2015 10:48, Cornelia Huck wrote: > > Going back to Paolo's original question, I think changing the check > > to !KVM_IRQ_ROUTING_IRQCHIP makes sense, if I understand the code > > correctly. They seem to be the only special

[Qemu-devel] [PATCH v2 04/16] ui: convert VNC startup code to use SocketAddress

2015-10-12 Thread Daniel P. Berrange
The VNC code is currently using QemuOpts to configure the sockets connections / listeners it needs. Convert it to use SocketAddress to bring it in line with modern QAPI based code elsewhere in QEMU. Signed-off-by: Daniel P. Berrange --- ui/vnc.c | 161

[Qemu-devel] [PULL 09/14] net/queue: introduce NetQueueDeliverFunc

2015-10-12 Thread Jason Wang
From: Yang Hongyang net/queue.c has logic to send/queue/flush packets but a qemu_deliver_packet_iov() call is hardcoded. Abstract this func so that we can use our own deliver function in netfilter. Signed-off-by: Yang Hongyang Cc: Stefan Hajnoczi

[Qemu-devel] [PULL 14/14] tests: add test cases for netfilter object

2015-10-12 Thread Jason Wang
From: Yang Hongyang Using qtest qmp interface to implement following cases: 1) add/remove netfilter 2) add a netfilter then delete the netdev 3) add/remove more than one netfilters 4) add more than one netfilters and then delete the netdev Signed-off-by: Yang Hongyang

Re: [Qemu-devel] [PATCH 0/2] qga: non-blocking fd cleanups

2015-10-12 Thread Denis V. Lunev
On 10/07/2015 01:59 PM, Denis V. Lunev wrote: This patchset is reincarnation of one patch discussed in the scope of QEMU 2.4 and rejected for that time. Actually we should use non-blocking descriptors in QGA on Windows in guest-file-open exactly like was done for Posix. Signed-off-by: Denis V.

[Qemu-devel] [PATCH v7 0/5] Add 'blockdev-snapshot' command

2015-10-12 Thread Alberto Garcia
This series adds a new 'blockdev-snapshot' command, that is similar to 'blockdev-snapshot-sync' but takes references to two existing block devices. This depends on Max's "BlockBackend and media" series: https://lists.gnu.org/archive/html/qemu-block/2015-09/msg00497.html v7: - Rebase on top of

[Qemu-devel] [PATCH v7 2/5] block: rename BlockdevSnapshot to BlockdevSnapshotSync

2015-10-12 Thread Alberto Garcia
We will introduce the 'blockdev-snapshot' command that will require its own struct for the parameters, so we need to rename this one in order to avoid name clashes. Signed-off-by: Alberto Garcia Reviewed-by: Eric Blake Reviewed-by: Max Reitz

[Qemu-devel] [Bug 1465935] Re: kvm_irqchip_commit_routes: Assertion `ret == 0' failed

2015-10-12 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu - 1:2.3+dfsg-5ubuntu9 --- qemu (1:2.3+dfsg-5ubuntu9) wily; urgency=low * debian/patches/upstream-fix-irq-route-entries.patch Fix "kvm_irqchip_commit_routes: Assertion 'ret == 0' failed" (LP: #1465935) -- Stefan Bader

[Qemu-devel] [PATCH v2 05/16] osdep: add qemu_fork() wrapper for safely handling signals

2015-10-12 Thread Daniel P. Berrange
When using regular fork() the child process of course inherits all the parents' signal handlers. If the child then proceeds to close() any open file descriptors, it may break some of those registered signal handlers. The child generally does not want to ever run any of the signal handlers tha

[Qemu-devel] [PATCH v2 00/16] Introduce I/O channels framework

2015-10-12 Thread Daniel P. Berrange
This series of patches is a followup submission for review of another chunk of my large series supporting TLS across chardevs, VNC and migration, previously shown here: RFC: https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg00829.html v1:

  1   2   3   4   5   >