[Qemu-devel] [PATCH 1/3] virtio-blk: Factor common checks out of virtio_blk_handle_read/write()

2014-06-05 Thread Markus Armbruster
Signed-off-by: Markus Armbruster arm...@redhat.com --- hw/block/virtio-blk.c | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c index 8a568e5..f2b4dca 100644 --- a/hw/block/virtio-blk.c +++

[Qemu-devel] [PATCH V6 02/29] qapi: add event helper functions

2014-06-05 Thread Wenchao Xia
This file holds some functions that do not need to be generated. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Reviewed-by: Eric Blake ebl...@redhat.com --- include/qapi/qmp-event.h | 27 + qapi/Makefile.objs |1 + qapi/qmp-event.c | 74

Re: [Qemu-devel] [PATCH] configure: Enable dead code (lzo, snappy, quorum)

2014-06-05 Thread Benoît Canet
The Tuesday 29 Apr 2014 à 08:21:16 (+0200), Stefan Weil wrote : Those options were not enabled by default, even when the build environment would have supported them, so the corresponding code was not compiled in normal test builds like on build bots. Signed-off-by: Stefan Weil

[Qemu-devel] [PATCH V6 03/29] qapi script: add event support

2014-06-05 Thread Wenchao Xia
qapi-event.py will parse the schema and generate qapi-event.c, then the API in qapi-event.c can be used to handle event in qemu code. All API have prefix qapi_event. The script mainly includes two parts: generate API for each event define, generate an enum type for all defined events. Since in

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

2014-06-05 Thread Wenchao Xia
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 generate API and a batch of parameters for each event define, it doesn't generate a

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

2014-06-05 Thread Wenchao Xia
This patch also eliminates build time warning caused by QAPI_EVENT_MAX = 0. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 15 --- qapi-event.json | 12 vl.c|3 ++- 3 files changed, 14 insertions(+), 16

[Qemu-devel] [PATCH V6 04/29] test: add test cases for qapi event

2014-06-05 Thread Wenchao Xia
These cases will verify whether the expected qdict is built. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- tests/Makefile | 16 ++- tests/qapi-schema/qapi-schema-test.json | 12 ++ tests/qapi-schema/qapi-schema-test.out | 10 +- tests/test-qmp-event.c

[Qemu-devel] [PATCH V6 12/29] qapi event: convert RESUME

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 12 qapi-event.json |9 + vl.c|2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/docs/qmp/qmp-events.txt b/docs/qmp/qmp-events.txt index

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

2014-06-05 Thread Wenchao Xia
Now monitor has been hooked on the new event mechanism, so the patches later can convert event callers one by one. Most code are copied from old monitor_protocol_* functions with some modification. Note that two build time warnings will be raised after this patch. One is caused by no caller of

[Qemu-devel] [PATCH V6 11/29] qapi event: convert STOP

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- cpus.c |5 +++-- docs/qmp/qmp-events.txt | 12 qapi-event.json |9 + 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/cpus.c b/cpus.c index dd7ac13..28abb11 100644 ---

[Qemu-devel] [PATCH V6 05/29] qapi: adjust existing defines

2014-06-05 Thread Wenchao Xia
In order to let event defines use existing types later, instead of redefine new ones, some old type defines for spice and vnc are changed, and BlockErrorAction is moved from block.h to qapi schema. Note that BlockErrorAction is not merged with BlockdevOnError. One thing not perfect is that,

[Qemu-devel] [PATCH V6 18/29] qapi event: convert DEVICE_DELETED

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 18 -- hw/core/qdev.c | 12 ++-- qapi-event.json | 16 3 files changed, 18 insertions(+), 28 deletions(-) diff --git a/docs/qmp/qmp-events.txt

[Qemu-devel] [PATCH V6 13/29] qapi event: convert SUSPEND

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 12 qapi-event.json | 10 ++ vl.c|2 +- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/docs/qmp/qmp-events.txt b/docs/qmp/qmp-events.txt index

[Qemu-devel] [PATCH V6 07/29] qapi: add new schema file qapi-event.json

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- Makefile | 12 qapi-schema.json |2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 qapi-event.json diff --git a/Makefile b/Makefile index 237657e..554fb2d 100644 --- a/Makefile +++

[Qemu-devel] [PATCH V6 09/29] qapi event: convert POWERDOWN

2014-06-05 Thread Wenchao Xia
There is no existing comments for POWERDOWN in doc/qmp/qmp-events.txt, so no change on it like other conversion patch. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- qapi-event.json | 10 ++ vl.c|2 +- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] [PATCH V6 15/29] qapi event: convert WAKEUP

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 12 qapi-event.json |9 + vl.c|2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/docs/qmp/qmp-events.txt b/docs/qmp/qmp-events.txt index

[Qemu-devel] [PATCH V6 14/29] qapi event: convert SUSPEND_DISK

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 14 -- hw/acpi/core.c |4 ++-- qapi-event.json | 12 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/docs/qmp/qmp-events.txt b/docs/qmp/qmp-events.txt

[Qemu-devel] [PATCH V6 20/29] qapi event: convert BLOCK_IO_ERROR and BLOCK_JOB_ERROR

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- block.c | 36 +++-- blockjob.c|6 - docs/qmp/qmp-events.txt | 47 - include/block/block_int.h |3 -- qapi-event.json

[Qemu-devel] [PATCH V6 22/29] qapi event: convert other BLOCK_JOB events

2014-06-05 Thread Wenchao Xia
Since BLOCK_JOB_COMPLETED, BLOCK_JOB_CANCELLED, BLOCK_JOB_READY are related, converts them in one patch. The block_job_event_* functions are used to keep encapsulation of BlockJob structure. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- block/mirror.c |2 +- blockdev.c

[Qemu-devel] [PATCH V6 26/29] qapi event: convert BALLOON_CHANGE

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- balloon.c | 13 - docs/qmp/qmp-events.txt| 17 - hw/virtio/virtio-balloon.c |6 -- include/sysemu/balloon.h |2 -- monitor.c |3 +-- qapi-event.json

[Qemu-devel] [PATCH V6 29/29] qapi event: clean up

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- include/monitor/monitor.h | 40 monitor.c | 216 +--- stubs/Makefile.objs|1 - stubs/mon-protocol-event.c |6 -- 4 files changed, 3 insertions(+), 260

Re: [Qemu-devel] [PATCH] Add support for MAP_NORESERVE mmap flag.

2014-06-05 Thread Christophe Lyon
On 02/03/14 18:46, Peter Maydell wrote: On 3 February 2014 16:04, Christophe Lyon christophe.l...@st.com wrote: From: Christophe Lyon christophe.l...@linaro.org mmap_flags_tbl contains a list of mmap flags, and how to map them to the target. This patch adds MAP_NORESERVE, which was missing to

[Qemu-devel] [PATCH V6 28/29] qapi event: convert QUORUM events

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- block/quorum.c | 25 - docs/qmp/qmp-events.txt | 41 - monitor.c |6 +++--- qapi-event.json | 38 ++ 4

[Qemu-devel] Bridge iface not replying to ping requests

2014-06-05 Thread Ayaz Akram
For the background I am trying to make networking work on Octeon Linux guest(run on QEMU) and using e1000 ethernet iface for this purpose. At the moment if I ping bridge iface (running command on guest), bridge iface receives ICMP echo request message but does not reply(I have observed using

Re: [Qemu-devel] [RFC 2/5] acpi: introduce TYPE_ACPI_DEVICE_IF interface

2014-06-05 Thread Eric Blake
On 06/05/2014 04:10 AM, Igor Mammedov wrote: And my question in 4/5 remains - should 'source' and/or 'status' be defined as an enum rather than an open-coded int? Using enum for 'source' event, might be possible if we restrict ourselves to a limit set of supported values and ignore the rest

Re: [Qemu-devel] [PATCH] Add support for MAP_NORESERVE mmap flag.

2014-06-05 Thread Peter Maydell
On 5 June 2014 13:23, Christophe Lyon christophe.l...@st.com wrote: On 02/03/14 18:46, Peter Maydell wrote: On 3 February 2014 16:04, Christophe Lyon christophe.l...@st.com wrote: From: Christophe Lyon christophe.l...@linaro.org mmap_flags_tbl contains a list of mmap flags, and how to map

[Qemu-devel] [PATCH v2 1/2] vl: allow other threads to do qemu_system_vmstop_request

2014-06-05 Thread Paolo Bonzini
There patch protects vmstop_requested with a lock and introduces qemu_system_vmstop_request_prepare. Together with the new call to qemu_vmstop_requested in vm_start, qemu_system_vmstop_request_prepare avoids a race where the VM could remain stopped even though the iostatus of a block device has

[Qemu-devel] [PATCH v2 0/2] block: thread-safety patches for virtio-blk dataplane rerror/werror

2014-06-05 Thread Paolo Bonzini
With virtio-blk dataplane, I/O errors might occur while QEMU is not in the main I/O thread. This makes the block layer's bdrv_error_action() function thread-safe (modulo changes in the monitor to make QMP events thread-safe too, already posted). Thanks to Kevin for discussing v1, the ideas are

[Qemu-devel] [PATCH v2 2/2] block: asynchronously stop the VM on I/O errors

2014-06-05 Thread Paolo Bonzini
With virtio-blk dataplane, I/O errors might occur while QEMU is not in the main I/O thread. However, it's invalid to call vm_stop when we're neither in a VCPU thread nor in the main I/O thread, even if we were to take the iothread mutex around it. To avoid this problem, we can raise a request to

[Qemu-devel] [PATCH V6 25/29] qapi event: convert SPICE events

2014-06-05 Thread Wenchao Xia
SPICE_INITIALIZED, SPICE_CONNECTED, SPICE_DISCONNECTED and SPICE_MIGRATE_COMPLETED are converted in one patch, since they use some common functions. inet_strfamily() is removed since no more caller exist now. Note that there is no existing doc for SPICE_MIGRATE_COMPLETED in

Re: [Qemu-devel] 答复: Expansion Ratio Issue

2014-06-05 Thread Sergey Fedorov
On 05.06.2014 12:02, Alex Bennée wrote: Chaos Shu writes: Hi I'm running SPEC CPU2006 on three kinds of situation, native aarch64 binary and emulator x86_64 system running SPEC CPU2006 and linux user mode level running x86_64 SPEC CPU2006 binary. To find where the performance lose,

Re: [Qemu-devel] [PATCH v8 4/4] sPAPR: Implement sPAPRPHBClass::eeh_handler

2014-06-05 Thread Alexander Graf
On 05.06.14 08:53, Gavin Shan wrote: The patch implements sPAPRPHBClass::eeh_handler so that the EEH RTAS requests can be routed to VFIO for further handling. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com Just to make sure I grasp this correctly. We have PHBs that are VFIO PHBs and

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexander Graf
On 05.06.14 08:43, Alexey Kardashevskiy wrote: On 06/05/2014 03:49 PM, Alexey Kardashevskiy wrote: POWER KVM supports an KVM_CAP_SPAPR_TCE capability which allows allocating TCE tables in the host kernel memory and handle H_PUT_TCE requests targeted to specific LIOBN (logical bus number) right

Re: [Qemu-devel] 答复: Expansion Ratio Issue

2014-06-05 Thread Peter Maydell
On 5 June 2014 14:00, Sergey Fedorov serge.f...@gmail.com wrote: Thanks for replying! I used to think about Drystone, gzim, gcc in user mode. In system mode, Linux boot up and, again, Drystone, gzim, gcc. Probably worth making sure you also test workloads that do different things in multiple

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexey Kardashevskiy
On 06/05/2014 11:06 PM, Alexander Graf wrote: On 05.06.14 08:43, Alexey Kardashevskiy wrote: On 06/05/2014 03:49 PM, Alexey Kardashevskiy wrote: POWER KVM supports an KVM_CAP_SPAPR_TCE capability which allows allocating TCE tables in the host kernel memory and handle H_PUT_TCE requests

Re: [Qemu-devel] [PATCH] linux-user/uname: Return correct uname string for x86_64

2014-06-05 Thread Riku Voipio
Hi, On Tue, Jun 03, 2014 at 03:07:59PM +0100, Peter Maydell wrote: Ping! Looks good, I'll collect this and other linux-user patches and submit linux-user update by tomorrow. Riku thanks -- PMM On 10 May 2014 12:25, Peter Maydell peter.mayd...@linaro.org wrote: We were returning the

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

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 19 --- hw/watchdog/watchdog.c | 23 +++ monitor.c |2 +- qapi-event.json | 15 +++ qapi-schema.json| 24

Re: [Qemu-devel] [PATCH v8 4/4] sPAPR: Implement sPAPRPHBClass::eeh_handler

2014-06-05 Thread Alexey Kardashevskiy
On 06/05/2014 11:00 PM, Alexander Graf wrote: On 05.06.14 08:53, Gavin Shan wrote: The patch implements sPAPRPHBClass::eeh_handler so that the EEH RTAS requests can be routed to VFIO for further handling. Signed-off-by: Gavin Shan gws...@linux.vnet.ibm.com Just to make sure I grasp this

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexander Graf
On 05.06.14 15:10, Alexey Kardashevskiy wrote: On 06/05/2014 11:06 PM, Alexander Graf wrote: On 05.06.14 08:43, Alexey Kardashevskiy wrote: On 06/05/2014 03:49 PM, Alexey Kardashevskiy wrote: POWER KVM supports an KVM_CAP_SPAPR_TCE capability which allows allocating TCE tables in the host

Re: [Qemu-devel] [PATCH] linux-user/uname: Return correct uname string for x86_64

2014-06-05 Thread Peter Maydell
On 5 June 2014 14:11, Riku Voipio riku.voi...@iki.fi wrote: Hi, On Tue, Jun 03, 2014 at 03:07:59PM +0100, Peter Maydell wrote: Ping! Looks good, I'll collect this and other linux-user patches and submit linux-user update by tomorrow. Does that include the set you did fixing gcc 4.9

[Qemu-devel] [PATCH V6 21/29] qapi event: convert BLOCK_IMAGE_CORRUPTED

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- block/qcow2-refcount.c | 14 -- docs/qmp/qmp-events.txt | 22 -- qapi-event.json | 22 ++ 3 files changed, 30 insertions(+), 28 deletions(-) diff --git a/block/qcow2-refcount.c

[Qemu-devel] [PATCH V6 01/29] os-posix: include sys/time.h

2014-06-05 Thread Wenchao Xia
Since gettimeofday() is used in this header file as a macro define, include the function's define header file, to avoid compile warning when other file include os-posix.h. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com Reviewed-by: Eric Blake ebl...@redhat.com --- include/sysemu/os-posix.h |

Re: [Qemu-devel] [PATCH v28 00/33] replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Stefan Hajnoczi
On Thu, Jun 05, 2014 at 05:20:39PM +0800, Chunyan Liu wrote: This patch series is to replace QEMUOptionParameter with QemuOpts, so that only one Qemu Option structure is kept in QEMU code. --- Changes to v27: * rebase to git master (code has been updated in this part since v27 sent

Re: [Qemu-devel] [PATCH v3 15/21] rbd: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Am 03.06.2014 um 17:43 hat Benoît Canet geschrieben: The Tuesday 03 Jun 2014 à 15:10:56 (+0200), Kevin Wolf wrote : Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations

[Qemu-devel] [PATCH V6 19/29] qapi event: convert DEVICE_TRAY_MOVED

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- block.c | 21 +++-- docs/qmp/qmp-events.txt | 18 -- qapi-event.json | 15 +++ 3 files changed, 22 insertions(+), 32 deletions(-) diff --git a/block.c b/block.c index

Re: [Qemu-devel] [RFC 3/5] nbd: Use aio_set_fd_handler2()

2014-06-05 Thread Stefan Hajnoczi
On Thu, Jun 05, 2014 at 11:27:49AM +0200, Paolo Bonzini wrote: Il 05/06/2014 10:12, Stefan Hajnoczi ha scritto: On Wed, Jun 04, 2014 at 08:02:06PM +0200, Paolo Bonzini wrote: Il 04/06/2014 14:37, Stefan Hajnoczi ha scritto: Why is this design cleaner? Because NBD code doesn't have to worry

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexey Kardashevskiy
On 06/05/2014 11:15 PM, Alexander Graf wrote: On 05.06.14 15:10, Alexey Kardashevskiy wrote: On 06/05/2014 11:06 PM, Alexander Graf wrote: On 05.06.14 08:43, Alexey Kardashevskiy wrote: On 06/05/2014 03:49 PM, Alexey Kardashevskiy wrote: POWER KVM supports an KVM_CAP_SPAPR_TCE capability

Re: [Qemu-devel] [PATCH v7 3/4] spapr_pci_vfio: Add spapr-pci-vfio-host-bridge to support vfio

2014-06-05 Thread Alexander Graf
On 05.06.14 07:50, Alexey Kardashevskiy wrote: The patch adds a spapr-pci-vfio-host-bridge device type which is a PCI Host Bridge with VFIO support. The new device inherits from the spapr-pci-host-bridge device and adds an iommu property which is an IOMMU id. This ID represents a minimal entity

Re: [Qemu-devel] [PATCH v3 14/21] raw-win32: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Am 03.06.2014 um 17:46 hat Benoît Canet geschrieben: The Tuesday 03 Jun 2014 à 15:10:55 (+0200), Kevin Wolf wrote : Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations

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

2014-06-05 Thread Wenchao Xia
This patch also eliminates build time warning caused by no caller of monitor_qapi_event_throttle(). Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 16 hw/ppc/spapr_rtas.c |3 ++- hw/timer/mc146818rtc.c |3 ++-

[Qemu-devel] [PATCH v4 09/21] parallels: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the parallels block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 03/21] bochs: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the bochs block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 04/21] cloop: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the cloop block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 00/21] block: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
A not too small part of the recent CVEs were DoS scenarios by letting qemu abort with too large memory allocations. We generally fixed these cases by setting some limits on values read from image files that influence the size of allocations. Because we still need to allow reading large images,

[Qemu-devel] [PATCH v4 14/21] raw-win32: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the raw-win32 block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH V6 27/29] qapi event: convert GUEST_PANICKED

2014-06-05 Thread Wenchao Xia
'monitor.h' is still included in target-s390x/kvm.c, since I have no good way to verify whether other code need it on my x86 host. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 14 -- hw/misc/pvpanic.c | 13 ++--- qapi-event.json

[Qemu-devel] [PATCH v4 18/21] vmdk: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the vmdk block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 10/21] qcow1: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the qcow1 block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 17/21] vhdx: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the vhdx block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 15/21] rbd: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the rbd block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 01/21] block: Introduce qemu_try_blockalign()

2014-06-05 Thread Kevin Wolf
This function returns NULL instead of aborting when an allocation fails. Signed-off-by: Kevin Wolf kw...@redhat.com Reviewed-by: Benoit Canet ben...@irqsave.net --- block.c | 13 + include/block/block.h | 1 + include/qemu/osdep.h | 1 + util/oslib-posix.c| 16

[Qemu-devel] [PATCH v4 16/21] vdi: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the vdi block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH V6 23/29] qapi event: convert NIC_RX_FILTER_CHANGED

2014-06-05 Thread Wenchao Xia
Param name is declared as optional, since in code it is an optional one. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 17 - hw/net/virtio-net.c | 13 +++-- qapi-event.json | 15 +++ 3 files changed, 18

[Qemu-devel] [PATCH v4 19/21] vpc: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the vpc block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

Re: [Qemu-devel] [PATCH v2] target-arm: implement PD0/PD1 bits for TTBCR

2014-06-05 Thread Greg Bellows
Reviewed by: Greg Bellows greg.bell...@linaro.org On 5 June 2014 05:39, Fabian Aggeler aggel...@ethz.ch wrote: Corrected handling of writes to TTBCR for ARMv8 (previously UNK/SBZP bits are not RES0) and ARMv7 (new bits PD0/PD1 for CPUs with Security Extensions). Bits PD0/PD1 are now

[Qemu-devel] [PATCH v4 11/21] qcow2: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the qcow2 block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 13/21] raw-posix: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the raw-posix block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH V6 24/29] qapi event: convert VNC events

2014-06-05 Thread Wenchao Xia
Since VNC_CONNECTED, VNC_DISCONNECTED, VNC_INITIALIZED share some common functions, converts them in one patch. Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 90 -- qapi-event.json | 49 +

Re: [Qemu-devel] Problems compiling HEAD on Mac OS X 10.9.2

2014-06-05 Thread Rainer Müller
On 2014-03-14 13:29, Paolo Bonzini wrote: Il 13/03/2014 19:48, Peter Maydell ha scritto: Yep, here we are: LIBSSH2_LIBS=-L/opt/local/lib -lssh2 -Wl,-headerpad_max_install_names -arch x86_64 CURL_LIBS=-L/opt/local/lib -lcurl rules.mak is incorrectly reordering the contents of these and

[Qemu-devel] [PATCH V6 10/29] qapi event: convert RESET

2014-06-05 Thread Wenchao Xia
Signed-off-by: Wenchao Xia wenchaoq...@gmail.com --- docs/qmp/qmp-events.txt | 12 qapi-event.json |9 + vl.c|2 +- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/docs/qmp/qmp-events.txt b/docs/qmp/qmp-events.txt index

Re: [Qemu-devel] [PATCHv3 RESEND] block: introduce BDRV_O_SEQUENTIAL

2014-06-05 Thread Stefan Hajnoczi
On Thu, Jun 05, 2014 at 10:13:04AM +0200, Kevin Wolf wrote: Am 05.06.2014 um 10:09 hat Peter Lieven geschrieben: On 05.06.2014 09:53, Stefan Hajnoczi wrote: On Wed, Jun 04, 2014 at 05:31:48PM +0200, Peter Lieven wrote: Am 04.06.2014 17:12, schrieb Stefan Hajnoczi: On Fri, May 30, 2014 at

[Qemu-devel] [PATCH v4 05/21] curl: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the curl block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH] rbd: Fix leaks in rbd_start_aio() error path

2014-06-05 Thread Kevin Wolf
Signed-off-by: Kevin Wolf kw...@redhat.com --- block/rbd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/rbd.c b/block/rbd.c index 09af484..94e2bfd 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -684,13 +684,16 @@ static BlockDriverAIOCB

[Qemu-devel] [PATCH v4 21/21] qcow2: Return useful error code in refcount_init()

2014-06-05 Thread Kevin Wolf
From: Max Reitz mre...@redhat.com If bdrv_pread() returns an error, it is very unlikely that it was ENOMEM. In this case, the return value should be passed along; as bdrv_pread() will always either return the number of bytes read or a negative value (the error code), the condition for checking

[Qemu-devel] [PATCH v4 06/21] dmg: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the dmg block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 12/21] qed: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the qed block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 20/21] mirror: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the mirror block job. Signed-off-by: Kevin Wolf kw...@redhat.com

Re: [Qemu-devel] [PATCH v10 01/18] Add kvm_eventfds_enabled function

2014-06-05 Thread Paolo Bonzini
Il 27/05/2014 14:03, Nikolay Nikolaev ha scritto: Add a function to check if the eventfd capability is present in KVM in the host kernel. Signed-off-by: Antonios Motakis a.mota...@virtualopensystems.com Signed-off-by: Nikolay Nikolaev n.nikol...@virtualopensystems.com --- include/sysemu/kvm.h

[Qemu-devel] [PATCH v4 07/21] iscsi: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the iscsi block driver. Signed-off-by: Kevin Wolf kw...@redhat.com Acked-by:

Re: [Qemu-devel] [RFC] image-fuzzer: Trivial test runner

2014-06-05 Thread Stefan Hajnoczi
On Thu, Jun 05, 2014 at 12:49:36PM +0400, M.Kustova wrote: On Wed, Jun 4, 2014 at 6:26 PM, Stefan Hajnoczi stefa...@gmail.com wrote: On Sat, May 31, 2014 at 01:56:46PM +0400, Maria Kustova wrote: +def execute(self, q_args, seed, size=8*512): + Execute a test. + +The

Re: [Qemu-devel] [PATCH v28 00/33] replace QEMUOptionParameter with QemuOpts

2014-06-05 Thread Markus Armbruster
Stefan Hajnoczi stefa...@gmail.com writes: On Thu, Jun 05, 2014 at 05:20:39PM +0800, Chunyan Liu wrote: This patch series is to replace QEMUOptionParameter with QemuOpts, so that only one Qemu Option structure is kept in QEMU code. --- Changes to v27: * rebase to git master (code has

Re: [Qemu-devel] [PATCH v7 1/4] spapr_iommu: Make in-kernel TCE table optional

2014-06-05 Thread Alexander Graf
On 05.06.14 15:33, Alexey Kardashevskiy wrote: On 06/05/2014 11:15 PM, Alexander Graf wrote: On 05.06.14 15:10, Alexey Kardashevskiy wrote: On 06/05/2014 11:06 PM, Alexander Graf wrote: On 05.06.14 08:43, Alexey Kardashevskiy wrote: On 06/05/2014 03:49 PM, Alexey Kardashevskiy wrote: POWER

Re: [Qemu-devel] [PATCH] rbd: Fix leaks in rbd_start_aio() error path

2014-06-05 Thread Benoît Canet
The Thursday 05 Jun 2014 à 15:55:27 (+0200), Kevin Wolf wrote : Signed-off-by: Kevin Wolf kw...@redhat.com --- block/rbd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/rbd.c b/block/rbd.c index 09af484..94e2bfd 100644 --- a/block/rbd.c +++ b/block/rbd.c

[Qemu-devel] [PATCH v4 08/21] nfs: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses the allocations in the nfs block driver. Signed-off-by: Kevin Wolf kw...@redhat.com

[Qemu-devel] [PATCH v4 02/21] block: Handle failure for potentially large allocations

2014-06-05 Thread Kevin Wolf
Some code in the block layer makes potentially huge allocations. Failure is not completely unexpected there, so avoid aborting qemu and handle out-of-memory situations gracefully. This patch addresses bounce buffer allocations in block.c. While at it, convert bdrv_commit() from plain g_malloc()

Re: [Qemu-devel] [PATCH] rbd: Fix leaks in rbd_start_aio() error path

2014-06-05 Thread Kevin Wolf
Am 05.06.2014 um 16:15 hat Benoît Canet geschrieben: The Thursday 05 Jun 2014 à 15:55:27 (+0200), Kevin Wolf wrote : Signed-off-by: Kevin Wolf kw...@redhat.com --- block/rbd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/rbd.c b/block/rbd.c index

[Qemu-devel] [PATCH v2] rbd: Fix leaks in rbd_start_aio() error path

2014-06-05 Thread Kevin Wolf
Signed-off-by: Kevin Wolf kw...@redhat.com --- block/rbd.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/block/rbd.c b/block/rbd.c index 09af484..898fcfe 100644 --- a/block/rbd.c +++ b/block/rbd.c @@ -684,13 +684,16 @@ static BlockDriverAIOCB

[Qemu-devel] [PULL 01/33] cputlb: Fix regression with TCG interpreter (bug 1310324)

2014-06-05 Thread Paolo Bonzini
From: Stefan Weil s...@weilnetz.de Commit 0f842f8a246f2b5b51a11c13f933bf7a90ae8e96 replaced GETPC_EXT() which was derived from GETPC() by GETRA_EXT() without fixing cputlb.c. A later patch replaced GETRA_EXT() by GETRA() in exec/softmmu_template.h which is included in cputlb.c. The TCG

[Qemu-devel] [PULL 10/33] softmmu: move softmmu_template.h out of include/

2014-06-05 Thread Paolo Bonzini
It is only included in cputlb.c now. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- cputlb.c | 16 include/exec/softmmu_template.h = softmmu_template.h | 0 2 files changed, 8

[Qemu-devel] [PULL 11/33] target-arm: move arm_*_code to a separate file

2014-06-05 Thread Paolo Bonzini
These will soon require cpu_ldst.h, so move them out of cpu.h. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-arm/arm_ldst.h | 47 ++ target-arm/cpu.h | 22

[Qemu-devel] [PULL 19/33] target-i386: commonize checks for 2MB and 4KB pages

2014-06-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 127 ++- 1 file changed, 44 insertions(+), 83 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index 7b3819b..cf18336 100644 --- a/target-i386/helper.c

[Qemu-devel] [PULL 13/33] softmmu: move all load/store functions to cpu_ldst.h

2014-06-05 Thread Paolo Bonzini
Unify pieces of cpu-all.h, exec-all.h, softmmu_exec.h and tcg/tcg.h into a single new header file with all helpers. Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- include/exec/cpu-all.h | 119 ---

[Qemu-devel] [PULL 16/33] target-i386: fix kernel accesses with SMAP and CPL = 3

2014-06-05 Thread Paolo Bonzini
With SMAP, implicit kernel accesses from user mode always behave as if AC=0. To do this, kernel mode is not anymore a separate MMU mode. Instead, KERNEL_IDX is renamed to KSMAP_IDX and the kernel mode accessors wrap KSMAP_IDX and KNOSMAP_IDX. Signed-off-by: Paolo Bonzini pbonz...@redhat.com ---

[Qemu-devel] [PULL 14/33] target-i386: rename KSMAP to KNOSMAP

2014-06-05 Thread Paolo Bonzini
This is the mode where SMAP is overridden, put NO in its name. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/cpu.h| 6 +++--- target-i386/helper.c | 8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/target-i386/cpu.h b/target-i386/cpu.h index

[Qemu-devel] [PULL 15/33] target-i386: move check_io helpers to seg_helper.c

2014-06-05 Thread Paolo Bonzini
Prepare for adding _kernel accessors there in the next patch. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/misc_helper.c | 42 -- target-i386/seg_helper.c | 42 ++ 2 files changed, 42

[Qemu-devel] [PULL 08/33] softmmu: move ALIGNED_ONLY to cpu.h

2014-06-05 Thread Paolo Bonzini
Prepare for moving softmmu_header.h inclusion out of .c files Reviewed-by: Richard Henderson r...@twiddle.net Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-alpha/cpu.h | 1 + target-alpha/mem_helper.c | 1 - target-mips/cpu.h | 1 + target-mips/op_helper.c| 1

[Qemu-devel] [PULL 00/33] softmmu cleanups and target-i386 paging fixes

2014-06-05 Thread Paolo Bonzini
The following changes since commit e00fcfeab3d452cba3d0a08991a39ab15df66424: Merge remote-tracking branch 'remotes/awilliam/tags/vfio-pci-for-qemu-20140602.0' into staging (2014-06-03 14:37:43 +0100) are available in the git repository at: git://github.com/bonzini/qemu.git softmmu-smap

[Qemu-devel] [PULL 18/33] target-i386: fix coding standards in x86_cpu_handle_mmu_fault

2014-06-05 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index d10de26..7b3819b 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -670,8

[Qemu-devel] [PULL 23/33] target-i386: introduce do_check_protect label

2014-06-05 Thread Paolo Bonzini
This will help adding 1GB page support in the next patch. Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- target-i386/helper.c | 74 +++- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/target-i386/helper.c

[Qemu-devel] [PULL 02/33] nseries: clean up coding style

2014-06-05 Thread Paolo Bonzini
Reviewed-by: Peter Maydell peter.mayd...@linaro.org Signed-off-by: Paolo Bonzini pbonz...@redhat.com --- hw/arm/nseries.c | 272 +-- 1 file changed, 145 insertions(+), 127 deletions(-) diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c index

<    1   2   3   4   5   >