[Qemu-devel] [RFC PATCH v13 01/21] i386: partial revert of interrupt poll fix

2015-05-06 Thread Pavel Dovgalyuk
Processing CPU_INTERRUPT_POLL requests in cpu_has_work functions break the determinism of cpu_exec. This patch is required to make interrupts processing deterministic. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- cpu-exec.c

[Qemu-devel] [RFC PATCH v13 10/21] replay: interrupts and exceptions

2015-05-06 Thread Pavel Dovgalyuk
This patch includes modifications of common cpu files. All interrupts and exceptions occured during recording are written into the replay log. These events allow correct replaying the execution by kicking cpu thread when one of these events is found in the log. Signed-off-by: Pavel Dovgalyuk

[Qemu-devel] [RFC PATCH v13 15/21] bottom halves: introduce bh call function

2015-05-06 Thread Pavel Dovgalyuk
This patch introduces aio_bh_call function. It is used to execute bottom halves as callbacks without adding them to the queue. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- async.c |8 +++- include/block/aio.h |5 + 2 files changed, 12 insertions(+), 1

[Qemu-devel] [RFC PATCH v13 13/21] replay: shutdown event

2015-05-06 Thread Pavel Dovgalyuk
This patch records and replays simulator shutdown event. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- replay/replay-internal.h |2 ++ replay/replay.c | 14 ++ replay/replay.h |5 + vl.c

Re: [Qemu-devel] [RFC 5/5] arm: Simplify cycle counter

2015-05-06 Thread Peter Crosthwaite
On Fri, May 1, 2015 at 7:35 AM, Christopher Covington christopher.coving...@linaro.org wrote: On Thu, Apr 30, 2015 at 9:24 PM, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Thu, Apr 30, 2015 at 11:14 AM, Christopher Covington christopher.coving...@linaro.org wrote: Present a system

[Qemu-devel] [RFC PATCH v13 21/21] replay: recording of the user input

2015-05-06 Thread Pavel Dovgalyuk
This records user input (keyboard and mouse events) in record mode and replays these input events in replay mode. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- include/ui/input.h |2 + replay/Makefile.objs |1 replay/replay-events.c | 31 +

[Qemu-devel] [RFC PATCH v13 09/21] i386: interrupt poll processing

2015-05-06 Thread Pavel Dovgalyuk
This patch updates x86_cpu_exec_interrupt function. It can process two interrupt request at a time (poll and another one). This makes its execution non-deterministic. Determinism is requred for recorded icount execution. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru ---

[Qemu-devel] [RFC PATCH v13 16/21] replay: ptimer

2015-05-06 Thread Pavel Dovgalyuk
This patch adds deterministic replay for hardware periodic countdown timers. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- hw/core/ptimer.c |7 ++- replay/replay-events.c | 17 + replay/replay-internal.h |1 + replay/replay.h |2

[Qemu-devel] [RFC PATCH v13 12/21] replay: recording and replaying clock ticks

2015-05-06 Thread Pavel Dovgalyuk
Clock ticks are considered as the sources of non-deterministic data for virtual machine. This patch implements saving the clock values when they are acquired (virtual, host clock). When replaying the execution corresponding values are read from log and transfered to the module, which wants to read

[Qemu-devel] [PATCH 10/14] usb: usb-storage QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-storage.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c index ae8d40d..abe0e1d 100644 ---

[Qemu-devel] [PATCH 11/14] usb: usb-uas QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-uas.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hw/usb/dev-uas.c b/hw/usb/dev-uas.c index 04fc515..38b26c5 100644 --- a/hw/usb/dev-uas.c +++

[Qemu-devel] [PATCH 13/14] usb: usb-redir QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/redirect.c | 25 ++--- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c index 2416de8..242a654 100644 --- a/hw/usb/redirect.c

[Qemu-devel] [PATCH 02/14] usb: usb-audio QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-audio.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c index 67deffe..f092bb8 100644 --- a/hw/usb/dev-audio.c

[Qemu-devel] [Bug 1452230] [NEW] Qemu 2.3.0 failes to compile with GCC 5.1.0 and -flto

2015-05-06 Thread Steffen Hau
Public bug reported: Compiling Qemu 2.3.0 failes with the following error: x86_64-pc-linux-gnu-g++ -I/usr/include/pixman-1 -fPIE -DPIE -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes

Re: [Qemu-devel] [PATCH target-arm v6 00/14] Next Generation Xilinx Zynq SoC

2015-05-06 Thread Peter Maydell
On 6 May 2015 at 14:21, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Wed, May 6, 2015 at 6:18 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 6 May 2015 at 14:02, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Actually NVM. I got it working on a diff machine. Did you

Re: [Qemu-devel] [PATCH target-arm v6 00/14] Next Generation Xilinx Zynq SoC

2015-05-06 Thread Peter Crosthwaite
On Wed, May 6, 2015 at 6:26 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 6 May 2015 at 14:21, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Wed, May 6, 2015 at 6:18 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 6 May 2015 at 14:02, Peter Crosthwaite

Re: [Qemu-devel] [PATCH v6 04/17] Extend HMP command info cpus to display accelerator id and model name

2015-05-06 Thread Eduardo Habkost
On Wed, May 06, 2015 at 08:59:56AM -0400, Luiz Capitulino wrote: On Wed, 6 May 2015 07:38:53 -0300 Eduardo Habkost ehabk...@redhat.com wrote: On Wed, May 06, 2015 at 09:32:58AM +0200, Michael Mueller wrote: On Tue, 5 May 2015 10:14:32 -0300 Eduardo Habkost ehabk...@redhat.com wrote:

[Qemu-devel] [Bug 1452062] Re: qemu-img will fail to convert images in 2.3.0

2015-05-06 Thread David Hill
I rolled back QEMU to 2.2.1 and it succeeded converting the image ... I'll try to see if I can re-upgrade QEMU without breaking again the CI we have here. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [PATCH 5/7] qcow2: use a hash to look for entries in the L2 cache

2015-05-06 Thread Alberto Garcia
The current cache algorithm traverses the array starting always from the beginning, so the average number of comparisons needed to perform a lookup is proportional to the size of the array. By using a hash of the offset as the starting point, lookups are faster and independent from the array

[Qemu-devel] [PATCH v2 0/7] qcow2 L2/refcount cache improvements

2015-05-06 Thread Alberto Garcia
New version of the qcow2 cache patches: v2: - Don't do pointer arithmetic on void * - Rename table_addr() to qcow2_cache_get_table_addr() - Add qcow2_cache_get_table_idx() - Cast cache size to size_t to prevent overflows - Make qcow2_cache_put() a void function - Don't store the cluster size in

[Qemu-devel] [PATCH 1/7] qcow2: use one single memory block for the L2/refcount cache tables

2015-05-06 Thread Alberto Garcia
The qcow2 L2/refcount cache contains one separate table for each cache entry. Doing one allocation per table adds unnecessary overhead and it also requires us to store the address of each table separately. Since the size of the cache is constant during its lifetime, it's better to have an array

Re: [Qemu-devel] [PATCH v6 04/17] Extend HMP command info cpus to display accelerator id and model name

2015-05-06 Thread Michael Mueller
On Wed, 6 May 2015 10:33:55 -0300 Eduardo Habkost ehabk...@redhat.com wrote: On Wed, May 06, 2015 at 08:59:56AM -0400, Luiz Capitulino wrote: On Wed, 6 May 2015 07:38:53 -0300 Eduardo Habkost ehabk...@redhat.com wrote: On Wed, May 06, 2015 at 09:32:58AM +0200, Michael Mueller wrote:

Re: [Qemu-devel] [PATCH target-arm v6 00/14] Next Generation Xilinx Zynq SoC

2015-05-06 Thread Peter Crosthwaite
On Wed, May 6, 2015 at 6:16 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 6 May 2015 at 14:08, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Ergh, I have to backpeddle again (sry for the noise), patches still doesnt work for me (serves me right for not looking at the year of

Re: [Qemu-devel] blkdebug and VMDK (iotests 033 failure on monolithicFlat)

2015-05-06 Thread Fam Zheng
On Wed, 05/06 15:45, Max Reitz wrote: On 05.05.2015 12:44, Fam Zheng wrote: Max, Since you once fixed VMDK with the json descriptor filename, could you take a look at the error: $ ./check -vmdk -o subformat=monolithicFlat 033 033 - output mismatch (see 033.out.bad) ---

[Qemu-devel] [RFC PATCH v13 03/21] sysemu: system functions for replay

2015-05-06 Thread Pavel Dovgalyuk
This patch removes static specifier from several qemu function to make them visible to the replay module. It also invents several system functions that will be used by replay. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- cpus.c

[Qemu-devel] [RFC PATCH v13 00/21] Deterministic replay core

2015-05-06 Thread Pavel Dovgalyuk
This set of patches is related to the reverse execution and deterministic replay of qemu execution. This implementation of deterministic replay can be used for deterministic debugging of guest code through gdb remote interface. Core set of patches does not include support for reverse debugging

[Qemu-devel] [RFC PATCH v13 02/21] replay: global variables and function stubs

2015-05-06 Thread Pavel Dovgalyuk
This patch adds global variables, defines, function declarations, and function stubs for deterministic VM replay used by external modules. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru ---

[Qemu-devel] [RFC PATCH v13 04/21] replay: internal functions for replay log

2015-05-06 Thread Pavel Dovgalyuk
This patch adds functions to perform read and write operations with replay log. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- replay/Makefile.objs |1 replay/replay-internal.c | 149

[Qemu-devel] [RFC PATCH v13 05/21] replay: introduce mutex to protect the replay log

2015-05-06 Thread Pavel Dovgalyuk
This mutex will protect read/write operations for replay log. Using mutex is necessary because most of the events consist of several fields stored in the log. The mutex will help to avoid races. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk

[Qemu-devel] [RFC PATCH v13 06/21] replay: introduce icount event

2015-05-06 Thread Pavel Dovgalyuk
This patch adds icount event to the replay subsystem. This event corresponds to execution of several instructions and used to synchronize input events in the replay phase. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru ---

[Qemu-devel] [RFC PATCH v13 11/21] replay: asynchronous events infrastructure

2015-05-06 Thread Pavel Dovgalyuk
This patch adds module for saving and replaying asynchronous events. These events include network packets, keyboard and mouse input, USB packets, thread pool and bottom halves callbacks. All events are stored in the queue to be processed at synchronization points such as beginning of TB execution,

[Qemu-devel] [RFC PATCH v13 07/21] cpu-exec: allow temporary disabling icount

2015-05-06 Thread Pavel Dovgalyuk
This patch is required for deterministic replay to generate an exception by trying executing an instruction without changing icount. It adds new flag to TB for disabling icount while translating it. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk

[Qemu-devel] [RFC PATCH v13 08/21] cpu: replay instructions sequence

2015-05-06 Thread Pavel Dovgalyuk
This patch adds calls to replay functions into the icount setup block. In record mode number of executed instructions is written to the log. In replay mode number of istructions to execute is taken from the replay log. When replayed instructions counter is expired qemu_notify_event() function is

[Qemu-devel] [RFC PATCH v13 14/21] replay: checkpoints

2015-05-06 Thread Pavel Dovgalyuk
This patch introduces checkpoints that synchronize cpu thread and iothread. When checkpoint is met in the code all asynchronous events from the queue are executed. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- cpus.c |5 + main-loop.c |6

Re: [Qemu-devel] [PATCH v3 4/5] qtest: precompute hex nibs

2015-05-06 Thread John Snow
On 05/06/2015 02:25 AM, Markus Armbruster wrote: John Snow js...@redhat.com writes: Instead of letting printf and friends do this for us one byte at a time, fill a buffer ourselves and then send the entire buffer in one go. This gives a moderate speed improvement over the old method.

[Qemu-devel] [RFC PATCH v13 20/21] replay: command line options

2015-05-06 Thread Pavel Dovgalyuk
This patch introduces command line options for enabling recording or replaying virtual machine behavior. These options are added to icount command line parameter. They include 'rr' which switches between record and replay and 'rrfile' for specifying the filename for replay log. Signed-off-by:

Re: [Qemu-devel] [PATCH] rules.mak: Force CFLAGS for all objects in DSO

2015-05-06 Thread Paolo Bonzini
On 06/05/2015 15:46, Fam Zheng wrote: Because of the trick of process-archive-undefs, all .mo objects, even with --enable-modules, are dependencies of executables. This breaks CFLAGS propogation because the compiling of module object will happen too early before building for DSO. With

Re: [Qemu-devel] blkdebug and VMDK (iotests 033 failure on monolithicFlat)

2015-05-06 Thread Max Reitz
On 06.05.2015 15:59, Fam Zheng wrote: On Wed, 05/06 15:45, Max Reitz wrote: On 05.05.2015 12:44, Fam Zheng wrote: Max, Since you once fixed VMDK with the json descriptor filename, could you take a look at the error: $ ./check -vmdk -o subformat=monolithicFlat 033 033 - output

Re: [Qemu-devel] [PATCH 6/7] monitor: i: Add ARM specifics

2015-05-06 Thread Paolo Bonzini
On 06/05/2015 16:12, Richard Henderson wrote: Can we rely on the env/CPUState always being up to date during target_disas (which happens at translate time?) or will we need to go field by field to make sure any env updates explicitly occur before target_disas? I *think* so, but it's a

[Qemu-devel] [RFC PATCH v13 19/21] replay: replay blockers for devices

2015-05-06 Thread Pavel Dovgalyuk
Some devices are not supported by record/replay subsystem. This patch introduces replay blocker which denies starting record/replay if such devices are included into the configuration. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- hw/bt/hci.c |7 +++

Re: [Qemu-devel] [PATCH 6/7] monitor: i: Add ARM specifics

2015-05-06 Thread Richard Henderson
On 05/06/2015 12:06 AM, Peter Crosthwaite wrote: Can we rely on the env/CPUState always being up to date during target_disas (which happens at translate time?) or will we need to go field by field to make sure any env updates explicitly occur before target_disas? I *think* so, but it's a

Re: [Qemu-devel] [PATCH] rules.mak: Force CFLAGS for all objects in DSO

2015-05-06 Thread Fam Zheng
On Wed, 05/06 16:07, Paolo Bonzini wrote: On 06/05/2015 15:46, Fam Zheng wrote: Because of the trick of process-archive-undefs, all .mo objects, even with --enable-modules, are dependencies of executables. This breaks CFLAGS propogation because the compiling of module object will

Re: [Qemu-devel] [PATCH] rules.mak: Force CFLAGS for all objects in DSO

2015-05-06 Thread Paolo Bonzini
On 06/05/2015 16:23, Fam Zheng wrote: + $(eval $($v:%.mo=%$(DSOSUF)) $($v) $(foreach o,$($v),$($o-objs)) .PHONY: CFLAGS += -fPIC -DBUILD_DSO) ^ ^^ ^ |

Re: [Qemu-devel] [RFC PATCH v13 15/21] bottom halves: introduce bh call function

2015-05-06 Thread Paolo Bonzini
On 06/05/2015 16:04, Pavel Dovgalyuk wrote: This patch introduces aio_bh_call function. It is used to execute bottom halves as callbacks without adding them to the queue. Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- async.c |8 +++- include/block/aio.h

Re: [Qemu-devel] [RFC] ARM/ARM64: KVM: Implement KVM_FLUSH_DCACHE_GPA ioctl

2015-05-06 Thread Christoffer Dall
Hi Jérémy, On Tue, May 05, 2015 at 11:13:11AM +0200, Jérémy Fanguède wrote: To maintain cache coherency on ARM, we may need a mechanism to flush the data cache. In addition to generally just making this functionality available (see below), do you have an actual use case in mind for this? To

[Qemu-devel] [RFC PATCH v13 18/21] replay: initialization and deinitialization

2015-05-06 Thread Pavel Dovgalyuk
This patch introduces the functions for enabling the record/replay and for freeing the resources when simulator closes. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- exec.c |1 replay/replay-internal.h |2 +

Re: [Qemu-devel] [RFC PATCH 6/7] virtio-blk: Don't handle output when there is device IO op blocker

2015-05-06 Thread Paolo Bonzini
On 06/05/2015 14:20, Fam Zheng wrote: Does non-dataplane need to do anything, since it uses iohandlers rather than aio_set_event_notifier_handler? I guess it's not for this specific bug. See this as an attempt on a general purpose pause mechanism to the device in investment for the

Re: [Qemu-devel] [Patch V2 0/4] [Patch V2 0/4] Windows MSI installation package

2015-05-06 Thread Paolo Bonzini
On 06/05/2015 13:57, Yossi Hindin wrote: The second version of commits's set take into account Paolo Bonzini remarks. Typo in WXS file fixed, QEMU GA-related CLI options renamed, '--enable-guest-agent-msi'/ '--disable-guest-agent-msi' processing logic changed so that MSI build is

Re: [Qemu-devel] [PATCH 6/7] monitor: i: Add ARM specifics

2015-05-06 Thread Stefano Stabellini
On Wed, 6 May 2015, Paolo Bonzini wrote: On 06/05/2015 16:12, Richard Henderson wrote: Can we rely on the env/CPUState always being up to date during target_disas (which happens at translate time?) or will we need to go field by field to make sure any env updates explicitly occur

Re: [Qemu-devel] blkdebug and VMDK (iotests 033 failure on monolithicFlat)

2015-05-06 Thread Fam Zheng
On Wed, 05/06 16:12, Max Reitz wrote: On 06.05.2015 15:59, Fam Zheng wrote: On Wed, 05/06 15:45, Max Reitz wrote: On 05.05.2015 12:44, Fam Zheng wrote: Max, Since you once fixed VMDK with the json descriptor filename, could you take a look at the error: $ ./check -vmdk -o

[Qemu-devel] [PATCH] MAINTAINERS: New maintainer for QMP and QAPI

2015-05-06 Thread Luiz Capitulino
Markus is taking over maintership of QMP and the QAPI from me. Markus has always been a great reviewer and contributor to those subsystems. In the last few months he's also doing pull requests that are a lot more relevant than the ones I was able to do. So, this is a natural move. I'm still the

[Qemu-devel] [RFC PATCH v13 17/21] typedef: add typedef for QemuOpts

2015-05-06 Thread Pavel Dovgalyuk
This patch moves typedefs for QemuOpts and related types to qemu/typedefs.h file. Reviewed-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Pavel Dovgalyuk pavel.dovga...@ispras.ru --- include/qemu/option.h |5 + include/qemu/typedefs.h |3 +++ 2 files changed, 4

Re: [Qemu-devel] [RFC PATCH 3/7] block: Add op blocker notifier list

2015-05-06 Thread Paolo Bonzini
On 06/05/2015 13:23, Fam Zheng wrote: void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason) { BdrvOpBlocker *blocker; assert((int) op = 0 op BLOCK_OP_TYPE_MAX); +bdrv_op_blocker_notify(bs, op, reason, true); blocker = g_new0(BdrvOpBlocker, 1);

Re: [Qemu-devel] blkdebug and VMDK (iotests 033 failure on monolithicFlat)

2015-05-06 Thread Max Reitz
On 06.05.2015 16:38, Fam Zheng wrote: On Wed, 05/06 16:12, Max Reitz wrote: On 06.05.2015 15:59, Fam Zheng wrote: On Wed, 05/06 15:45, Max Reitz wrote: On 05.05.2015 12:44, Fam Zheng wrote: Max, Since you once fixed VMDK with the json descriptor filename, could you take a look at the error:

Re: [Qemu-devel] [PATCH v6 15/17] target-s390x: Extend arch specific QMP command query-cpu-definitions

2015-05-06 Thread Michael Mueller
On Wed, 6 May 2015 09:37:41 -0300 Eduardo Habkost ehabk...@redhat.com wrote: On Mon, Apr 27, 2015 at 04:53:29PM +0200, Michael Mueller wrote: [...] #ifndef CONFIG_USER_ONLY +static CpuDefinitionInfoList *qmp_query_cpu_definition_host(void) +{ +CpuDefinitionInfoList *host = NULL;

Re: [Qemu-devel] [PATCH 1/4] virtio-mmio: introduce set_host_notifier()

2015-05-06 Thread Eric Blake
On 05/06/2015 01:52 AM, Pavel Fedin wrote: [meta-comment] set_host_notifier() is introduced into virtio-mmio now. Most of codes came from virtio-pci. Missing an 'In-Reply-To: 000501d087d0$39c1bd90$ad4538b0$@samsung.com' header, which makes your series unthreaded (every message appeared as

[Qemu-devel] [PATCH 01/14] uhci: QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Cc: Gerd Hoffmann kra...@redhat.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/hcd-uhci.c | 43 +++ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c

Re: [Qemu-devel] [PATCH target-arm v6 00/14] Next Generation Xilinx Zynq SoC

2015-05-06 Thread Peter Crosthwaite
On Wed, May 6, 2015 at 5:14 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 1 May 2015 at 18:25, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Ping! On Fri, Apr 24, 2015 at 1:28 PM, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Hi Peter and all, Xilinx's next gen SoC

[Qemu-devel] [PATCH 04/14] usb: usb-hid QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-hid.c | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c index 507c966..9623e72 100644 ---

Re: [Qemu-devel] [PATCH v4 13/17] qcow2/overlaps: Add memory limit reached event

2015-05-06 Thread Max Reitz
On 04.05.2015 21:32, Eric Blake wrote: On 05/04/2015 01:15 PM, Max Reitz wrote: Later, a mechanism to set a limit on how much memory may be used for the overlap prevention structures will be introduced. If that limit is about to be exceeded, a QMP event should be emitted. This very event is

Re: [Qemu-devel] [PATCH v2 0/3] block: Warn about usage of growing formats over non-growable protocols

2015-05-06 Thread Max Reitz
On 05.05.2015 11:46, Stefan Hajnoczi wrote: On Thu, Mar 19, 2015 at 03:03:18PM -0400, Max Reitz wrote: Some image formats (e.g. qcow2) require the underlying file to grow on write accesses, but this is in fact not supported by all protocols (e.g. nbd does not). If such a format requiring file

[Qemu-devel] [PATCH 6/7] qcow2: make qcow2_cache_put() a void function

2015-05-06 Thread Alberto Garcia
This function never receives an invalid table pointer, so we can make it void and remove all the error checking code. Signed-off-by: Alberto Garcia be...@igalia.com --- block/qcow2-cache.c| 7 +-- block/qcow2-cluster.c | 50 ++

[Qemu-devel] [PATCH 7/7] qcow2: style fixes in qcow2-cache.c

2015-05-06 Thread Alberto Garcia
Fix pointer declaration to make it consistent with the rest of the code. Signed-off-by: Alberto Garcia be...@igalia.com --- block/qcow2-cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/block/qcow2-cache.c b/block/qcow2-cache.c index 0f629c4..bea43c1 100644 ---

[Qemu-devel] [RFC PATCH 7/7] blockdev: Add device IO op blocker during snapshot transaction

2015-05-06 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- blockdev.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/blockdev.c b/blockdev.c index 5eaf77e..859fa2e 100644 --- a/blockdev.c +++ b/blockdev.c @@ -1398,6 +1398,7 @@ typedef struct ExternalSnapshotState { BlockDriverState *old_bs;

[Qemu-devel] [PATCH] qcow2: Flush pending discards before allocating cluster

2015-05-06 Thread Kevin Wolf
Before a freed cluster can be reused, pending discards for this cluster must be processed. The original assumption was that this was not a problem because discards are only cached during discard/write zeroes operations, which are synchronous so that no concurrent write requests can cause cluster

Re: [Qemu-devel] [PATCH 4/4] qemu-ga: Building Windows MSI installation with configure/Makefile

2015-05-06 Thread Yossi Hindin
I am submitting second version of patches. - Original Message - From: Paolo Bonzini pbonz...@redhat.com To: Yossi Hindin yhin...@redhat.com, qemu-devel@nongnu.org Cc: yvuge...@redhat.com, dfley...@redhat.com, mdr...@linux.vnet.ibm.com Sent: Monday, May 4, 2015 12:03:02 PM Subject:

[Qemu-devel] [PATCH RFC 3/7] virtio: introduce virtio_legacy_is_cross_endian()

2015-05-06 Thread Greg Kurz
This helper will be used by vhost and tap to detect cross-endianness in the legacy virtio case. Signed-off-by: Greg Kurz gk...@linux.vnet.ibm.com --- include/hw/virtio/virtio-access.h | 13 + 1 file changed, 13 insertions(+) diff --git a/include/hw/virtio/virtio-access.h

Re: [Qemu-devel] [PATCH v6 04/17] Extend HMP command info cpus to display accelerator id and model name

2015-05-06 Thread Luiz Capitulino
On Wed, 6 May 2015 07:38:53 -0300 Eduardo Habkost ehabk...@redhat.com wrote: On Wed, May 06, 2015 at 09:32:58AM +0200, Michael Mueller wrote: On Tue, 5 May 2015 10:14:32 -0300 Eduardo Habkost ehabk...@redhat.com wrote: On Mon, Apr 27, 2015 at 04:53:18PM +0200, Michael Mueller wrote:

[Qemu-devel] [PATCH 12/14] usb: usb-wacom-tablet QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-wacom.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/usb/dev-wacom.c b/hw/usb/dev-wacom.c index 844eafa..c2450e7 100644 --- a/hw/usb/dev-wacom.c +++

[Qemu-devel] [PATCH 06/14] usb: usb-mtp QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-mtp.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c index 108ece8..c9c1f32 100644 --- a/hw/usb/dev-mtp.c +++

[Qemu-devel] [PATCH 09/14] usb: usb-ccid QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-smartcard-reader.c | 50 --- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c

[Qemu-devel] [PATCH 03/14] usb: usb-bt QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-bluetooth.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/usb/dev-bluetooth.c b/hw/usb/dev-bluetooth.c index 9bf6730..b19ec76 100644 ---

[Qemu-devel] [PATCH 07/14] usb-mtp: fix segmentation fault

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com When x-root property not be configured, will cause segfault because of null pointer accessing. Add a check for s-root property avoid segfault. Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-mtp.c | 4 1 file changed, 4 insertions(+)

[Qemu-devel] [PATCH 08/14] usb: usb-net QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-network.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c index 1866991..5f2ffd0 100644 --- a/hw/usb/dev-network.c +++

[Qemu-devel] [PATCH 05/14] usb: usb-hub QOMify

2015-05-06 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/usb/dev-hub.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/usb/dev-hub.c b/hw/usb/dev-hub.c index 0482f58..c8c6855 100644 --- a/hw/usb/dev-hub.c +++

Re: [Qemu-devel] [PATCH target-arm v6 00/14] Next Generation Xilinx Zynq SoC

2015-05-06 Thread Peter Crosthwaite
On Wed, May 6, 2015 at 6:02 AM, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: On Wed, May 6, 2015 at 5:14 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 1 May 2015 at 18:25, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Ping! On Fri, Apr 24, 2015 at 1:28 PM, Peter

Re: [Qemu-devel] [PATCH v4 16/17] qapi: Expose new qcow2 overlap check options

2015-05-06 Thread Max Reitz
On 04.05.2015 21:39, Eric Blake wrote: On 05/04/2015 01:15 PM, Max Reitz wrote: Expose the two new options for controlling the memory usage of the overlap check implementation via QAPI. Signed-off-by: Max Reitz mre...@redhat.com --- qapi/block-core.json | 37

Re: [Qemu-devel] [PATCH target-arm v6 00/14] Next Generation Xilinx Zynq SoC

2015-05-06 Thread Peter Crosthwaite
On Wed, May 6, 2015 at 6:18 AM, Peter Maydell peter.mayd...@linaro.org wrote: On 6 May 2015 at 14:02, Peter Crosthwaite peter.crosthwa...@xilinx.com wrote: Actually NVM. I got it working on a diff machine. Did you have any thoughts on the GICC mirror issue while I respin? You mean the thing

Re: [Qemu-devel] [PATCH] qcow2: Flush pending discards before allocating cluster

2015-05-06 Thread Max Reitz
On 06.05.2015 13:29, Kevin Wolf wrote: Before a freed cluster can be reused, pending discards for this cluster must be processed. The original assumption was that this was not a problem because discards are only cached during discard/write zeroes operations, which are synchronous so that no

[Qemu-devel] [PATCH 4/7] qcow2: remove qcow2_cache_find_entry_to_replace()

2015-05-06 Thread Alberto Garcia
A cache miss means that the whole array was traversed and the entry we were looking for was not found, so there's no need to traverse it again in order to select an entry to replace. Signed-off-by: Alberto Garcia be...@igalia.com --- block/qcow2-cache.c | 45

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-06 Thread Peter Maydell
On 6 May 2015 at 16:03, Pavel Fedin p.fe...@samsung.com wrote: This small patch fixes a long-standing bug: A15 model is used by default also on ARM64 target. As a result, attempt to run the VM without explicit -cpu specification does not do anything good. Signed-off-by: Pavel Fedin

[Qemu-devel] Help with deadlock when using sound

2015-05-06 Thread Programmingkid
When I try to use the pcspk sound hardware, QEMU freezes and uses 100% of the cpu time. This is the command I use: qemu-system-i386 -cdrom anything you wan here -soundhw pcspk This looks like a deadlock situation because some unknown code called qemu_mutex_lock(). Here is the stack trace at

Re: [Qemu-devel] [Qemu-block] [PATCH v2 0/3] block: Warn about usage of growing formats over non-growable protocols

2015-05-06 Thread Paolo Bonzini
On 06/05/2015 18:37, Max Reitz wrote: Because qcow2 tries to write beyond the end of the file; the NBD client implementation passes that on to the server, and the server simply reports an error (which the NBD client turns into EIO). Where? qemu_coroutine_yield(); *reply = s-reply;

Re: [Qemu-devel] [PATCH] keyboard:fix ps2 keyboard can't use

2015-05-06 Thread Eric Blake
On 05/06/2015 10:20 AM, penghao...@sina.com wrote: Missing a 'v2' in the subject line (hint: git send-email -v2) Subject line doesn't make sense, and has incorrect spacing after colon. What was wrong with my suggestion that I gave on your v1? keyboard: handle ps2 typing buffer overrun

Re: [Qemu-devel] [RFC PATCH v4 00/28] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service

2015-05-06 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: On 2015/4/24 16:35, Dr. David Alan Gilbert wrote: * Wen Congyang (we...@cn.fujitsu.com) wrote: On 04/22/2015 07:18 PM, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: Hi, ping ... I will get to

[Qemu-devel] How QEMU maintains the translation from guest virtual address to guest physical address?

2015-05-06 Thread 浩倫 魏
Hi, all: I've been trying to understand the process of address translation inside QEMU, but I got stuck in GVA-GPA.I've known that QEMU uses a two level description table 'PhysPageDesc' to maintain the translation between GPA HVA(host virtual address), but I couldn't find out where QEMU

Re: [Qemu-devel] [PATCH] use bdrv_flush to provide barrier semantic in block/vdi.c for metadata updates

2015-05-06 Thread Max Reitz
CC-ing qemu-block and Stefan Weil (maintainer of vdi). On 06.05.2015 19:23, phoeagon wrote: Thanks for your input. So I changed it to: 1. Only call bdrv_flush when bdrv_pwrite was successful 2. Only if bdrv_flush was unsuccessful that the return value of vdi_co_write is updated. One of both

[Qemu-devel] [PATCH target-arm v7 04/15] intc: arm_gic: Macroify the MemoryRegion size

2015-05-06 Thread Peter Crosthwaite
GIC generally uses a 4k memory region for the various subregions, such as GICC, GICD, GICV and GICH. Macroify this number in the publicly visible header. Some machine model code may need to know the individual subregion size to implement special addresses mappings (such as aliases and

[Qemu-devel] [PATCH target-arm v7 02/15] target-arm: cpu64: Add support for cortex-a53

2015-05-06 Thread Peter Crosthwaite
Add the ARM cortex A53 processor definition. Similar to A57, but with different L1 I cache policy, phys addr size and different cache geometries. The cache sizes is implementation configurable, but use these values (from Xilinx Zynq MPSoC) as a default until cache size configurability is added.

[Qemu-devel] [PATCH target-arm v7 06/15] arm: xlnx-zynqmp: Connect CPU Timers to GIC

2015-05-06 Thread Peter Crosthwaite
Connect the GPIO outputs from the individual CPUs for the timers to the GIC. Tested-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- changed since v4: Use macro for

[Qemu-devel] [PATCH target-arm v7 15/15] arm: xlnx-ep108: Add bootloading

2015-05-06 Thread Peter Crosthwaite
Add bootloader support using standard ARM bootloader. Reviewed-by: Alistair Francis alistair.fran...@xilinx.com Tested-by: Alistair Francis alistair.fran...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- changed since v4: Add loader_start field Make commit message

[Qemu-devel] [PATCH target-arm v7 00/15] Next Generation Xilinx Zynq SoC

2015-05-06 Thread Peter Crosthwaite
Hi Peter and all, Xilinx's next gen SoC has been announced. This series adds a SoC and board. Series start with addition of ARM cortex A53 support (P1 and P2). The Soc skeleton is then added with GIC, EMACs and UARTs added. The pre-existing models for GEM and UART are not SoC friendly (no

[Qemu-devel] [PATCH target-arm v7 03/15] arm: Introduce Xilinx ZynqMP SoC

2015-05-06 Thread Peter Crosthwaite
With quad Cortex-A53 CPUs. Use SMC PSCI, with the standard policy of secondaries starting in power-off. Tested-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Peter

[Qemu-devel] [PATCH target-arm v7 01/15] target-arm: cpu64: generalise name of A57 regs

2015-05-06 Thread Peter Crosthwaite
Rename some A57 CP register variables in preparation for support for Cortex A53. Use a57_a53 to describe the shareable features. Some of the CP15 registers (such as ACTLR) are specific to implementation, but we currently just RAZ them so continue with that as the policy for both A57 and A53

[Qemu-devel] [PATCH target-arm v7 13/15] arm: Add xlnx-ep108 machine

2015-05-06 Thread Peter Crosthwaite
Add a machine model for the Xilinx ZynqMP SoC EP108 board. Reviewed-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Edgar E. Iglesias edgar.igles...@xilinx.com Tested-by: Alistair Francis alistair.fran...@xilinx.com Signed-off-by:

[Qemu-devel] [PATCH target-arm v7 09/15] arm: xlnx-zynqmp: Add GEM support

2015-05-06 Thread Peter Crosthwaite
There are 4x Cadence GEMs in ZynqMP. Add them. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Tested-by: Alistair Francis alistair.fran...@xilinx.com Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- changed since v4: Remove use of ERR_PROP_CHECK_RETURN hw/arm/xlnx-zynqmp.c

Re: [Qemu-devel] [PATCH target-arm v6 04/14] arm: xlnx-zynqmp: Add GIC

2015-05-06 Thread Peter Crosthwaite
On Mon, May 4, 2015 at 8:16 PM, Edgar E. Iglesias edgar.igles...@xilinx.com wrote: On Fri, Apr 24, 2015 at 01:28:42PM -0700, Peter Crosthwaite wrote: Add the GIC and connect IRQ outputs to the CPUs. This will not work with device-trees that place the GICC maps at the top of the 64K (due to

Re: [Qemu-devel] Help with deadlock when using sound

2015-05-06 Thread Peter Maydell
On 6 May 2015 at 22:41, Programmingkid programmingk...@gmail.com wrote: I did what you did qemu-system-i386 -soundhw pcspk and QEMU froze on me with this as the last thing printed on the screen: Press Ctrl-B for the iPXE command line Hmm. Mine definitely gets further than that -- it goes

[Qemu-devel] [PATCH target-arm v7 08/15] net: cadence_gem: Split state struct and type into header

2015-05-06 Thread Peter Crosthwaite
Create a new header for Cadence GEM to allow using the device with modern SoC programming conventions. The state struct needs to be visible to embed the device in SoC containers. Reviewed-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org

[Qemu-devel] [PATCH target-arm v7 11/15] char: cadence_uart: Split state struct and type into header

2015-05-06 Thread Peter Crosthwaite
Create a new header for Cadence UART to allow using the device with modern SoC programming conventions. The state struct needs to be visible to embed the device in SoC containers. Reviewed-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org

<    1   2   3   4   >