Re: [Qemu-devel] [PATCH] vhost: fix typo in vq_index description

2015-04-03 Thread Michael Tokarev
Applied to -trivial, thanks! /mjt

[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 defined(CONFIG_GNU_ARM_ECLIPS

[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

[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 gnu/linux

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 > --- > target-openrisc/translate.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/target-ope

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 yo

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 prob

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 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 > world, this kind of modificati

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 wrote: > > On 3 April 2015 at 08:30, Jérémy Fanguède > 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 controll

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;

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)

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 a

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 > as

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

[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 --- block.c | 20 1 file changed, 20 insertions(+) diff --git a/block.c b/block.c index f2f8ae7..00cd91e 100644 --- a/block.c +++ b/block.c @@ -2033,6 +20

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

2015-04-03 Thread Fam Zheng
Signed-off-by: Fam Zheng --- 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 coroutine_fn backup_run

[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 bloc

[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 --- 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 tests/qemu-iotests/

[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 bd

[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 clust

[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 clust

[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 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

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 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 use case for doing this rather t

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 wrote: > On 1 April 2015 at 18:45, Peter Maydell 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 a wrapper shell script that >> in

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 bdr

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 > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > Cc: Jeff Cody > --- > block/backup.c | 13 + > blockjob.c | 10 ++ > include/block/blockjob.h | 12 > 3 fi

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 > Signed-off-by: zhanghailiang > Sig

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 > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > --- > include/qemu/hbitmap.h | 8 > tests/test-hbitmap.c | 39 +++ > util/hbitmap.c | 16 >

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. >

[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 add

[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 --- blockjob.c | 3

[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 --- 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 tests/qemu-iotests/

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

2015-04-03 Thread Fam Zheng
Signed-off-by: Fam Zheng --- 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 coroutine_fn backup_run

[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 Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 11 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 12 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 9b8b422..221d054 100644 --- a/hw/acpi

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao MADT describes GIC enabled ARM platforms. The GICC and GICD subtables are used to define the GIC regions. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 61 include/hw/acpi/acpi-defs.h

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 17 + include/hw/acpi/aml-build.h | 5 + 2 files changed, 22 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 221d054..2076ba1 100644 ---

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao RSDP points to RSDT which in turn points to other tables. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/hw/arm/virt-acpi-build.c b/

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao RSDT points to other tables FADT, MADT, GTDT. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index a7ab

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao 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 Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c| 30 +

[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 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 `include/hw/acpi/acpi-defs.h` Sig

[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 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, taking into account the nee

[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 Move generic acpi building helpers into dedictated file and this can be shared with other machines. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 58 ++ hw/i386/acpi-build.c| 77

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao Add ToUUID macro, this is useful for generating PCIe ACPI table. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 23 +++ include/hw/acpi/aml-build.h | 2 ++ 2 files changed, 25 insertions(+) diff --git a/hw/acp

[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 Add PCIe controller in ACPI DSDT table, so the guest can detect the PCIe. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 140 +++ 1 file changed, 140 insertions(+) diff --git a/hw/arm/virt-

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao 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 Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 24 +--- hw/i386/acpi-build.c

[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 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 Signed-off-by: Shannon Zhao --- default-configs/arm-softmmu.mak

[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 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 to FADT GTDT MADT tables

[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 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 devices are described usi

[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 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 Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/

[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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 12 1 file changed, 12 insertions(+) diff --git a/block.c b/block.c index 2df950b..0bf097d 100644 --- a/block.c +++ b/block.c @@ -6412,6 +6412,10 @@ void bdrv_start_replication(BlockDrive

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- 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 b/hw/acpi/aml-build.c index 4f936f7..9b8b422 100644 --- a/hw/acpi/aml-bu

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 9 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 10 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 312afb6..4f936f7 100644 --- a/hw/acpi/aml

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao 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 Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 18 ++ include/hw/acpi/aml-build.h

[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 Add PCIe info struct, prepare for building PCIe table. And generate MCFG table. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- hw/arm/virt-acpi-build.c | 21 + include/hw/arm/virt-acpi-build.h | 12 2 files changed, 33 i

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

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/qcow2.c | 454 +- block/qcow2.h | 6 + 2 files changed, 458 insertions(+), 2 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 32bdf75

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

2015-04-03 Thread Shannon Zhao
From: Shannon Zhao 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 Signed-off-by: Shannon Zhao --- hw/acpi/aml-build.c | 22 ++ include/hw/acpi/

[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 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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- stubs/Makefile.objs | 1 + stubs

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

[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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Jeff Cody --- block/backup.c | 13 + blockjob.c | 10 ++ include/block/blockjob.h | 12 3 files changed, 35 insertions(+) diff --git a/block/backup.c b/

[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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei Acked-by: Paolo Bonzini --- block/nbd.c | 122 +---

[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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei Cc: Luiz Capitulino Cc: Michael Roth Reviewed-by: Paolo Bonzini --- block.c | 40 include/block/block.h | 5 + include/block/block_int.h | 11 ++

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

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/block.c b/block.c index 82e139b..23f0a81 100644 --- a/block.c +++ b/block.c @@ -1247,6 +1247,20 @@ out:

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

2015-04-03 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: Paolo Bonzini Signed-off-by: Yang Hongyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- docs/block-replication.txt | 153 + 1 file changed, 153 insertions(+) create mode 100644 docs/block-replic

[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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/quorum.c | 77 ++ 1 file changed, 77 insertions(+) diff --git a/block/quorum.c b/block/quorum.c index ca4f970..7f19ec6 100644 --- a/block/quorum.c +

[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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block.c | 9 + 1 file changed, 9 insertions(+) diff --git a/block.c b/block.c index 0bf097d..6b8bf63 100644 --- a/block.c +++ b/block.c @@ -1400,6 +1400,14 @@ static int bdrv_open_backing_reference_fil

[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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- include/qemu/hbitmap.h | 8 tests/test-hbitmap.c | 39 +++ util/hbitmap.c | 16 3 files changed, 63 insertions(+) diff --git a/include/qe

[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 Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/nbd.c | 49 + 1 file changed, 49 insertions(+) diff --git a/block/nbd.c b/block/nbd.c index 3faf865..269ffe0 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -

[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 COLO

[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 ig

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) wrote:

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.zhanghail

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 wrote: On Wed, 1 Apr 2015 16:15:03 +0800 Jason Wang 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 depending on the number of virtio queues, but r

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 wrote: On Wed, 1 Apr 2015 16:14:54 +0800 Jason Wang wrote: Stress/migration test on virtio-pci, compile test on other targets. And make check on s390x-softmmu and ppc64-softmmu. Patch 9 needs some slight modifications to fit on top of mast

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

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] [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

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

[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 Signed-off-by: Jérémy Fanguède --- A new EHCI USB controller nam