[Qemu-devel] [Bug 1336801] Re: 12.04 guest hangs on a 14.04 host server with cirrus graphics

2014-07-23 Thread Serge Hallyn
Actually I suppose this could be a seabios bug? (I am on 1.7.4-4) -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1336801 Title: 12.04 guest hangs on a 14.04 host server with cirrus graphics Statu

[Qemu-devel] [Bug 1336801] Re: 12.04 guest hangs on a 14.04 host server with cirrus graphics

2014-07-23 Thread Serge Hallyn
Note that on a successful boot, dmesg | grep cirrus shows: [9.064581] fb: conflicting fb hw usage cirrusdrmfb vs EFI VGA - removing generic driver [9.133808] fbcon: cirrusdrmfb (fb0) is primary device [9.431359] cirrus :00:02.0: fb0: cirrusdrmfb frame buffer device [9.431362]

Re: [Qemu-devel] [PATCH V4 2/5] runner: Tool for fuzz tests execution

2014-07-23 Thread Fam Zheng
On Mon, 07/21 14:18, Maria Kustova wrote: > The purpose of the test runner is to prepare the test environment (e.g. create > a work directory, a test image, etc), execute a program under test with > parameters, indicate a test failure if the program was killed during the test > execution and collec

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

2014-07-23 Thread Hongyang Yang
On 07/23/2014 11:44 PM, Eric Blake wrote: On 07/23/2014 08:25 AM, Yang Hongyang wrote: Virtual machine (VM) replication is a well known technique for providing application-agnostic software-implemented hardware fault tolerance "non-stop service". COLO is a high availability solution. Both primar

[Qemu-devel] [RFC PATCH v2] add memory hotunplug support

2014-07-23 Thread Zhu Guihua
From: Hu Tao This patch is to solve a problem that when you add a hot-pluggable memory, you can't remove the memory. Its approach is to set GPE status bit by qemu, then trigger SCI interrupt to notify guest os. Guest os checks device status, and free memory resource if possible, then generate O

Re: [Qemu-devel] [Intel-gfx] ResettRe: [Xen-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-07-23 Thread Chen, Tiejun
On 2014/7/24 4:54, Konrad Rzeszutek Wilk wrote: On Sat, Jul 19, 2014 at 12:27:21AM +, Kay, Allen M wrote: For the MCH PCI registers that do need to be read - can you tell us which ones those are? In qemu/hw/xen_pt_igd.c/igd_pci_read(), following MCH PCI config register reads are passthro

Re: [Qemu-devel] [RFC] How to handle feature regressions in new QEMU releases

2014-07-23 Thread ronnie sahlberg
On Wed, Jul 16, 2014 at 10:29 AM, Michael Tokarev wrote: > 16.07.2014 21:23, ronnie sahlberg wrote: > >> If you ask debian to upgrade. Could you ask them to wait and upgrade after I >> have release the next version, hopefully if all goes well, at the end >> of this week? > > There's no problem in

Re: [Qemu-devel] [PATCH 1/3] intel-iommu: introduce Intel IOMMU (VT-d) emulation

2014-07-23 Thread Le Tan
Hi Stefan, 2014-07-24 4:29 GMT+08:00 Stefan Weil : > Am 22.07.2014 17:47, schrieb Le Tan: >> Add support for emulating Intel IOMMU according to the VT-d specification for >> the q35 chipset machine. Implement the logic for DMAR (DMA remapping) without >> PASID support. Use register-based invalidat

Re: [Qemu-devel] [PATCH 1/3] intel-iommu: introduce Intel IOMMU (VT-d) emulation

2014-07-23 Thread Le Tan
Hi Paolo, 2014-07-23 15:58 GMT+08:00 Paolo Bonzini : > Il 22/07/2014 17:47, Le Tan ha scritto: >> +static inline void define_quad(IntelIOMMUState *s, hwaddr addr, uint64_t >> val, >> +uint64_t wmask, uint64_t w1cmask) >> +{ >> +*((uint64_t *)&s->csr[addr]) = val; > > A

Re: [Qemu-devel] [PATCH 1/7] hw/misc/platform_devices: helpers for dynamic instantiation of platform devices

2014-07-23 Thread Alexander Graf
On 23.07.14 16:58, Eric Auger wrote: On 07/08/2014 03:43 PM, Alexander Graf wrote: On 07.07.14 09:08, Eric Auger wrote: This new module implements routines which help in dynamic instantiation of sysbus devices. Machine files can use those generic routines. --- Dynamic sysbus device allocatio

Re: [Qemu-devel] [PATCH 5/7] hw/core/sysbus: add fdt_add_node method

2014-07-23 Thread Alexander Graf
On 23.07.14 17:33, Eric Auger wrote: On 07/08/2014 03:52 PM, Alexander Graf wrote: On 07.07.14 09:08, Eric Auger wrote: This method is meant to be called on sysbus device dynamic instantiation (-device option). Devices that support this kind of instantiation must implement this method. Signed

[Qemu-devel] [PATCH v3 3/5] block: use the standard 'ret' instead of 'result'

2014-07-23 Thread Jeff Cody
Most QEMU code uses 'ret' for function return values. The VDI driver uses a mix of 'result' and 'ret'. This cleans that up, switching over to the standard 'ret' usage. Reviewed-by: Max Reitz Signed-off-by: Jeff Cody --- block/vdi.c | 36 ++-- 1 file changed, 18

[Qemu-devel] [PATCH v3 5/5] block: iotest - update 084 to test static VDI image creation

2014-07-23 Thread Jeff Cody
This updates the VDI corruption test to also test static VDI image creation, as well as the default dynamic image creation. Reviewed-by: Max Reitz Signed-off-by: Jeff Cody --- tests/qemu-iotests/084 | 16 ++-- tests/qemu-iotests/084.out | 14 ++ 2 files changed, 28 i

[Qemu-devel] [PATCH v3 4/5] block: vpc - use block layer ops in vpc_create, instead of posix calls

2014-07-23 Thread Jeff Cody
Use the block layer to create, and write to, the image file in the VPC .bdrv_create() operation. This has a couple of benefits: Images can now be created over protocols, and hacks such as NOCOW are not needed in the image format driver, and the underlying file protocol appropriate for the host OS

[Qemu-devel] [PATCH v3 2/5] block: vdi - use block layer ops in vdi_create, instead of posix calls

2014-07-23 Thread Jeff Cody
Use the block layer to create, and write to, the image file in the VDI .bdrv_create() operation. This has a couple of benefits: Images can now be created over protocols, and hacks such as NOCOW are not needed in the image format driver, and the underlying file protocol appropriate for the host OS

[Qemu-devel] [PATCH v3 0/5] Allow VPC and VDI to be created over protocols

2014-07-23 Thread Jeff Cody
Changes from v2 -> v3: * Patch 2: Removed extra #ifdef __linux__ from top of file (Max) * Patch 4: Removed extra #ifdef __linux__ from top of file (Max) * Patch 5: Removed output from debug cruft (Max) * Added Max's R-b to remaining patches Changes from v1 -> v2: * Patch 2: Use

[Qemu-devel] [PATCH v3 1/5] block: allow bdrv_unref() to be passed NULL pointers

2014-07-23 Thread Jeff Cody
If bdrv_unref() is passed a NULL BDS pointer, it is safe to exit with no operation. This will allow cleanup code to blindly call bdrv_unref() on a BDS that has been initialized to NULL. Reviewed-by: Max Reitz Signed-off-by: Jeff Cody --- block.c | 3 +++ 1 file changed, 3 insertions(+) diff -

Re: [Qemu-devel] [Intel-gfx] ResettRe: [Xen-devel] [v5][PATCH 0/5] xen: add Intel IGD passthrough support

2014-07-23 Thread Konrad Rzeszutek Wilk
On Sat, Jul 19, 2014 at 12:27:21AM +, Kay, Allen M wrote: > > For the MCH PCI registers that do need to be read - can you tell us which > > ones those are? > > In qemu/hw/xen_pt_igd.c/igd_pci_read(), following MCH PCI config register > reads are passthrough to the host HW. Some of the regi

Re: [Qemu-devel] [PATCH 1/3] intel-iommu: introduce Intel IOMMU (VT-d) emulation

2014-07-23 Thread Stefan Weil
Am 22.07.2014 17:47, schrieb Le Tan: > Add support for emulating Intel IOMMU according to the VT-d specification for > the q35 chipset machine. Implement the logic for DMAR (DMA remapping) without > PASID support. Use register-based invalidation for context-cache invalidation > and IOTLB invalidati

[Qemu-devel] [PATCH] arm64: 64K pages and > 1024MB guest

2014-07-23 Thread Joel Schopp
kvm_set_phys_mem doesn't work on arm64 with memory > 1GB. It exits with: kvm_set_phys_mem: error registering slot: Invalid argument An example of the failing address and size are start_addr == 0x90011000 and size=0xaffef000. As you can see both of these are 4K aligned, not 64K aligned. At 1024M

Re: [Qemu-devel] [PATCH 2/2] pc: hack for migration compatibility from QEMU 2.0

2014-07-23 Thread Laszlo Ersek
On 07/23/14 18:37, Paolo Bonzini wrote: > Changing the ACPI table size causes migration to break, and the memory > hotplug work opened our eyes on how horribly we were breaking things in > 2.0 already. > > The ACPI table size is rounded to the next 4k, which one would think > gives some headroom.

Re: [Qemu-devel] [PATCH 1/2] acpi-dsdt: procedurally generate _PRT

2014-07-23 Thread Laszlo Ersek
On 07/23/14 18:37, Paolo Bonzini wrote: > This replaces the _PRT constant with a method that computes it. > > The problem is that the DSDT+SSDT have grown from 2.0 to 2.1, > enough to cross the 8k barrier (we align the ACPI tables to 4k > before putting them in fw_cfg). This causes problems with

Re: [Qemu-devel] [RFC PATCH 07/17] COLO buffer: implement colo buffer as well as QEMUFileOps based on it

2014-07-23 Thread Eric Blake
On 07/23/2014 08:25 AM, Yang Hongyang wrote: > We need a buffer to store migration data. > > On save side: > all saved data was write into colo buffer first, so that we can know s/was write/is written/ > the total size of the migration data. this can also separate the data > transmission from

[Qemu-devel] [ANNOUNCE] QEMU 1.7.2 Stable released

2014-07-23 Thread Michael Roth
Hi everyone, I am pleased to announce that the QEMU v1.7.2 stable release is now available at: http://wiki.qemu.org/download/qemu-1.7.2.tar.bz2 v1.7.2 is now tagged in the official qemu.git repository, and the stable-1.7 branch has been updated accordingly: http://git.qemu.org/?p=qemu.git;a

Re: [Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-23 Thread Peter Maydell
On 23 July 2014 17:31, Eric Blake wrote: > Rather than change the Makefile to invoke the script with bash, we could > instead bend over backwards to rewrite the script in a way that works > with non-POSIX shells (as in, flag=`expr $flag ^ 1`), but that feels > backwards to me. Until someone is ac

Re: [Qemu-devel] [PATCH] target-i386/FPU: wrong conversion infinity from float80 to int32/int64

2014-07-23 Thread Peter Maydell
On 23 July 2014 16:04, Dmitry Poletaev wrote: > I'm understood. So, am I right? Pretty much, except it's better to use the accessor functions get_float_exception_flags() and set_float_exception_flags(). > +if (env->fp_status.float_exception_flags & FPUS_IE) { > +val = 0x8

[Qemu-devel] [PATCH 2/2] pc: hack for migration compatibility from QEMU 2.0

2014-07-23 Thread Paolo Bonzini
Changing the ACPI table size causes migration to break, and the memory hotplug work opened our eyes on how horribly we were breaking things in 2.0 already. The ACPI table size is rounded to the next 4k, which one would think gives some headroom. In practice this is not the case, because the user

[Qemu-devel] [PATCH 1/2] acpi-dsdt: procedurally generate _PRT

2014-07-23 Thread Paolo Bonzini
This replaces the _PRT constant with a method that computes it. The problem is that the DSDT+SSDT have grown from 2.0 to 2.1, enough to cross the 8k barrier (we align the ACPI tables to 4k before putting them in fw_cfg). This causes problems with migration and the pc-2.0 machine type. The soluti

[Qemu-devel] [PATCH 0/2] pc: fix /etc/acpi/tables size in fw_cfg for -M pc-2.0

2014-07-23 Thread Paolo Bonzini
Changing the ACPI table size causes migration to break, and the memory hotplug work opened our eyes on how horribly we were breaking things in 2.0 already. Unfortunately when reviewing the design I assumed incorrectly that all tables would be placed in separate fw_cfg files. This would have been

Re: [Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-23 Thread Eric Blake
On 07/23/2014 10:13 AM, Felix von Leitner wrote: > I actually have bash installed as /bin/sh and /bin/bash. > But I also have heirloom sh installed, which installs itself as /sbin/sh, and > that happened to be first in my $PATH. > > Since the makefiles use "sh script" to run the scripts, that cal

[Qemu-devel] [Bug 1347555] Re: qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-23 Thread Felix von Leitner
I actually have bash installed as /bin/sh and /bin/bash. But I also have heirloom sh installed, which installs itself as /sbin/sh, and that happened to be first in my $PATH. Since the makefiles use "sh script" to run the scripts, that called the heirloom sh. http://heirloom.sourceforge.net/sh.ht

Re: [Qemu-devel] [Bug 1347555] [NEW] qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-23 Thread Eric Blake
On 07/23/2014 04:21 AM, Felix von Leitner wrote: > Public bug reported: > > hxtool (part of the early build process) is a bash script. Running it > with /bin/sh yields a syntax error on line 10: > > 10 STEXI*|ETEXI*|SQMP*|EQMP*) flag=$(($flag^1)) > > $(( expr )) is a bash extension

Re: [Qemu-devel] [RFC PATCH 12/17] COLO ctl: add a RunState RUN_STATE_COLO

2014-07-23 Thread Eric Blake
On 07/23/2014 08:25 AM, Yang Hongyang wrote: > Guest will enter this state when paused to save/resore VM state s/resore/restore/ > under colo checkpoint. > > Signed-off-by: Yang Hongyang > --- > qapi-schema.json | 4 +++- > vl.c | 8 > 2 files changed, 11 insertions(+), 1

Re: [Qemu-devel] [RFC PATCH 02/17] COLO: introduce an api colo_supported() to indicate COLO support

2014-07-23 Thread Eric Blake
On 07/23/2014 08:25 AM, Yang Hongyang wrote: > introduce an api colo_supported() to indicate COLO support, returns > true if colo supported(configured with --enable-colo). Space before () in English sentences: s/supported(configured/supported (configured/ As I mentioned in the cover letter, defa

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

2014-07-23 Thread Eric Blake
On 07/23/2014 08:25 AM, Yang Hongyang wrote: > Virtual machine (VM) replication is a well known technique for > providing application-agnostic software-implemented hardware fault > tolerance "non-stop service". COLO is a high availability solution. > Both primary VM (PVM) and secondary VM (SVM) run

Re: [Qemu-devel] [PATCH 7/7] hw/misc/platform_devices: Add platform_bus_base to PlatformDevtreeData

2014-07-23 Thread Eric Auger
On 07/08/2014 03:53 PM, Alexander Graf wrote: > > On 07.07.14 09:08, Eric Auger wrote: >> The base address of the platform bus sometimes is used to build the >> property. >> >> --- >> >> Actually I did not succeed in doing it another way with Calxeda xgmac. >> If someone knows how to do without,

Re: [Qemu-devel] [PATCH 5/7] hw/core/sysbus: add fdt_add_node method

2014-07-23 Thread Eric Auger
On 07/08/2014 03:52 PM, Alexander Graf wrote: > > On 07.07.14 09:08, Eric Auger wrote: >> This method is meant to be called on sysbus device dynamic >> instantiation (-device option). Devices that support this >> kind of instantiation must implement this method. >> >> Signed-off-by: Eric Auger >

[Qemu-devel] [Bug 1347555] [NEW] qemu build failure, hxtool is a bash script, not a /bin/sh script

2014-07-23 Thread Felix von Leitner
Public bug reported: hxtool (part of the early build process) is a bash script. Running it with /bin/sh yields a syntax error on line 10: 10 STEXI*|ETEXI*|SQMP*|EQMP*) flag=$(($flag^1)) $(( expr )) is a bash extension, not part of /bin/sh. Note that replacing the sh in the first l

[Qemu-devel] [Bug 1347387] [NEW] while i was created the new virtual machine using qemu the following error was shown in fedora version 20

2014-07-23 Thread selvakumar
Public bug reported: [root@localhost pkgs]# qemu-img create virtualdisk.img 100M qemu-img: symbol lookup error: qemu-img: undefined symbol: glfs_discard_async [root@localhost pkgs]# qemu-i386 create virtualdisk.img 100M Error while loading create: No such file or directory [root@localhost pkgs]#

Re: [Qemu-devel] [PATCH] target-i386/FPU: wrong conversion infinity from float80 to int32/int64

2014-07-23 Thread Dmitry Poletaev
I'm understood. So, am I right? From: Dmitry Poletaev Signed-off-by: Dmitry Poletaev --- target-i386/fpu_helper.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/target-i386/fpu_helper.c b/target-i386/fpu_helper.c index 1b2900d..c4fdad8 100644 --- a/t

Re: [Qemu-devel] [PATCH 4/7] hw/arm/virt: Support dynamically spawned sysbus devices

2014-07-23 Thread Eric Auger
On 07/08/2014 03:51 PM, Alexander Graf wrote: > > On 07.07.14 09:08, Eric Auger wrote: >> Allows sysbus devices to be instantiated from command line by >> using -device option >> >> --- >> >> Inspired from what Alex Graf did in ppc e500 >> https://lists.gnu.org/archive/html/qemu-ppc/2014-07/msg000

Re: [Qemu-devel] [PATCH 1/7] hw/misc/platform_devices: helpers for dynamic instantiation of platform devices

2014-07-23 Thread Eric Auger
On 07/08/2014 03:43 PM, Alexander Graf wrote: > > On 07.07.14 09:08, Eric Auger wrote: >> This new module implements routines which help in dynamic instantiation >> of sysbus devices. Machine files can use those generic routines. >> >> --- >> >> Dynamic sysbus device allocation fully written by Al

Re: [Qemu-devel] [RFC PATCH 03/17] COLO migration: add a migration capability 'colo'

2014-07-23 Thread Eric Blake
On 07/23/2014 08:25 AM, Yang Hongyang wrote: > Add a migration capability 'colo'. If this capability is on, > The migration will never end, and the VM will be continuously > checkpointed. > > Signed-off-by: Yang Hongyang > --- > include/qapi/qmp/qerror.h | 3 +++ > migration.c | 6

[Qemu-devel] [RFC PATCH 10/17] COLO ctl: introduce is_slave() and is_master()

2014-07-23 Thread Yang Hongyang
is_slaver is to determine whether the QEMU instance is a slaver(migration target) at runtime. is_master is to determine whether the QEMU instance is a master(migration starter) at runtime. This 2 APIs will be used later. Signed-off-by: Yang Hongyang --- migration-colo.c | 11 +++ 1 file

[Qemu-devel] [RFC PATCH 16/17] COLO ram cache: implement colo ram cache on slaver

2014-07-23 Thread Yang Hongyang
The ram cache was initially the same as PVM's memory. At checkpoint, we cache the dirty memory of PVM into ram cache (so that ram cache always the same as PVM's memory at every checkpoint), flush cached memory to SVM after we received all PVM dirty memory(only needed to flush memory that was both d

[Qemu-devel] [RFC PATCH 15/17] COLO save: reuse migration bitmap under colo checkpoint

2014-07-23 Thread Yang Hongyang
reuse migration bitmap under colo checkpoint, only send dirty pages per-checkpoint. Signed-off-by: Yang Hongyang --- arch_init.c| 20 +++- include/migration/migration-colo.h | 2 ++ migration-colo.c | 6 ++ stubs/migration-colo.c

[Qemu-devel] [RFC PATCH 14/17] COLO ctl: implement colo restore

2014-07-23 Thread Yang Hongyang
implement colo restore Signed-off-by: Yang Hongyang --- migration-colo.c | 43 +++ 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/migration-colo.c b/migration-colo.c index 03ac157..8596845 100644 --- a/migration-colo.c +++ b/migration-colo.

[Qemu-devel] [RFC PATCH 11/17] COLO ctl: implement colo checkpoint protocol

2014-07-23 Thread Yang Hongyang
implement colo checkpoint protocol. Checkpoint synchronzing points. Primary Secondary NEW @ Suspend SUSPENDED @ Suspend&Save state SEND@

[Qemu-devel] [PATCH qom-next] machine: Clean up -machine handling

2014-07-23 Thread Andreas Färber
Since commit c4090f8, -object options are no longer handled through object_set_property(), so clean up -object leftovers by renaming the function and dropping special-casing of qom-type and id properties. Cc: Paolo Bonzini Signed-off-by: Andreas Färber --- vl.c | 8 1 file changed, 4 i

[Qemu-devel] [RFC PATCH 02/17] COLO: introduce an api colo_supported() to indicate COLO support

2014-07-23 Thread Yang Hongyang
introduce an api colo_supported() to indicate COLO support, returns true if colo supported(configured with --enable-colo). Signed-off-by: Yang Hongyang --- Makefile.objs | 1 + include/migration/migration-colo.h | 18 ++ migration-colo.c |

[Qemu-devel] [RFC PATCH 13/17] COLO ctl: implement colo save

2014-07-23 Thread Yang Hongyang
implement colo save Signed-off-by: Yang Hongyang --- migration-colo.c | 44 ++-- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/migration-colo.c b/migration-colo.c index a708872..03ac157 100644 --- a/migration-colo.c +++ b/migration-colo.c

[Qemu-devel] [RFC PATCH 08/17] COLO: disable qdev hotplug

2014-07-23 Thread Yang Hongyang
COLO do not support qdev hotplug migration, disable it. Signed-off-by: Yang Hongyang --- migration-colo.c | 12 1 file changed, 12 insertions(+) diff --git a/migration-colo.c b/migration-colo.c index b90d9b6..f295e56 100644 --- a/migration-colo.c +++ b/migration-colo.c @@ -12,6 +12

[Qemu-devel] [RFC PATCH 17/17] HACK: trigger checkpoint every 500ms

2014-07-23 Thread Yang Hongyang
Because COLO Agent is under development. We add this hack for test purpose. Trigger checkpoint every 500ms so that we can test the process of COLO save/restore. NOTE: This is only a hack, and will be removed at last. Signed-off-by: Yang Hongyang --- migration-colo.c | 14 +- 1 file

[Qemu-devel] [RFC PATCH 06/17] COLO restore: integrate COLO checkpointed restore into qemu restore

2014-07-23 Thread Yang Hongyang
enter colo checkpointed restore loop after live migration. Signed-off-by: Yang Hongyang --- include/migration/migration-colo.h | 6 ++ migration-colo-comm.c | 10 ++ migration-colo.c | 22 ++ migration.c| 3

[Qemu-devel] [RFC PATCH 09/17] COLO ctl: implement API's that communicate with colo agent

2014-07-23 Thread Yang Hongyang
We use COLO agent to compare the packets returned by Primary VM and Secondary VM, and decide whether to start a checkpoint according to some rules. It is a linux kernel module for host. COLO controller communicate with the agent through ioctl(). Signed-off-by: Yang Hongyang --- migration-colo.c

[Qemu-devel] [RFC PATCH 12/17] COLO ctl: add a RunState RUN_STATE_COLO

2014-07-23 Thread Yang Hongyang
Guest will enter this state when paused to save/resore VM state under colo checkpoint. Signed-off-by: Yang Hongyang --- qapi-schema.json | 4 +++- vl.c | 8 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 807f5a2..b421

[Qemu-devel] [RFC PATCH 01/17] configure: add CONFIG_COLO to switch COLO support

2014-07-23 Thread Yang Hongyang
./configure --enable-colo/--disable-colo to switch COLO support on/off. COLO support is off by default. Signed-off-by: Yang Hongyang --- configure | 14 ++ 1 file changed, 14 insertions(+) diff --git a/configure b/configure index f7685b5..4071943 100755 --- a/configure +++ b/configu

[Qemu-devel] [RFC PATCH 05/17] COLO save: integrate COLO checkpointed save into qemu migration

2014-07-23 Thread Yang Hongyang
Integrate COLO checkpointed save flow into qemu migration. Add a migrate state: MIG_STATE_COLO, enter this migrate state after the first live migration successfully finished. Create a colo thread to do the checkpointed save. Signed-off-by: Yang Hongyang --- include/migration/migration-colo

[Qemu-devel] [RFC PATCH 03/17] COLO migration: add a migration capability 'colo'

2014-07-23 Thread Yang Hongyang
Add a migration capability 'colo'. If this capability is on, The migration will never end, and the VM will be continuously checkpointed. Signed-off-by: Yang Hongyang --- include/qapi/qmp/qerror.h | 3 +++ migration.c | 6 ++ qapi-schema.json | 5 - 3 files changed,

[Qemu-devel] [RFC PATCH 07/17] COLO buffer: implement colo buffer as well as QEMUFileOps based on it

2014-07-23 Thread Yang Hongyang
We need a buffer to store migration data. On save side: all saved data was write into colo buffer first, so that we can know the total size of the migration data. this can also separate the data transmission from colo control data, we use colo control data over socket fd to synchronous both side

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

2014-07-23 Thread Yang Hongyang
Virtual machine (VM) replication is a well known technique for providing application-agnostic software-implemented hardware fault tolerance "non-stop service". COLO is a high availability solution. Both primary VM (PVM) and secondary VM (SVM) run in parallel. They receive the same request from clie

[Qemu-devel] [RFC PATCH 04/17] COLO info: use colo info to tell migration target colo is enabled

2014-07-23 Thread Yang Hongyang
migrate colo info to migration target to tell the target colo is enabled. Signed-off-by: Yang Hongyang --- Makefile.objs | 1 + include/migration/migration-colo.h | 3 ++ migration-colo-comm.c | 68 ++ vl.c

Re: [Qemu-devel] [PATCH] scripts: qapi-event.py: support vendor extension

2014-07-23 Thread Wenchao Xia
Reviewed-by: Wenchao Xia I didn't expect dot in schema before.

Re: [Qemu-devel] [PATCH v2 for-2.1 0/5] docs: document remaining QMP events

2014-07-23 Thread Wenchao Xia
Reviewed-by: Wenchao Xia

Re: [Qemu-devel] [PATCH v2 for-2.1 4/5] docs: document missing POWERDOWN event

2014-07-23 Thread Wenchao Xia
于 2014/7/23 20:26, Eric Blake 写道: > The POWERDOWN event was first documented in 0aab9ec3. But since > dfab4892 later restored this file to the state prior to qmp events, > and we never documented it in the past, anyone using this file > instead of qapi will miss out on this event. Tweak the exist

[Qemu-devel] [PATCH v7 2/5] block/archipelago: Implement bdrv_parse_filename()

2014-07-23 Thread Chrysostomos Nanakos
VM Image on Archipelago volume can also be specified like this: file=archipelago:[/mport=[:vport=][: segment=]] Examples: file=archipelago:my_vm_volume file=archipelago:my_vm_volume/mport=123 file=archipelago:my_vm_volume/mport=123:vport=1234 file=archipelago:my_vm_volume/mport=123:vport=1234:se

[Qemu-devel] [PATCH v7 5/5] qemu-iotests: add support for Archipelago protocol

2014-07-23 Thread Chrysostomos Nanakos
Signed-off-by: Chrysostomos Nanakos --- tests/qemu-iotests/common|6 ++ tests/qemu-iotests/common.rc |9 - 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/common b/tests/qemu-iotests/common index e4083f4..70df659 100644 --- a/tests/qemu-io

[Qemu-devel] [PATCH v7 1/5] block: Support Archipelago as a QEMU block backend

2014-07-23 Thread Chrysostomos Nanakos
VM Image on Archipelago volume is specified like this: file.driver=archipelago,file.volume=[,file.mport=[, file.vport=][,file.segment=]] 'archipelago' is the protocol. 'mport' is the port number on which mapperd is listening. This is optional and if not specified, QEMU will make Archipelago to u

[Qemu-devel] [PATCH v7 4/5] QMP: Add support for Archipelago

2014-07-23 Thread Chrysostomos Nanakos
Introduce new enum BlockdevOptionsArchipelago. @volume: #Name of the Archipelago volume image @mport: #'mport' is the port number on which mapperd is listening. This is optional and if not specified, QEMU will make Archipelago

[Qemu-devel] [PATCH v7 3/5] block/archipelago: Add support for creating images

2014-07-23 Thread Chrysostomos Nanakos
qemu-img archipelago:[/mport=[:vport=] [:segment=]] [size] Signed-off-by: Chrysostomos Nanakos --- block/archipelago.c | 146 +++ 1 file changed, 146 insertions(+) diff --git a/block/archipelago.c b/block/archipelago.c index 5a9fc68..b5c66fd 100

[Qemu-devel] [PATCH v7 0/5] Support Archipelago as a QEMU block backend

2014-07-23 Thread Chrysostomos Nanakos
v7: - Fix coding style issues. - Rename __archipelago_submit_request function to archipelago_submit_request. - Set X_NONBLOCK flag to xseg_receive(). - Return -EIO to .bdrv_getlength() if archipelago_volume_info() fails. - Fix segment_name mem leak. - Bump version number from 2.1 to 2.2 in qa

Re: [Qemu-devel] [PATCH v2 2/3] tap-bsd: implement a FreeBSD only version of tap_open

2014-07-23 Thread Stefano Stabellini
On Wed, 23 Jul 2014, Roger Pau Monné wrote: > On 22/07/14 14:26, Stefano Stabellini wrote: > > On Tue, 22 Jul 2014, Roger Pau Monné wrote: > >> On 27/05/14 15:29, Stefan Hajnoczi wrote: > >>> On Fri, May 23, 2014 at 05:57:48PM +0200, Roger Pau Monne wrote: > The current behaviour of tap_open f

Re: [Qemu-devel] [PATCH v2 2/3] tap-bsd: implement a FreeBSD only version of tap_open

2014-07-23 Thread Roger Pau Monné
On 22/07/14 14:26, Stefano Stabellini wrote: > On Tue, 22 Jul 2014, Roger Pau Monné wrote: >> On 27/05/14 15:29, Stefan Hajnoczi wrote: >>> On Fri, May 23, 2014 at 05:57:48PM +0200, Roger Pau Monne wrote: The current behaviour of tap_open for BSD systems differ greatly from it's Linux cou

Re: [Qemu-devel] [RFC v4 05/13] hw/vfio/pci: Introduce VFIORegion

2014-07-23 Thread Eric Auger
On 07/09/2014 12:41 AM, Alex Williamson wrote: > On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: >> This structure is going to be shared by VFIOPCIDevice and >> VFIOPlatformDevice. VFIOBAR includes it. >> >> vfio_eoi becomes an ops of VFIODevice specialized by parent device. >> This makes poss

Re: [Qemu-devel] [PATCH v2 for-2.1 0/5] docs: document remaining QMP events

2014-07-23 Thread Markus Armbruster
Eric Blake writes: > diff from v1: > split into series [Markus] > fix SPICE_MIGRATE_COMPLETE typo [Markus] > > Eric Blake (5): > docs: grammar fixes to qmp-events > docs: split SPICE_* event docs > docs: document missing SPICE_MIGRATE_COMPLETED event > docs: document missing POWERDOWN e

Re: [Qemu-devel] [PATCH v2 for-2.1 3/5] docs: document missing SPICE_MIGRATE_COMPLETED event

2014-07-23 Thread Markus Armbruster
Eric Blake writes: > The SPICE_MIGRATE_COMPLETED event was first documented in > 7cfadb6b. But since dfab4892 later restored this flie to the "this file" > state prior to qmp events, and we never documented it in the > past, anyone using this file instead of qapi will miss out on > this event.

[Qemu-devel] [RFC 2/3] QMP: rate limit BLOCK_IO_ERROR

2014-07-23 Thread Luiz Capitulino
This event has the same characteristics of the other rate-limited events, mainly we can emit dozens of it. Rate limit it then. Signed-off-by: Luiz Capitulino --- monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor.c b/monitor.c index 5bc70a6..33abe6c 100644 --- a/monitor.c +++

[Qemu-devel] [RFC 0/3] QMP: extend BLOCK_IO_ERROR event

2014-07-23 Thread Luiz Capitulino
Management software, such as OpenStack and RHEV's vdsm, wants to be able to allocate VM disk space on demand. The basic use case is to start a VM with a small disk and then the disk is enlarged when QEMU hits a ENOSPC condition. To this end, the management software has to be notified when QEMU en

[Qemu-devel] [RFC 3/3] QMP: extend BLOCK_IO_ERROR event with no-space indicator

2014-07-23 Thread Luiz Capitulino
Management software, such as OpenStack and RHEV's vdsm, want to be able to allocate disk space on demand. The basic use case is to start a VM with a small disk and then the disk is enlarged when QEMU hits a ENOSPC condition. To this end, the management software has to be notified when QEMU encount

[Qemu-devel] [RFC 1/3] qapi: block-core.json: improve query-block doc

2014-07-23 Thread Luiz Capitulino
List device models supporting the io-status key. Signed-off-by: Luiz Capitulino --- qapi/block-core.json | 1 + 1 file changed, 1 insertion(+) diff --git a/qapi/block-core.json b/qapi/block-core.json index e378653..1069679 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -332,6 +

Re: [Qemu-devel] [PATCH] target-i386/FPU: wrong conversion infinity from float80 to int32/int64

2014-07-23 Thread Peter Maydell
On 23 July 2014 12:55, Dmitry Poletaev wrote: > 14.07.2014, 18:59, "Peter Maydell" : > >> Since softfloat's status flags are sticky ... > > What does it mean? "Sticky" here means that the status flags accumulate the status from a sequence of operations: a softfloat function will set the flag if

Re: [Qemu-devel] [PATCH v3] docs/multiple-iothreads.txt: add documentation on IOThread programming

2014-07-23 Thread Eric Blake
On 07/23/2014 05:55 AM, Stefan Hajnoczi wrote: > This document explains how IOThreads and the main loop are related, > especially how to write code that can run in an IOThread. Currently > only virtio-blk-data-plane uses these techniques. The next obvious > target is virtio-scsi; there has also b

[Qemu-devel] [PATCH v2 for-2.1 2/5] docs: split SPICE_* event docs

2014-07-23 Thread Eric Blake
For consistency with the rest of this file, every event should be listed in isolation. Compare how commit 7cfadb6b split SPICE_CONNECTED and SPICE_DISCONNECTED into separate qmp events. * docs/qmp/qmp-events.txt (SPICE_CONNECTED, SPICE_DISCONNECTED): Split. Signed-off-by: Eric Blake --- docs/q

[Qemu-devel] [PATCH v2 for-2.1 1/5] docs: grammar fixes to qmp-events

2014-07-23 Thread Eric Blake
When converting to qmp events, commits 7cfadb6b and a6330785 fixed some grammar as part of moving text between files. But since dfab4892 later restored this file to the state prior to qmp events, we have to do it again. * docs/qmp/qmp-events.txt (RESET, SPICE_INITIALIZED): Tweak. Signed-off-by:

[Qemu-devel] [PATCH v2 for-2.1 5/5] docs: document missing VSERPORT_CHANGE event

2014-07-23 Thread Eric Blake
The VSERPORT_CHANGE event was added in e2ae6159. The patch for this event was prepared at a time when this file was gone, even though it got applied immediately after dfab4892 restored this file. Duplicate the documentation into this file, so that anyone using this file instead of qapi will not m

[Qemu-devel] [PATCH v2 for-2.1 4/5] docs: document missing POWERDOWN event

2014-07-23 Thread Eric Blake
The POWERDOWN event was first documented in 0aab9ec3. But since dfab4892 later restored this file to the state prior to qmp events, and we never documented it in the past, anyone using this file instead of qapi will miss out on this event. Tweak the existing wording of SHUTDOWN to match 84321831,

[Qemu-devel] [PATCH v2 for-2.1 3/5] docs: document missing SPICE_MIGRATE_COMPLETED event

2014-07-23 Thread Eric Blake
The SPICE_MIGRATE_COMPLETED event was first documented in 7cfadb6b. But since dfab4892 later restored this flie to the state prior to qmp events, and we never documented it in the past, anyone using this file instead of qapi will miss out on this event. * docs/qmp/qmp-events.txt (SPICE_MIGRATE_CO

[Qemu-devel] [PATCH v2 for-2.1 0/5] docs: document remaining QMP events

2014-07-23 Thread Eric Blake
diff from v1: split into series [Markus] fix SPICE_MIGRATE_COMPLETE typo [Markus] Eric Blake (5): docs: grammar fixes to qmp-events docs: split SPICE_* event docs docs: document missing SPICE_MIGRATE_COMPLETED event docs: document missing POWERDOWN event docs: document missing VSERPORT

[Qemu-devel] [PATCH v3] docs/multiple-iothreads.txt: add documentation on IOThread programming

2014-07-23 Thread Stefan Hajnoczi
This document explains how IOThreads and the main loop are related, especially how to write code that can run in an IOThread. Currently only virtio-blk-data-plane uses these techniques. The next obvious target is virtio-scsi; there has also been work on virtio-net. Signed-off-by: Stefan Hajnoczi

Re: [Qemu-devel] [PATCH] target-i386/FPU: wrong conversion infinity from float80 to int32/int64

2014-07-23 Thread Dmitry Poletaev
14.07.2014, 18:59, "Peter Maydell" : >  Since softfloat's status flags are sticky ... What does it mean?

Re: [Qemu-devel] [PATCH for-2.1] docs: document remaining QMP events

2014-07-23 Thread Eric Blake
On 07/23/2014 01:25 AM, Markus Armbruster wrote: > Eric Blake writes: > >> Commit dfab4892 restored this file, but did not address any of the >> grammar problems that had been fixed in passing when moving events >> out of this file. There are also a couple events that were >> undocumented since

Re: [Qemu-devel] [RFC v4 04/13] hw/vfio/pci: introduce VFIODevice

2014-07-23 Thread Eric Auger
On 07/23/2014 12:24 PM, Peter Maydell wrote: > On 23 July 2014 11:02, Eric Auger wrote: >> On 07/09/2014 12:41 AM, Alex Williamson wrote: >>> On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: +vdev->vbasedev.ops = &vfio_pci_ops; + +vdev->vbasedev.type = VFIO_DEVICE_TYPE_P

[Qemu-devel] QEMU and other libusb application cause segfaults in libusb

2014-07-23 Thread Erik Rull
Hi all, I post this to both QEMU and libusb because I'm not sure where the error could be located. I have an application using libusb which is running for months without any issues on the host system. When I start QEMU - which uses libusb, too - the errors begin. I route some USB ports to my QEM

[Qemu-devel] Fix a bug in debug printing of memory translation tables

2014-07-23 Thread Mikhail Ilin
Hi, I've enabled DEBUG_MMAP in linux-user/mmap.c and got debug info of memory layout. This is the debug output of guest memory layout from qemu (including the last mmap call marked with *). mmap: start=0x0804a000 len=0x00021000 prot=rw- flags=MAP_ANON MAP_PRIVATE fd=0 offset= ret=0x08

Re: [Qemu-devel] [PATCH v2 2/3] tap-bsd: implement a FreeBSD only version of tap_open

2014-07-23 Thread Stefan Hajnoczi
On Tue, Jul 22, 2014 at 01:26:00PM +0100, Stefano Stabellini wrote: > On Tue, 22 Jul 2014, Roger Pau Monné wrote: > > On 27/05/14 15:29, Stefan Hajnoczi wrote: > > > On Fri, May 23, 2014 at 05:57:48PM +0200, Roger Pau Monne wrote: > > >> The current behaviour of tap_open for BSD systems differ grea

Re: [Qemu-devel] [RFC v4 04/13] hw/vfio/pci: introduce VFIODevice

2014-07-23 Thread Peter Maydell
On 23 July 2014 11:02, Eric Auger wrote: > On 07/09/2014 12:41 AM, Alex Williamson wrote: >> On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: >>> +vdev->vbasedev.ops = &vfio_pci_ops; >>> + >>> +vdev->vbasedev.type = VFIO_DEVICE_TYPE_PCI; >>> +vdev->vbasedev.name = g_malloc0(PATH_MA

Re: [Qemu-devel] [RFC v4 04/13] hw/vfio/pci: introduce VFIODevice

2014-07-23 Thread Eric Auger
On 07/09/2014 12:41 AM, Alex Williamson wrote: > On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: >> Introduce the VFIODevice struct that is going to be shared by >> VFIOPCIDevice and VFIOPlatformDevice. >> >> Additional fields will be added there later on for review >> convenience. >> >> the g

Re: [Qemu-devel] [RFC v4 03/13] hw/vfio/pci: Remove unneeded include files

2014-07-23 Thread Eric Auger
On 07/08/2014 08:55 PM, Alex Williamson wrote: > On Mon, 2014-07-07 at 13:27 +0100, Eric Auger wrote: >> Signed-off-by: Eric Auger >> --- >> hw/vfio/pci.c | 12 >> 1 file changed, 12 deletions(-) >> >> diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c >> index 5c7bfd5..a7df3de 100644 >> ---

[Qemu-devel] [PATCH v2] icount: Fix virtual clock start value on ARM

2014-07-23 Thread Sebastian Tanase
When using the icount option on ARM, the virtual clock starts counting at realtime clock but it should start at 0. The reason why the virtual clock starts at realtime clock is because the first time we call qemu_clock_warp (which calls icount_warp_rt) in tcg_exec_all, qemu_icount_bias (which is pa

Re: [Qemu-devel] [PATCH] icount: Fix virtual clock start value on ARM

2014-07-23 Thread Paolo Bonzini
Il 23/07/2014 11:41, Peter Maydell ha scritto: > On 23 July 2014 10:11, Sebastian Tanase wrote: >> When using the icount option on ARM, the virtual >> clock starts counting at realtime clock but it >> should start at 0. >> This small fix addresses this issue. >> >> Signed-off-by: Sebastian Tanase

  1   2   >