[Qemu-devel] [PULL 1/1] usb: mtp: tag root property as experimental

2014-07-23 Thread Gerd Hoffmann
Reason: we don't want commit to that interface yet. Possibly the implementation will be switched over to use fsdev. Suggested-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Gerd Hoffmann kra...@redhat.com --- hw/usb/dev-mtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

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

2014-07-23 Thread Markus Armbruster
Eric Blake ebl...@redhat.com 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 introduction, and one that had been added

Re: [Qemu-devel] [PATCH] pci: Don't deliver MSI/MSI-X messages if bus master support is off

2014-07-23 Thread Jan Kiszka
On 2014-07-22 21:06, Michael S. Tsirkin wrote: On Mon, Jul 21, 2014 at 12:04:22AM +0200, Jan Kiszka wrote: On 2014-07-20 23:03, Michael S. Tsirkin wrote: On Sun, Jul 20, 2014 at 11:45:10PM +0200, Jan Kiszka wrote: On 2014-07-20 21:48, Michael S. Tsirkin wrote: On Sat, Jul 19, 2014 at

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

2014-07-23 Thread 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; All these casts are not endian-safe. Please use ldl_le_p, ldq_le_p,

Re: [Qemu-devel] [PATCH 1/2] qemu-img: Allow source cache mode specification

2014-07-23 Thread Kevin Wolf
Am 22.07.2014 um 22:06 hat Max Reitz geschrieben: On 21.07.2014 17:52, Eric Blake wrote: On 07/19/2014 02:35 PM, Max Reitz wrote: Many qemu-img subcommands only read the source file(s) once. For these use cases, a full write-back cache is unnecessary and mainly clutters host cache memory.

[Qemu-devel] [PATCH] 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. This small fix addresses this issue. Signed-off-by: Sebastian Tanase sebastian.tan...@openwide.fr --- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2014-07-23 Thread Paolo Bonzini
Il 23/07/2014 11:11, Sebastian Tanase ha scritto: 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 sebastian.tan...@openwide.fr Thanks, this is ok for 2.2.

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

2014-07-23 Thread Andreas Färber
Am 23.07.2014 11:16, schrieb Paolo Bonzini: Il 23/07/2014 11:11, Sebastian Tanase ha scritto: 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

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

2014-07-23 Thread Peter Maydell
On 23 July 2014 10:11, Sebastian Tanase sebastian.tan...@openwide.fr 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 sebastian.tan...@openwide.fr

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 sebastian.tan...@openwide.fr 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:

[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

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 eric.au...@linaro.org --- 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

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 eric.au...@linaro.org 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 =

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 greatly from

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

[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

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 eric.au...@linaro.org 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 =

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 ebl...@redhat.com 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

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 peter.mayd...@linaro.org:  Since softfloat's status flags are sticky ... What does it mean?

[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

[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

[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

[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

[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

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

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 been

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 poletaev-q...@yandex.ru wrote: 14.07.2014, 18:59, Peter Maydell peter.mayd...@linaro.org: 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

[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

[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

[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 lcapitul...@redhat.com --- monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor.c b/monitor.c index 5bc70a6..33abe6c

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 ebl...@redhat.com 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

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

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 for BSD systems

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

2014-07-23 Thread Chrysostomos Nanakos
qemu-img archipelago:volumename[/mport=mapperd_port[:vport=vlmcd_port] [:segment=segment_name]] [size] Signed-off-by: Chrysostomos Nanakos cnana...@grnet.gr --- block/archipelago.c | 146 +++ 1 file changed, 146 insertions(+) diff --git

[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

[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

[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=volumename[,file.mport=mapperd_port[, file.vport=vlmcd_port][,file.segment=segment_name]] 'archipelago' is the protocol. 'mport' is the port number on which mapperd is listening. This is optional and if

[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:volumename[/mport=mapperd_port[:vport=vlmcd_port][: segment=segment_name]] Examples: file=archipelago:my_vm_volume file=archipelago:my_vm_volume/mport=123 file=archipelago:my_vm_volume/mport=123:vport=1234

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

2014-07-23 Thread Chrysostomos Nanakos
Signed-off-by: Chrysostomos Nanakos cnana...@grnet.gr --- 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

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 existing

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 wenchaoq...@gmail.com

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

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

[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 yan...@cn.fujitsu.com --- Makefile.objs | 1 + include/migration/migration-colo.h | 3 ++ migration-colo-comm.c | 68 ++

[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

[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

[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 yan...@cn.fujitsu.com --- include/qapi/qmp/qerror.h | 3 +++ migration.c | 6 ++ qapi-schema.json | 5

[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 yan...@cn.fujitsu.com ---

[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 yan...@cn.fujitsu.com

[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 @ SuspendSave state SEND@

[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 yan...@cn.fujitsu.com --- 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

[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 yan...@cn.fujitsu.com --- arch_init.c| 20 +++- include/migration/migration-colo.h | 2 ++ migration-colo.c | 6 ++

[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

[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 yan...@cn.fujitsu.com --- migration-colo.c |

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 yan...@cn.fujitsu.com --- include/qapi/qmp/qerror.h | 3 +++ migration.c

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

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/msg00012.html

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 poletaev-q...@yandex.ru Signed-off-by: Dmitry Poletaev poletaev-q...@yandex.ru --- target-i386/fpu_helper.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/target-i386/fpu_helper.c

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

[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

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

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 reg property. --- Actually I did not succeed in doing it another way with Calxeda xgmac. If someone knows how to do without, please

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 in

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,

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 yan...@cn.fujitsu.com --- qapi-schema.json | 4 +++- vl.c | 8 2 files changed, 11

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, not

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

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 called

[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

[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

[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

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 poletaev-q...@yandex.ru 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) { +

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 ebl...@redhat.com 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

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

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 colo

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

[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

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

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 registers

[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 mre...@redhat.com Signed-off-by: Jeff Cody jc...@redhat.com --- block.c | 3 +++ 1

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

[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 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 mre...@redhat.com Signed-off-by: Jeff Cody jc...@redhat.com --- tests/qemu-iotests/084 | 16 ++-- tests/qemu-iotests/084.out | 14

[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 mre...@redhat.com Signed-off-by: Jeff Cody jc...@redhat.com --- block/vdi.c | 36

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.

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

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 pbonz...@redhat.com: 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]) =

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 s...@weilnetz.de: 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

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 m...@tls.msk.ru 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

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

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

2014-07-23 Thread Zhu Guihua
From: Hu Tao hu...@cn.fujitsu.com 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

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 primary

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 collect

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