Re: [Qemu-devel] [PATCH V5 00/18] Support more virtio queues

2015-04-03 Thread Jason Wang
On Thu, Apr 2, 2015 at 9:43 PM, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Wed, 1 Apr 2015 16:14:54 +0800 Jason Wang jasow...@redhat.com wrote: Stress/migration test on virtio-pci, compile test on other targets. And make check on s390x-softmmu and ppc64-softmmu. Patch 9 needs

Re: [Qemu-devel] [PATCH V5 09/18] virtio-ccw: introduce ccw specific queue limit

2015-04-03 Thread Jason Wang
On Thu, Apr 2, 2015 at 9:47 PM, Cornelia Huck cornelia.h...@de.ibm.com wrote: On Wed, 1 Apr 2015 16:15:03 +0800 Jason Wang jasow...@redhat.com wrote: Instead of depending on marco, using a bus specific limit. Also make it clear that the number of gsis per I/O adapter is not directly

Re: [Qemu-devel] [PATCH v2] tcg: optimise memory layout of TCGTemp

2015-04-03 Thread Stefan Weil
Am 03.04.2015 um 02:07 schrieb Emilio G. Cota: This brings down the size of the struct from 56 to 32 bytes on 64-bit, and to 20 bytes on 32-bit. This leads to memory savings: Before: $ find . -name 'tcg.o' | xargs size textdata bss dec hex filename 41131 29800 88

[Qemu-devel] [RFC] hw/arm/virt: Add a generic-ehci USB controller to ARM virt model

2015-04-03 Thread Jérémy Fanguède
This patch enables the attachment of USB devices (emulated or passthrough) on the ARM virt model, without the need of a PCI USB controller, by adding a generic EHCI USB controller to the system bus. Signed-off-by: Nikolay Nikolaev n.nikol...@virtualopensystems.com Signed-off-by: Jérémy Fanguède

Re: [Qemu-devel] [Migration Bug? ] Occasionally, the content of VM's memory is inconsistent between Source and Destination of migration

2015-04-03 Thread Jason Wang
On 04/02/2015 07:52 PM, zhanghailiang wrote: On 2015/4/1 3:06, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: On 2015/3/30 15:59, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: On 2015/3/27 18:18, Dr. David Alan

Re: [Qemu-devel] [PATCH v2] qemu-m68k: add support for interrupt masking/unmasking

2015-04-03 Thread Waldemar Brodkorb
Hi Stefan, Stefan Weil wrote, Am 29.03.2015 um 17:53 schrieb Stefan Weil: Am 29.03.2015 um 15:47 schrieb Waldemar Brodkorb: Hi Stefan, Stefan Weil wrote, You can debug the kernel panic by attaching a cross debugger to the running kernel. If you have a kernel image with debug symbols,

Re: [Qemu-devel] [PATCH v2] qemu-m68k: add support for interrupt masking/unmasking

2015-04-03 Thread Stefan Weil
Am 03.04.2015 um 10:04 schrieb Waldemar Brodkorb: Hi Stefan, Stefan Weil wrote, Am 29.03.2015 um 17:53 schrieb Stefan Weil: Am 29.03.2015 um 15:47 schrieb Waldemar Brodkorb: Hi Stefan, Stefan Weil wrote, You can debug the kernel panic by attaching a cross debugger to the running kernel. If

Re: [Qemu-devel] [Migration Bug? ] Occasionally, the content of VM's memory is inconsistent between Source and Destination of migration

2015-04-03 Thread Wen Congyang
On 04/03/2015 04:51 PM, Jason Wang wrote: On 04/02/2015 07:52 PM, zhanghailiang wrote: On 2015/4/1 3:06, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: On 2015/3/30 15:59, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com)

[Qemu-devel] [PATCH COLO v3 05/14] quorum: implement block driver interfaces for block replication

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- block/quorum.c | 77 ++ 1 file changed, 77 insertions(+) diff --git

[Qemu-devel] [PATCH COLO v3 14/14] Don't allow a disk use backing reference target

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- block.c | 9 + 1 file changed, 9 insertions(+) diff --git a/block.c b/block.c index 0bf097d..6b8bf63 100644 --- a/block.c +++

[Qemu-devel] [PATCH COLO v3 04/14] Add new block driver interfaces to control block replication

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Cc: Luiz Capitulino lcapitul...@redhat.com Cc: Michael Roth mdr...@linux.vnet.ibm.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com ---

[Qemu-devel] [PATCH COLO v3 01/14] docs: block replication's description

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Yang Hongyang yan...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- docs/block-replication.txt | 153

[Qemu-devel] [PATCH COLO v3 07/14] allow writing to the backing file

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- block.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index

[Qemu-devel] [PATCH v4 01/20] hw/i386: Move ACPI header definitions in an arch-independent location

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org The ACPI related header file acpi-defs.h, includes definitions that apply on other architectures as well. Move it in `include/hw/acpi/` to sanely include it from other architectures. Signed-off-by: Alvise Rigo a.r...@virtualopensystems.com

[Qemu-devel] [PATCH COLO v3 13/14] skip nbd_target when starting block replication

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- block.c | 12 1 file changed, 12 insertions(+) diff --git a/block.c b/block.c index 2df950b..0bf097d 100644 --- a/block.c

[Qemu-devel] [PATCH v4 09/20] hw/arm/virt-acpi-build: Generate GTDT table

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org ACPI v5.1 defines GTDT for ARM devices as a place to describe timer related information in the system. The Arch Timer interrupts must be provided for GTDT. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao

[Qemu-devel] [PATCH v4 11/20] hw/arm/virt-acpi-build: Generate RSDP table

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org RSDP points to RSDT which in turn points to other tables. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/arm/virt-acpi-build.c | 35 ++- 1 file changed, 34

[Qemu-devel] [PATCH v4 10/20] hw/arm/virt-acpi-build: Generate RSDT table

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org RSDT points to other tables FADT, MADT, GTDT. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/arm/virt-acpi-build.c | 27 +++ 1 file changed, 27 insertions(+) diff

[Qemu-devel] [PATCH 2/3] qemu-iotests: Test that stop doesn't drain block jobs

2015-04-03 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- tests/qemu-iotests/129 | 86 ++ tests/qemu-iotests/129.out | 5 +++ tests/qemu-iotests/group | 1 + 3 files changed, 92 insertions(+) create mode 100644 tests/qemu-iotests/129 create mode 100644

[Qemu-devel] [PATCH 3/3] blockjob: Update function name in comments

2015-04-03 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- block/backup.c | 2 +- block/mirror.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/backup.c b/block/backup.c index 1c535b1..3312476 100644 --- a/block/backup.c +++ b/block/backup.c @@ -287,7 +287,7 @@ static void

[Qemu-devel] [PATCH 1/3] blockjob: Don't sleep meaninglessly short

2015-04-03 Thread Fam Zheng
A timer that will immediately wake the job up spoils the point to call block_job_sleep_ns in the first place - bdrv_drain_all has to return. Let's sleep longer to let aio_poll return, before the job resumes and submitts more IO requests. Signed-off-by: Fam Zheng f...@redhat.com --- blockjob.c

Re: [Qemu-devel] [Migration Bug? ] Occasionally, the content of VM's memory is inconsistent between Source and Destination of migration

2015-04-03 Thread Paolo Bonzini
On 03/04/2015 03:29, Wen Congyang wrote: At this point the iovec has been destroyed. It's clearer, I think, to just use req-size in virtio_blk_complete_request (as you suggest in the comment below!). For dataplane you'll need to do the same in complete_request_vring. Dataplane will

Re: [Qemu-devel] [Migration Bug? ] Occasionally, the content of VM's memory is inconsistent between Source and Destination of migration

2015-04-03 Thread zhanghailiang
On 2015/4/3 16:51, Jason Wang wrote: On 04/02/2015 07:52 PM, zhanghailiang wrote: On 2015/4/1 3:06, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: On 2015/3/30 15:59, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com)

[Qemu-devel] [PATCH COLO v3 10/14] util/hbitmap: Add an API to reset all set bits in hbitmap

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- include/qemu/hbitmap.h | 8 tests/test-hbitmap.c | 39 +++ util/hbitmap.c | 16

[Qemu-devel] [PATCH v4 04/20] hw/acpi/aml-build: Add aml_memory32_fixed() term

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Add aml_memory32_fixed() for describing device mmio region in resource template. These can be used to generating DSDT table for ACPI on ARM. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org ---

[Qemu-devel] [PATCH COLO v3 12/14] qcow2: support colo

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- block/qcow2.c | 454 +- block/qcow2.h | 6 + 2 files changed, 458

[Qemu-devel] [PATCH v4 12/20] hw/arm/virt-acpi-build: Add PCIe info and generate MCFG table

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Add PCIe info struct, prepare for building PCIe table. And generate MCFG table. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/arm/virt-acpi-build.c | 21 +

[Qemu-devel] [PATCH v4 19/20] hw/arm/virt-acpi-build: Add PCIe controller in ACPI DSDT table

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Add PCIe controller in ACPI DSDT table, so the guest can detect the PCIe. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/arm/virt-acpi-build.c | 140

[Qemu-devel] [PATCH v4 13/20] hw/acpi/aml-build: Add ToUUID macro

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Add ToUUID macro, this is useful for generating PCIe ACPI table. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/acpi/aml-build.c | 23 +++

[Qemu-devel] [PATCH v4 18/20] hw/acpi/aml-build: Add aml_dword_io() term

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/acpi/aml-build.c | 17 + include/hw/acpi/aml-build.h | 5 + 2 files changed, 22 insertions(+) diff --git

Re: [Qemu-devel] [PATCH COLO v3 11/14] Backup: clear all bitmap when doing block checkpoint

2015-04-03 Thread Paolo Bonzini
On 03/04/2015 12:01, Wen Congyang wrote: Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Cc: Jeff Cody jc...@redhat.com --- block/backup.c | 13 + blockjob.c

Re: [Qemu-devel] [RFC] hw/arm/virt: Add a generic-ehci USB controller to ARM virt model

2015-04-03 Thread Peter Maydell
On 3 April 2015 at 08:30, Jérémy Fanguède j.fangu...@virtualopensystems.com wrote: This patch enables the attachment of USB devices (emulated or passthrough) on the ARM virt model, without the need of a PCI USB controller, by adding a generic EHCI USB controller to the system bus. What's the

Re: [Qemu-devel] [PATCH] qtest: Add assertion that required environment variable is set

2015-04-03 Thread Peter Maydell
On 2 April 2015 at 20:31, Ed Maste ema...@freebsd.org wrote: On 1 April 2015 at 18:45, Peter Maydell peter.mayd...@linaro.org wrote: Also irritating is the way it silently requires the binary to have a name in the shape it was expecting, which can catch you out if you were trying to set it to

[Qemu-devel] [PATCH COLO v3 00/14] Block replication for continuous checkpoints

2015-04-03 Thread Wen Congyang
Block replication is a very important feature which is used for continuous checkpoints(for example: COLO). Usage: Please refer to docs/block-replication.txt You can get the patch here: https://github.com/wencongyang/qemu-colo/commits/block-replication-v3 You can get the patch with the other

[Qemu-devel] [PATCH COLO v3 02/14] quorum: allow ignoring child errors

2015-04-03 Thread Wen Congyang
If the child is not ready, read/write/getlength/flush will return -errno. It is not critical error, and can be ignored: 1. read/write: Just not report the error event. 2. getlength: just ignore it. If all children's getlength return -errno, and be ignored, return -EIO. 3. flush: Just

[Qemu-devel] [PATCH COLO v3 06/14] NBD client: implement block driver interfaces for block replication

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- block/nbd.c | 49 + 1 file changed, 49 insertions(+) diff --git a/block/nbd.c

[Qemu-devel] [PATCH COLO v3 08/14] Allow creating backup jobs when opening BDS

2015-04-03 Thread Wen Congyang
When opening BDS, we need to create backup jobs for image-fleecing. This feature is not used by qemu-img, qemu-io or qemu-nbd. So just adding the referenced functions to stubs. Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com

Re: [Qemu-devel] [PATCH v2] qemu-m68k: add support for interrupt masking/unmasking

2015-04-03 Thread Waldemar Brodkorb
Hi Stefan, Stefan Weil wrote, Am 03.04.2015 um 10:04 schrieb Waldemar Brodkorb: Hi Stefan, Stefan Weil wrote, Am 29.03.2015 um 17:53 schrieb Stefan Weil: Am 29.03.2015 um 15:47 schrieb Waldemar Brodkorb: Hi Stefan, Stefan Weil wrote, You can debug the kernel panic by attaching a cross

[Qemu-devel] [PATCH COLO v3 09/14] block: Parse backing_reference option to reference existing BDS

2015-04-03 Thread Wen Congyang
Usage: -drive file=xxx,id=Y, \ -drive file=,id=X,backing_reference.drive_id=Y,backing_reference.hidden-disk.* It will create such backing chain: {virtio-blk dev 'Y'} {virtio-blk dev 'X'} |

[Qemu-devel] [PATCH v4 20/20] hw/arm/virt: Enable dynamic generation of ACPI v5.1 tables

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Expose the needed device information to the table generation insfrastructure and register a machine_init_done notify to call virt_acpi_build(). Add CONFIG_ACPI to arm-softmmu.mak. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by:

[Qemu-devel] [PATCH v4 03/20] hw/arm/virt-acpi-build: Basic framework for building ACPI tables on ARM

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Introduce a preliminary framework in virt-acpi-build.c with the main ACPI build functions. It exposes the generated ACPI contents to guest over fw_cfg. The required ACPI v5.1 tables for ARM are: - RSDP: Initial table that points to XSDT - RSDT: Points

[Qemu-devel] [PATCH v4 06/20] hw/arm/virt-acpi-build: Generation of DSDT table for virt devices

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org DSDT consists of the usual common table header plus a definition block in AML encoding which describes all devices in the platform. After initializing DSDT with header information the namespace is created which is followed by the device encodings. The

[Qemu-devel] [PATCH v4 14/20] hw/acpi/aml-build: Add aml_or() term

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Add aml_or() term and make aml_and can take three args. Expose build_append_int_noprefix as it wiil be used by creating a buffer. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org ---

[Qemu-devel] [PATCH v4 17/20] hw/acpi/aml-build: Add aml_create_dword_field() term

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/acpi/aml-build.c | 11 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 12 insertions(+) diff --git

[Qemu-devel] [PATCH 0/3] Fix stop draining block jobs

2015-04-03 Thread Fam Zheng
Stopping the vm will drive the block job all the way to the end, because the sleep duration is too short, which means the block_job_sleep_ns in the block jobs are unhelpful. That is because the timer will fire too soon, even before the aio_poll in bdrv_drain_all returns. Lengthen the sleep and

Re: [Qemu-devel] [PATCH 0/3] Fix stop draining block jobs

2015-04-03 Thread Fam Zheng
On Fri, 04/03 13:10, Paolo Bonzini wrote: On 03/04/2015 12:38, Fam Zheng wrote: Stopping the vm will drive the block job all the way to the end, because the sleep duration is too short, which means the block_job_sleep_ns in the block jobs are unhelpful. That is because the timer will

[Qemu-devel] [PATCH] nbd/trivial: fix type cast for ioctl

2015-04-03 Thread Bogdan Purcareata
This fixes ioctl behavior on powerpc e6500 platforms with 64bit kernel and 32bit userspace. The current type cast has no effect there and the value passed to the kernel is still 0. Probably an issue related to the compiler, since I'm assuming the same configuration works on a similar setup on x86.

Re: [Qemu-devel] [PATCH] nbd/trivial: fix type cast for ioctl

2015-04-03 Thread Michael Tokarev
03.04.2015 17:15, Paolo Bonzini wrote: On 03/04/2015 13:01, Bogdan Purcareata wrote: ... -if (ioctl(fd, NBD_SET_SIZE_BLOCKS, size / (size_t)BDRV_SECTOR_SIZE) 0) { +if (ioctl(fd, NBD_SET_SIZE_BLOCKS, (size_t)(size / BDRV_SECTOR_SIZE) 0)) { int serrno = errno; Hmm.. I

[Qemu-devel] [PATCH COLO v3 11/14] Backup: clear all bitmap when doing block checkpoint

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Cc: Jeff Cody jc...@redhat.com --- block/backup.c | 13 + blockjob.c | 10 ++

[Qemu-devel] [PATCH COLO v3 03/14] NBD client: connect to nbd server later

2015-04-03 Thread Wen Congyang
The secondary qemu starts later than the primary qemu, so we cannot connect to nbd server in bdrv_open(). Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Acked-by: Paolo Bonzini

[Qemu-devel] [PATCH v4 05/20] hw/acpi/aml-build: Add aml_interrupt() term

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Add aml_interrupt() for describing device interrupt in resource template. These can be used to generating DSDT table for ACPI on ARM. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org ---

[Qemu-devel] [PATCH v4 16/20] hw/acpi/aml-build: Add aml_else() term

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/acpi/aml-build.c | 7 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 8 insertions(+) diff --git a/hw/acpi/aml-build.c

[Qemu-devel] [PATCH v4 15/20] hw/acpi/aml-build: Add aml_not() term

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/acpi/aml-build.c | 9 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 10 insertions(+) diff --git

[Qemu-devel] [PATCH v4 00/20] Generate ACPI v5.1 tables and expose it to guest over fw_cfg on ARM

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org This patch series generate six ACPI v5.1 tables for machine virt on ARM. The set of generated tables are: - RSDP - RSDT - MADT - GTDT - FADT - DSDT - MCFG (For PCIe host bridge) These tables are created dynamically using the function of aml-build.c,

[Qemu-devel] [PATCH v4 02/20] hw/i386/acpi-build: move generic acpi building helpers into dedictated file

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org Move generic acpi building helpers into dedictated file and this can be shared with other machines. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/acpi/aml-build.c | 58

[Qemu-devel] [PATCH v4 07/20] hw/arm/virt-acpi-build: Generate FADT table and update ACPI headers

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org In the case of mach virt, it is used to set the Hardware Reduced bit and enable PSCI SMP booting through HVC. So ignore FACS and FADT points to DSDT. Update the header definitions for FADT taking into account the new additions of ACPI v5.1 in

[Qemu-devel] [PATCH v4 08/20] hw/arm/virt-acpi-build: Generate MADT table

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao shannon.z...@linaro.org MADT describes GIC enabled ARM platforms. The GICC and GICD subtables are used to define the GIC regions. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com Signed-off-by: Shannon Zhao shannon.z...@linaro.org --- hw/arm/virt-acpi-build.c | 61

Re: [Qemu-devel] [PATCH COLO v3 10/14] util/hbitmap: Add an API to reset all set bits in hbitmap

2015-04-03 Thread Paolo Bonzini
On 03/04/2015 12:01, Wen Congyang wrote: Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by: zhanghailiang zhang.zhanghaili...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- include/qemu/hbitmap.h | 8 tests/test-hbitmap.c | 39

Re: [Qemu-devel] [PATCH COLO v3 08/14] Allow creating backup jobs when opening BDS

2015-04-03 Thread Paolo Bonzini
On 03/04/2015 12:01, Wen Congyang wrote: When opening BDS, we need to create backup jobs for image-fleecing. This feature is not used by qemu-img, qemu-io or qemu-nbd. So just adding the referenced functions to stubs. Signed-off-by: Wen Congyang we...@cn.fujitsu.com Signed-off-by:

Re: [Qemu-devel] [PATCH 0/3] Fix stop draining block jobs

2015-04-03 Thread Paolo Bonzini
On 03/04/2015 12:38, Fam Zheng wrote: Stopping the vm will drive the block job all the way to the end, because the sleep duration is too short, which means the block_job_sleep_ns in the block jobs are unhelpful. That is because the timer will fire too soon, even before the aio_poll in

Re: [Qemu-devel] [RFC] hw/arm/virt: Add a generic-ehci USB controller to ARM virt model

2015-04-03 Thread Peter Maydell
On 3 April 2015 at 16:30, Jérémy Fanguède j.fangu...@virtualopensystems.com wrote: You are right, since it is now possible to use a PCI controller, we can use USB through it. This patch for completeness doesn't rely on PCI. Also, we have this patch for a long time, we just share it with the

Re: [Qemu-devel] block-commit dropping privs

2015-04-03 Thread Jeff Cody
On Fri, Apr 03, 2015 at 01:49:01PM -0600, Eric Blake wrote: On 04/02/2015 10:28 PM, Jeff Cody wrote: Basically, once a commit crosses more than one file, all intermediate files are useless and might as well be discarded. That's if you do a job-complete operation. But if you do a

Re: [Qemu-devel] [PATCH] openrisc: terminate qemu process upon receiving a halt signal.

2015-04-03 Thread Richard Henderson
On 04/02/2015 09:50 AM, Hesham ALMatary wrote: or1ksim simulator currently handles l.nop 0xC instruction as a halt signal. Do the same for QEMU. Signed-off-by: Hesham ALMatary heshamelmat...@gmail.com --- target-openrisc/translate.c | 5 + 1 file changed, 5 insertions(+) diff

[Qemu-devel] GNU ARM Eclipse QEMU progress

2015-04-03 Thread Liviu Ionescu
after completing the build procedures, I did a major cleanup in the code I already added to the project. the purpose was to clearly identify the modified code and to make future merges as conflict-free as possible. currently all added code is generally behind #if

[Qemu-devel] build script for windows, gnu/linux os x

2015-04-03 Thread Liviu Ionescu
hi, the script to build the multi-platform GNU ARM Eclipse QEMU is now fully functional and is able to create: - windows nsis setup files - os x pkg install packages - linux tgz archives. the windows versions (both 32-bit and 64-bit) are cross compiled with mingw-w64 on ubuntu. the

[Qemu-devel] [Bug 1297218] Re: guest hangs after live migration due to tsc jump

2015-04-03 Thread Serge Hallyn
I believe this should be fixed in 15.04, as the cited patches are present. Could someone confirm? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1297218 Title: guest hangs after live migration due

Re: [Qemu-devel] block-commit dropping privs

2015-04-03 Thread Eric Blake
On 04/02/2015 10:28 PM, Jeff Cody wrote: Basically, once a commit crosses more than one file, all intermediate files are useless and might as well be discarded. That's if you do a job-complete operation. But if you do a job-abort operation, the chain is left intact. What we should probably

Re: [Qemu-devel] [PATCH v2 1/4] blockjob: Allow nested pause

2015-04-03 Thread Paolo Bonzini
On 03/04/2015 16:05, Fam Zheng wrote: This patch changes block_job_pause to increase the pause counter and block_job_resume to decrease it. The counter will allow calling block_job_pause/block_job_resume unconditionally on a job when we need to suspend the IO temporarily. From now on,

Re: [Qemu-devel] [PATCH] nbd/trivial: fix type cast for ioctl

2015-04-03 Thread Paolo Bonzini
On 03/04/2015 13:01, Bogdan Purcareata wrote: This fixes ioctl behavior on powerpc e6500 platforms with 64bit kernel and 32bit userspace. The current type cast has no effect there and the value passed to the kernel is still 0. Probably an issue related to the compiler, since I'm

Re: [Qemu-devel] [PATCH] translate-all: use bitmap helpers for PageDesc's bitmap

2015-04-03 Thread Paolo Bonzini
On 03/04/2015 02:08, Emilio G. Cota wrote: On Sat, Mar 21, 2015 at 02:25:42 -0400, Emilio G. Cota wrote: Note that this test if (b ((1 len) - 1)) can be simplified to if (b 1) , since we know that iff the first bit of a tb is set, all other bits from that tb are set too.

Re: [Qemu-devel] [PATCH v2] tcg: optimise memory layout of TCGTemp

2015-04-03 Thread Richard Henderson
On 04/02/2015 05:07 PM, Emilio G. Cota wrote: After: $ taskset -c 0 perf stat -r 15 -- x86_64-linux-user/qemu-x86_64 img/bntest-x86_64 /dev/null Performance counter stats for 'x86_64-linux-user/qemu-x86_64 img/bntest-x86_64' (15 runs): 10459.968847 task-clock (msec) #

[Qemu-devel] [Snapshot Bug?]Qcow2 meta data corruption

2015-04-03 Thread leijian
Hi all, There was a problem about qcow2 image file happened in my serval vms and I could not figure it out, so have to ask for some help. Here is the thing: At first, I found there were some data corruption in a vm, so I did qemu-img check to all my vms. parts of check report: 3-Leaked

[Qemu-devel] [PATCH v2 3/4] qemu-iotests: Test that stop doesn't drain block jobs

2015-04-03 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- tests/qemu-iotests/129 | 86 ++ tests/qemu-iotests/129.out | 5 +++ tests/qemu-iotests/group | 1 + 3 files changed, 92 insertions(+) create mode 100644 tests/qemu-iotests/129 create mode 100644

[Qemu-devel] [PATCH v2 0/4] Fix stop draining block jobs

2015-04-03 Thread Fam Zheng
v2: Use pause approach as suggested by Paolo. Stopping the vm will drive the block job all the way to the end, because the sleep duration is too short, which means the block_job_sleep_ns in the block jobs are unhelpful. That is because the timer will fire too soon, even before the aio_poll in

[Qemu-devel] [Snapshot Bug?]Qcow2 meta data corruption

2015-04-03 Thread leijian
Hi all, There was a problem about qcow2 image file happened in my serval vms and I could not figure it out, so have to ask for some help. Here is the thing: At first, I found there were some data corruption in a vm, so I did qemu-img check to all my vms. parts of check report: 3-Leaked

[Qemu-devel] [PATCH v2 1/4] blockjob: Allow nested pause

2015-04-03 Thread Fam Zheng
This patch changes block_job_pause to increase the pause counter and block_job_resume to decrease it. The counter will allow calling block_job_pause/block_job_resume unconditionally on a job when we need to suspend the IO temporarily. From now on, each block_job_resume must be paired with a

[Qemu-devel] [PATCH v2 4/4] blockjob: Update function name in comments

2015-04-03 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- block/backup.c | 2 +- block/mirror.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/block/backup.c b/block/backup.c index 1c535b1..3312476 100644 --- a/block/backup.c +++ b/block/backup.c @@ -287,7 +287,7 @@ static void

[Qemu-devel] [PATCH v2 2/4] block: Pause block jobs in bdrv_drain_all

2015-04-03 Thread Fam Zheng
This is necessary to suppress more IO requests from being generated from block job coroutines. Signed-off-by: Fam Zheng f...@redhat.com --- block.c | 20 1 file changed, 20 insertions(+) diff --git a/block.c b/block.c index f2f8ae7..00cd91e 100644 --- a/block.c +++

Re: [Qemu-devel] [RFC] hw/arm/virt: Add a generic-ehci USB controller to ARM virt model

2015-04-03 Thread Jérémy Fanguède
On Fri, Apr 3, 2015 at 1:19 PM, Peter Maydell peter.mayd...@linaro.org wrote: On 3 April 2015 at 08:30, Jérémy Fanguède j.fangu...@virtualopensystems.com wrote: This patch enables the attachment of USB devices (emulated or passthrough) on the ARM virt model, without the need of a PCI USB