Re: [Qemu-devel] [PULL 14/15] qemu-char: add logfile facility to all chardev backends

2016-02-15 Thread Markus Armbruster
"Daniel P. Berrange" writes: > On Fri, Feb 12, 2016 at 06:04:59PM +, Daniel P. Berrange wrote: >> On Fri, Feb 12, 2016 at 06:12:46PM +0100, Markus Armbruster wrote: [...] >> > >> For the record, it also breaks ivshmem-test when the slow tests are >> > >> included. I'd be willing to test your

Re: [Qemu-devel] [PATCH 3/3] replay: introduce block devices record/replay

2016-02-15 Thread Pavel Dovgalyuk
> From: Kevin Wolf [mailto:kw...@redhat.com] > > > > > > int blkreplay_co_readv() > > > { > > > BlockReplayState *s = bs->opaque; > > > int reqid = s->reqid++; > > > > > > bdrv_co_readv(bs->file, ...); > > > > > > if (mode == record) { > > > log(reqid, time); > > > } els

Re: [Qemu-devel] [PATCH v2 04/11] acpi: add aml_concatenate()

2016-02-15 Thread Igor Mammedov
On Sun, 14 Feb 2016 13:55:24 +0800 Xiao Guangrong wrote: > On 02/14/2016 01:52 PM, Xiao Guangrong wrote: > > > > > > On 02/08/2016 06:51 PM, Igor Mammedov wrote: > >> On Wed, 13 Jan 2016 02:50:03 +0800 > >> Xiao Guangrong wrote: > >> > >>> It will be used by nvdimm acpi > >>> > >>> Signed-of

Re: [Qemu-devel] RFC: configuring QEMU virtfs for Xen PV(H) guests

2016-02-15 Thread Paul Durrant
> -Original Message- > From: qemu-devel-bounces+paul.durrant=citrix@nongnu.org > [mailto:qemu-devel-bounces+paul.durrant=citrix@nongnu.org] On > Behalf Of Wei Liu > Sent: 12 February 2016 19:11 > To: qemu-devel@nongnu.org; Xen-devel > Cc: Anthony Perard; gk...@linux.vnet.ibm.com; We

Re: [Qemu-devel] [PATCH 3/3] replay: introduce block devices record/replay

2016-02-15 Thread Kevin Wolf
Am 15.02.2016 um 09:38 hat Pavel Dovgalyuk geschrieben: > > From: Kevin Wolf [mailto:kw...@redhat.com] > > > > > > > > int blkreplay_co_readv() > > > > { > > > > BlockReplayState *s = bs->opaque; > > > > int reqid = s->reqid++; > > > > > > > > bdrv_co_readv(bs->file, ...); > > > > > > >

Re: [Qemu-devel] [PATCH v2 06/11] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-15 Thread Igor Mammedov
On Sun, 14 Feb 2016 13:57:27 +0800 Xiao Guangrong wrote: > On 02/08/2016 07:03 PM, Igor Mammedov wrote: > > On Wed, 13 Jan 2016 02:50:05 +0800 > > Xiao Guangrong wrote: > > > >> 32 bits IO port starting from 0x0a18 in guest is reserved for NVDIMM > >> ACPI emulation. The table, NVDIMM_DSM_MEM_

Re: [Qemu-devel] [Qemu-block] crash with -incoming and -snapshot

2016-02-15 Thread Kevin Wolf
Am 14.02.2016 um 17:12 hat Paolo Bonzini geschrieben: > On 14/02/2016 16:52, Paolo Bonzini wrote: > > Reproducer: > > > > x86_64-softmmu/qemu-system-x86_64 \ > >-incoming tcp:localhost:12345 -snapshot \ > >/vm/virt_test/images/jeos-21-64-base.qcow2 > > > > > > Weird as it may seem, this

Re: [Qemu-devel] [PATCH 3/3] replay: introduce block devices record/replay

2016-02-15 Thread Pavel Dovgalyuk
> From: Pavel Dovgalyuk [mailto:dovga...@ispras.ru] > > From: Kevin Wolf [mailto:kw...@redhat.com] > > > > > > > > int blkreplay_co_readv() > > > > { > > > > BlockReplayState *s = bs->opaque; > > > > int reqid = s->reqid++; > > > > > > > > bdrv_co_readv(bs->file, ...); > > > > > > > >

Re: [Qemu-devel] [PATCH v2 06/11] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-15 Thread Michael S. Tsirkin
On Mon, Feb 15, 2016 at 10:11:05AM +0100, Igor Mammedov wrote: > On Sun, 14 Feb 2016 13:57:27 +0800 > Xiao Guangrong wrote: > > > On 02/08/2016 07:03 PM, Igor Mammedov wrote: > > > On Wed, 13 Jan 2016 02:50:05 +0800 > > > Xiao Guangrong wrote: > > > > > >> 32 bits IO port starting from 0x0a18

Re: [Qemu-devel] [PATCH] add CephFS support in VirtFS

2016-02-15 Thread Daniel P. Berrange
On Sun, Feb 14, 2016 at 01:06:40PM +0800, Jevon Qiao wrote: > diff --git a/configure b/configure > index 83b40fc..cecece7 100755 > --- a/configure > +++ b/configure > @@ -1372,6 +1377,7 @@ disabled with --disable-FEATURE, default is enabled if > available: >vhost-net vhost-net acceleratio

Re: [Qemu-devel] [PATCH v3 2/8] acpi: add aml_concatenate()

2016-02-15 Thread Igor Mammedov
On Sun, 14 Feb 2016 16:50:59 +0800 Xiao Guangrong wrote: > It will be used by nvdimm acpi > > Signed-off-by: Xiao Guangrong > --- > hw/acpi/aml-build.c | 8 > include/hw/acpi/aml-build.h | 1 + > 2 files changed, 9 insertions(+) > > diff --git a/hw/acpi/aml-build.c b/hw/acpi/

Re: [Qemu-devel] crash with -incoming and -snapshot

2016-02-15 Thread Paolo Bonzini
On 15/02/2016 10:12, Kevin Wolf wrote: > Am 14.02.2016 um 17:12 hat Paolo Bonzini geschrieben: >> On 14/02/2016 16:52, Paolo Bonzini wrote: >>> Reproducer: >>> >>> x86_64-softmmu/qemu-system-x86_64 \ >>>-incoming tcp:localhost:12345 -snapshot \ >>>/vm/virt_test/images/jeos-21-64-base.qcow

Re: [Qemu-devel] [PATCH] migration: allow configuration section to be optional

2016-02-15 Thread Greg Kurz
On Mon, 15 Feb 2016 13:09:51 +1100 David Gibson wrote: > On Fri, Feb 12, 2016 at 03:44:18PM +0100, Greg Kurz wrote: > > Since QEMU 2.4, the migration stream begins with a configuration section. > > It is known to break migration of pseries machine from older QEMU. It is > > possible to fix this i

Re: [Qemu-devel] [libvirt] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-15 Thread Martin Kletzander
On Sun, Feb 14, 2016 at 01:41:41PM +0800, Peter Xu wrote: For ARM platform, we still do not have any interface to query whether current QEMU/host support specific GIC version. This patchset is trying to add one QMP interface for that. By querying the GIC capability using the new interface, one sh

Re: [Qemu-devel] [PATCH 3/3] replay: introduce block devices record/replay

2016-02-15 Thread Kevin Wolf
Am 15.02.2016 um 10:14 hat Pavel Dovgalyuk geschrieben: > > From: Pavel Dovgalyuk [mailto:dovga...@ispras.ru] > > > From: Kevin Wolf [mailto:kw...@redhat.com] > > > > > > > > > > int blkreplay_co_readv() > > > > > { > > > > > BlockReplayState *s = bs->opaque; > > > > > int reqid = s->reqid+

Re: [Qemu-devel] [PATCH] usb: check RNDIS buffer offsets & length

2016-02-15 Thread Gerd Hoffmann
On Mo, 2016-02-15 at 09:56 +0530, P J P wrote: > +-- On Tue, 9 Feb 2016, P J P wrote --+ > | +-- On Fri, 5 Feb 2016, P J P wrote --+ > | | From: Prasad J Pandit > | | > | | When processing remote NDIS control message packets, the USB Net > | | device emulator uses a fixed length(4096) data buffer

Re: [Qemu-devel] IVSHMEM support on qemu-system-arm

2016-02-15 Thread Markus Armbruster
sridhar kulkarni writes: > We have two applications running on real custom board with custom asic > and has two arm cores. Each application runs on different core, and > uses shared memory for inter application high bandwidth > transferss. The trigger for this RPC mailbox communication where each

Re: [Qemu-devel] [libvirt] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-15 Thread Peter Maydell
On 15 February 2016 at 09:35, Martin Kletzander wrote: > So hardware itself supports some GIC version, let's say 3 for our case. > Does that mean it can be triggered to do v2 as well? I mean is it > possible that HW supports multiple versions? If yes, then I suspect > there is (will be) HW that

[Qemu-devel] [PATCH 1/1] quorum: change vote rules for 64 bits hash

2016-02-15 Thread Changlong Xie
Before: 1) vote_count > max: winner = candidate, update max 2) vote_count <= max: do nothing Current: 1) vote_count > max: winner = candidate, update max 2) vote_count = max: compare the value of winner with candidate, if candidate->value.l == 0, winner = candidate, else do nothing 3) vote_count <

[Qemu-devel] [PATCH 0/1] change quorum vote rules for 64-bits hash

2016-02-15 Thread Changlong Xie
If quorum has two children(A, B). A do flush sucessfully, but B flush failed. We MUST choice A as winner, otherwise we will get following errors: {"timestamp": {"seconds": 1455641588, "microseconds": 415937}, "event": "BLOCK_IO_ERROR", "data": {"device": "colo-disk", "nospace": false, "reason"

Re: [Qemu-devel] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-15 Thread Markus Armbruster
Peter Xu writes: > For ARM platform, we still do not have any interface to query > whether current QEMU/host support specific GIC version. This > patchset is trying to add one QMP interface for that. By querying > the GIC capability using the new interface, one should know exactly > what GIC vers

Re: [Qemu-devel] [RFC PATCH v3 3/3] fw/pci: Allocate IGD stolen memory

2016-02-15 Thread Igor Mammedov
On Sat, 13 Feb 2016 18:03:31 -0700 Alex Williamson wrote: > On Sat, 13 Feb 2016 19:20:32 -0500 > "Kevin O'Connor" wrote: > > > On Sat, Feb 13, 2016 at 01:57:09PM -0700, Alex Williamson wrote: > > > On Sat, 13 Feb 2016 15:05:09 -0500 > > > "Kevin O'Connor" wrote: > > > > On Sat, Feb 13, 2

Re: [Qemu-devel] [PATCH 02/12] Makefile: Rules for docker testing

2016-02-15 Thread Alex Bennée
Fam Zheng writes: > This adds a group of make targets to run docker tests, all are available > in source tree without running ./configure. > > The usage is shown by "make docker". > > Besides the fixed ones, dynamic targets for building each image and > running each test in each image are genera

Re: [Qemu-devel] [libvirt] ARM KVM GICv3 Support

2016-02-15 Thread Andrea Bolognani
On Tue, 2016-02-02 at 16:58 +0100, Christoffer Dall wrote: > ok, so that would mean we need to implement a QMP command to tell us > which gic versions are supported for a given machine.  Current > possible responses are "2", "3" and "2,3" >  > and we also need to add code to libvirt to try that QMP

Re: [Qemu-devel] [libvirt] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-15 Thread Peter Xu
On Mon, Feb 15, 2016 at 10:35:39AM +0100, Martin Kletzander wrote: > On Sun, Feb 14, 2016 at 01:41:41PM +0800, Peter Xu wrote: > > > >["gicv2", "gicv2-kvm", "gicv3-kvm"] > > > >Please help review whether the interface suits our need, also please > >point out any error I have made. > > > > This loo

[Qemu-devel] [PATCH 1/2] migration: allow configuration section to be optional

2016-02-15 Thread Greg Kurz
Since QEMU 2.4, the migration stream begins with a configuration section. It is known to break migration of pseries machine from older QEMU. It is possible to fix this in the pseries compat code but it will then break migration of old pseries from latest QEMU. As an alternative, this patch introdu

[Qemu-devel] [PATCH 0/2] Fix migration of old pseries

2016-02-15 Thread Greg Kurz
QEMU 2.4 broke the migration of old pseries machine with the addition of configuration sections, which are sent unconditionally. This series fixes the issue by allowing the configuration sections to be made optional with a machine property. This approach is an alternative to simply skipping conf

[Qemu-devel] [PATCH 2/2] spapr: fix migration of older pseries

2016-02-15 Thread Greg Kurz
Use the config_section machine property to fix migration of older pseries started with an older QEMU (version < 2.4 for both). Older machines started with QEMU 2.4 are not affected by this change since they send the configuration section unconditionally. Signed-off-by: Greg Kurz --- hw/ppc/spap

Re: [Qemu-devel] [PATCH] msix: fix msix_vector_masked

2016-02-15 Thread Stefano Stabellini
On Sat, 13 Feb 2016, Michael S. Tsirkin wrote: > commit 428c3ece97179557f2753071fb0ca97a03437267 ("fix MSI injection on Xen") > inadvertently enabled the xen-specific logic unconditionally. > Limit it to only when xen is enabled. > Additionally, msix data should be read with pci_get_log > since the

Re: [Qemu-devel] [PATCH 03/12] docker: Add images

2016-02-15 Thread Alex Bennée
Fam Zheng writes: > Signed-off-by: Fam Zheng > --- > tests/docker/centos6.docker | 5 + > tests/docker/fedora.docker | 7 +++ > tests/docker/ubuntu.docker | 9 + > 3 files changed, 21 insertions(+) > create mode 100644 tests/docker/centos6.docker > create mode 100644 tests/

Re: [Qemu-devel] [PATCH 2/3] i.MX: Add the Freescale SPI Controller

2016-02-15 Thread Jean-Christophe DUBOIS
Le 14/02/2016 20:17, mar.krzeminski a écrit : W dniu 14.02.2016 o 17:56, Jean-Christophe DUBOIS pisze: Le 14/02/2016 12:52, mar.krzeminski a écrit : Hello, W dniu 13.02.2016 o 17:06, Jean-Christophe Dubois pisze: Signed-off-by: Jean-Christophe Dubois --- hw/ssi/Makefile.objs | 1 +

Re: [Qemu-devel] [PATCH v2 1/4] vl.c: Fix regression in machine error message

2016-02-15 Thread Markus Armbruster
Eduardo Habkost writes: > From: Marcel Apfelbaum > > Commit e1ce0c3cb (vl.c: fix regression when reading machine type > from config file) fixed the error message when the machine type > was supplied inside the config file. However now the option name > is not displayed correctly if the error hap

Re: [Qemu-devel] [PATCH v2 06/11] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-15 Thread Xiao Guangrong
On 02/15/2016 05:18 PM, Michael S. Tsirkin wrote: On Mon, Feb 15, 2016 at 10:11:05AM +0100, Igor Mammedov wrote: On Sun, 14 Feb 2016 13:57:27 +0800 Xiao Guangrong wrote: On 02/08/2016 07:03 PM, Igor Mammedov wrote: On Wed, 13 Jan 2016 02:50:05 +0800 Xiao Guangrong wrote: 32 bits IO port

Re: [Qemu-devel] VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs

2016-02-15 Thread David Airlie
- Original Message - > From: "Saket Sinha" > To: dri-de...@lists.freedesktop.org, k...@vger.kernel.org, > qemu-devel@nongnu.org > Cc: "Dave Airlie" > Sent: Monday, 15 February, 2016 12:34:18 PM > Subject: VirtIO-GPU 3D OpenGL Hardware Acceleration for VMs > > Hi, > > It seems upstrea

Re: [Qemu-devel] [PATCH v2 2/4] vl: Reset location after handling command-line arguments

2016-02-15 Thread Markus Armbruster
Eduardo Habkost writes: > After looping through all command-line arguments, error location > info becomes obsolete, and any function calling error_report() > will print misleading information. This breaks error reporting > for some option handling, like: > > $ qemu-system-x86_64 -icount rr=x -v

Re: [Qemu-devel] [PATCH v19 3/9] pc: add a Virtual Machine Generation ID device

2016-02-15 Thread Igor Mammedov
On Thu, 11 Feb 2016 18:30:19 +0200 "Michael S. Tsirkin" wrote: > On Thu, Feb 11, 2016 at 04:16:05PM +0100, Igor Mammedov wrote: > > On Tue, 9 Feb 2016 14:17:44 +0200 > > "Michael S. Tsirkin" wrote: > > > > > On Tue, Feb 09, 2016 at 11:46:08AM +0100, Igor Mammedov wrote: > > > > > So the lin

Re: [Qemu-devel] [PATCH v2 06/11] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-15 Thread Michael S. Tsirkin
On Mon, Feb 15, 2016 at 06:13:38PM +0800, Xiao Guangrong wrote: > > > On 02/15/2016 05:18 PM, Michael S. Tsirkin wrote: > >On Mon, Feb 15, 2016 at 10:11:05AM +0100, Igor Mammedov wrote: > >>On Sun, 14 Feb 2016 13:57:27 +0800 > >>Xiao Guangrong wrote: > >> > >>>On 02/08/2016 07:03 PM, Igor Mammed

Re: [Qemu-devel] [RFC PATCH v3 3/3] fw/pci: Allocate IGD stolen memory

2016-02-15 Thread Gerd Hoffmann
Hi, > The issue is in the VM and it occurs every time the option ROM is > executed. Standard VGA text mode displays fine (ex. SeaBIOS version > string and boot menu), but any sort of extended graphics mode (ex. live > CD boot menu) tries to make use of the host memory area which > corresponds t

Re: [Qemu-devel] [PATCH v2 0/4] Error location reporting fixes

2016-02-15 Thread Markus Armbruster
Eduardo Habkost writes: > This fixes the following bugs in error reporting: > > $ qemu-system-x86_64 -icount rr=x -vnc :0 > qemu-system-x86_64: -vnc :0: Invalid icount rr option: x > > $ qemu-system-x86_64 -m size= -vnc :0 > qemu-system-x86_64: -vnc :0: missing 'size' option value > > The

Re: [Qemu-devel] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-15 Thread Peter Xu
On Mon, Feb 15, 2016 at 10:52:01AM +0100, Markus Armbruster wrote: > Peter Xu writes: > > > For ARM platform, we still do not have any interface to query > > whether current QEMU/host support specific GIC version. This > > patchset is trying to add one QMP interface for that. By querying > > the

Re: [Qemu-devel] [PATCH v2 0/4] hw/ppc/spapr: Add "Processor Register Hypervisor Resource Access" H-calls

2016-02-15 Thread Thomas Huth
On 12.02.2016 01:31, David Gibson wrote: > On Thu, Feb 11, 2016 at 01:47:17PM +0100, Thomas Huth wrote: >> While we were recently debugging a problem with the H_SET_DABR >> call [1], I noticed that some hypercalls from the chapter 14.5.4.3 >> ("Processor Register Hypervisor Resource Access") from t

Re: [Qemu-devel] [PATCH v2 04/11] acpi: add aml_concatenate()

2016-02-15 Thread Xiao Guangrong
On 02/15/2016 05:02 PM, Igor Mammedov wrote: On Sun, 14 Feb 2016 13:55:24 +0800 Xiao Guangrong wrote: On 02/14/2016 01:52 PM, Xiao Guangrong wrote: On 02/08/2016 06:51 PM, Igor Mammedov wrote: On Wed, 13 Jan 2016 02:50:03 +0800 Xiao Guangrong wrote: It will be used by nvdimm acpi Sig

Re: [Qemu-devel] [PATCH v2 06/11] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-15 Thread Igor Mammedov
On Mon, 15 Feb 2016 18:13:38 +0800 Xiao Guangrong wrote: > On 02/15/2016 05:18 PM, Michael S. Tsirkin wrote: > > On Mon, Feb 15, 2016 at 10:11:05AM +0100, Igor Mammedov wrote: > >> On Sun, 14 Feb 2016 13:57:27 +0800 > >> Xiao Guangrong wrote: > >> > >>> On 02/08/2016 07:03 PM, Igor Mammedov

Re: [Qemu-devel] [PATCH v2 1/4] vl.c: Fix regression in machine error message

2016-02-15 Thread Marcel Apfelbaum
On 02/15/2016 12:20 PM, Markus Armbruster wrote: Eduardo Habkost writes: From: Marcel Apfelbaum Commit e1ce0c3cb (vl.c: fix regression when reading machine type from config file) fixed the error message when the machine type was supplied inside the config file. However now the option name is

Re: [Qemu-devel] [PATCH 04/12] docker: Add test runner

2016-02-15 Thread Alex Bennée
Fam Zheng writes: > It's better to have a launcher for all tests, to make it easier to > initialize and manage the environment. > > Signed-off-by: Fam Zheng > --- > tests/docker/run | 23 +++ > 1 file changed, 23 insertions(+) > create mode 100755 tests/docker/run > > diff

Re: [Qemu-devel] [PATCH 2/4] pc/q35: drop compatiility with old bios types

2016-02-15 Thread Gerd Hoffmann
On So, 2016-02-07 at 12:29 +0200, Michael S. Tsirkin wrote: > We don't ship bios without support for loading ACPI anymore, and old q35 > machine types don't allow migrating such bios. Drop it, as well as > has_*mr flags that are there for migration compatibility. Wouldn't that break migration bet

Re: [Qemu-devel] [PATCH v1 20/22] migration: support TLS encryption with TCP migration backend

2016-02-15 Thread Daniel P. Berrange
On Fri, Feb 12, 2016 at 05:25:31PM +, Daniel P. Berrange wrote: > On Fri, Feb 12, 2016 at 05:09:52PM +, Dr. David Alan Gilbert wrote: > > * Daniel P. Berrange (berra...@redhat.com) wrote: > > > This extends the TCP migration backend so that it can make use > > > of QIOChannelTLS to provide

Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr: skip configuration section during migration of older machines

2016-02-15 Thread Greg Kurz
On Mon, 15 Feb 2016 13:12:34 +1100 David Gibson wrote: > On Fri, Feb 12, 2016 at 12:14:59PM +0100, Greg Kurz wrote: > > On Fri, 12 Feb 2016 16:24:26 +1100 > > David Gibson wrote: > > > > > On Thu, Feb 11, 2016 at 04:53:40PM +, Dr. David Alan Gilbert wrote: > > > > * Greg Kurz (gk...@lin

[Qemu-devel] [PATCH v2 0/4] Add support for i.MX SPI Controller

2016-02-15 Thread Jean-Christophe Dubois
This patch serie adds support for the i.MX SPI controller. The controller is then added to the i.MX6 SOC implementation to avoid Linux hang during boot because there is no support for the SPI controller and it is waiting for some SPI device response. We also add a NOR FLASH SPI memory to the sabr

[Qemu-devel] [PATCH v2 1/4] FIFO: Add a FIFO32 implementation

2016-02-15 Thread Jean-Christophe Dubois
This one is build on top of the existing FIFO8 Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * None include/qemu/fifo32.h | 206 ++ 1 file changed, 206 insertions(+) create mode 100644 include/qemu/fifo32.h diff --git a/include/q

[Qemu-devel] [PATCH v2 3/4] i.MX: Add SPI controllers to i.MX6 SOC

2016-02-15 Thread Jean-Christophe Dubois
This allows Linux to boot without hanging on SPI access. Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * None hw/arm/fsl-imx6.c | 32 include/hw/arm/fsl-imx6.h | 3 +++ 2 files changed, 35 insertions(+) diff --git a/hw/arm/fsl-imx6.c b/

Re: [Qemu-devel] [PATCH 3/3] replay: introduce block devices record/replay

2016-02-15 Thread Pavel Dovgalyuk
> From: Kevin Wolf [mailto:kw...@redhat.com] > Am 15.02.2016 um 10:14 hat Pavel Dovgalyuk geschrieben: > > > From: Pavel Dovgalyuk [mailto:dovga...@ispras.ru] > > > > From: Kevin Wolf [mailto:kw...@redhat.com] > > > > > > > > > > > > int blkreplay_co_readv() > > > > > > { > > > > > > BlockRe

Re: [Qemu-devel] crash with -incoming and -snapshot

2016-02-15 Thread Kashyap Chamarthy
On Mon, Feb 15, 2016 at 10:26:17AM +0100, Paolo Bonzini wrote: > > > On 15/02/2016 10:12, Kevin Wolf wrote: > > Am 14.02.2016 um 17:12 hat Paolo Bonzini geschrieben: > >> On 14/02/2016 16:52, Paolo Bonzini wrote: > >>> Reproducer: > >>> > >>> x86_64-softmmu/qemu-system-x86_64 \ > >>>-incoming

[Qemu-devel] [PATCH v2 4/4] i.MX: Add SPI NOR FLASH memory to sabrelite board.

2016-02-15 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * Not present on v1. hw/arm/sabrelite.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/arm/sabrelite.c b/hw/arm/sabrelite.c index 8db9bbc..237dfa1 100644 --- a/hw/arm/sabrelite.c +++ b/hw/arm/sabrelite.c @@ -70,6 +70,

[Qemu-devel] [PATCH v2 2/4] i.MX: Add the Freescale SPI Controller

2016-02-15 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * Access SPI slave only at a byte level. * rework the CS activation to avoid to reset access to SPI slaves. hw/ssi/Makefile.objs | 1 + hw/ssi/imx_spi.c | 459 +++ include/hw/

Re: [Qemu-devel] [PATCH 1/2] migration: allow configuration section to be optional

2016-02-15 Thread Laurent Vivier
On 15/02/2016 11:15, Greg Kurz wrote: > Since QEMU 2.4, the migration stream begins with a configuration section. > It is known to break migration of pseries machine from older QEMU. It is > possible to fix this in the pseries compat code but it will then break > migration of old pseries from lat

[Qemu-devel] [PULL 02/16] target-i386: Rearrange processing of 0F 01

2016-02-15 Thread Richard Henderson
Rather than nesting tests of OP, MOD, and RM, decode them all at once with a switch. Fixes incorrect decoding of AMD Pacifica extensions (aka vmrun et al) via op==2 path. Signed-off-by: Richard Henderson --- target-i386/translate.c | 470 +--- 1 file

[Qemu-devel] [PULL 00/16] target-i386: xsave, mpx, fsgsbase extensions

2016-02-15 Thread Richard Henderson
re available in the git repository at: git://github.com/rth7680/qemu.git tags/pull-i386-20160215 for you to fetch changes up to 07929f2ab2ab9c9e01d4ae79f48f2b2476b715c8: target-i386: Implement FSGSBASE (2016-02-15 14:50:00 +1100) ---

[Qemu-devel] [PULL 03/16] target-i386: Rearrange processing of 0F AE

2016-02-15 Thread Richard Henderson
Rather than nesting tests of OP, MOD, and RM, decode them all at once with a switch. Also, add some missing #UD checks for e.g. incorrect LOCK prefix. Signed-off-by: Richard Henderson --- target-i386/translate.c | 124 1 file changed, 72 insertio

[Qemu-devel] [PULL 06/16] target-i386: Enable control registers for MPX

2016-02-15 Thread Richard Henderson
Enable and disable at CPL changes, MSR changes, and XRSTOR changes. Signed-off-by: Richard Henderson --- target-i386/Makefile.objs | 2 +- target-i386/cpu.c | 17 -- target-i386/cpu.h | 21 - target-i386/fpu_helper.c | 79

[Qemu-devel] [PULL 01/16] target-i386: Split fxsave/fxrstor implementation

2016-02-15 Thread Richard Henderson
We will be able to reuse these pieces for XSAVE/XRSTOR. Signed-off-by: Richard Henderson --- target-i386/fpu_helper.c | 175 ++- target-i386/helper.h | 4 +- target-i386/translate.c | 4 +- 3 files changed, 101 insertions(+), 82 deletions(-)

[Qemu-devel] [PULL 12/16] target-i386: Update BNDSTATUS for exceptions raised by BOUND

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/mem_helper.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target-i386/mem_helper.c b/target-i386/mem_helper.c index 7de7752..85e7516 100644 --- a/target-i386/mem_helper.c +++ b/target-i386/mem_helper.c @@ -112,6 +112,9 @@ void helper_b

[Qemu-devel] [PULL 05/16] target-i386: Implement XSAVEOPT

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/cpu.c| 6 -- target-i386/fpu_helper.c | 29 +++-- target-i386/helper.h | 1 + target-i386/translate.c | 18 +++--- 4 files changed, 43 insertions(+), 11 deletions(-) diff --git a/target-i386/c

[Qemu-devel] [PULL 04/16] target-i386: Add XSAVE extension

2016-02-15 Thread Richard Henderson
This includes XSAVE, XRSTOR, XGETBV, XSETBV, which are all related, as well as the associate cpuid bits. Signed-off-by: Richard Henderson --- target-i386/cpu.c| 39 +++-- target-i386/fpu_helper.c | 145 +++ target-i386/helper.c |

[Qemu-devel] [PULL 08/16] target-i386: Split up gen_lea_modrm

2016-02-15 Thread Richard Henderson
This is immediately usable by lea and multi-byte nop, and will be required to implement parts of the mpx spec. Signed-off-by: Richard Henderson --- target-i386/translate.c | 199 +--- 1 file changed, 85 insertions(+), 114 deletions(-) diff --git a/tar

[Qemu-devel] [PULL 10/16] target-i386: Implement BNDMOV

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/translate.c | 73 - 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 3967d86..1ac245b 100644 --- a/target-i386/translate.c +++ b/ta

[Qemu-devel] [PULL 1/5] tcg: Work around clang bug wrt enum ranges, part 2

2016-02-15 Thread Richard Henderson
A previous patch patch changed the type of REG from int to enum TCGReg, which provokes the following bug in clang: https://llvm.org/bugs/show_bug.cgi?id=16154 Signed-off-by: Richard Henderson --- tcg/tcg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/tcg.c b/tcg/tc

[Qemu-devel] [PULL 11/16] target-i386: Implement BNDCL, BNDCU, BNDCN

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/helper.h | 2 ++ target-i386/mpx_helper.c | 8 target-i386/translate.c | 44 +++- 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/target-i386/helper.h b/target-i386/helper.h ind

[Qemu-devel] [PULL 07/16] target-i386: Perform set/reset_inhibit_irq inline

2016-02-15 Thread Richard Henderson
With helpers that can be reused for other things. Signed-off-by: Richard Henderson --- target-i386/cc_helper.c | 10 -- target-i386/helper.h| 2 -- target-i386/translate.c | 37 - 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/ta

[Qemu-devel] [PULL 13/16] target-i386: Implement BNDLDX, BNDSTX

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/helper.h | 4 ++ target-i386/mpx_helper.c | 97 target-i386/translate.c | 57 3 files changed, 158 insertions(+) diff --git a/target-i386/helper.h b/target-i386/he

[Qemu-devel] [PULL 4/5] target-sparc: Tidy global register initialization

2016-02-15 Thread Richard Henderson
Create tables for the various global registers that need allocation. Remove one level of indirection from gregnames and fregnames. Tested-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target-sparc/translate.c | 157 +-- 1 file changed, 70

[Qemu-devel] [PULL 14/16] target-i386: Clear bndregs during legacy near jumps

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/helper.h | 1 + target-i386/mpx_helper.c | 8 target-i386/translate.c | 20 3 files changed, 29 insertions(+) diff --git a/target-i386/helper.h b/target-i386/helper.h index 709b195..60a615f 100644 --- a/target-

[Qemu-devel] [PULL 09/16] target-i386: Implement BNDMK

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/translate.c | 58 - 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/target-i386/translate.c b/target-i386/translate.c index 324b0e2..3967d86 100644 --- a/target-i386/translate.c +++ b/ta

Re: [Qemu-devel] [PATCH v19 3/9] pc: add a Virtual Machine Generation ID device

2016-02-15 Thread Michael S. Tsirkin
On Mon, Feb 15, 2016 at 11:30:24AM +0100, Igor Mammedov wrote: > On Thu, 11 Feb 2016 18:30:19 +0200 > "Michael S. Tsirkin" wrote: > > > On Thu, Feb 11, 2016 at 04:16:05PM +0100, Igor Mammedov wrote: > > > On Tue, 9 Feb 2016 14:17:44 +0200 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Tue

[Qemu-devel] [PULL 16/16] target-i386: Implement FSGSBASE

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/cpu.c| 7 +-- target-i386/helper.h | 1 + target-i386/int_helper.c | 10 ++ target-i386/translate.c | 34 ++ 4 files changed, 50 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.

[Qemu-devel] [PULL 15/16] target-i386: Enable CR4/XCR0 features for user-mode

2016-02-15 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-i386/cpu.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 4682166..063c8fb 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -2643,6 +2643,8 @@ static voi

[Qemu-devel] [PULL 5/5] target-sparc: Use global registers for the register window

2016-02-15 Thread Richard Henderson
Via indirection off cpu_regwptr. Tested-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- target-sparc/translate.c | 49 ++-- 1 file changed, 27 insertions(+), 22 deletions(-) diff --git a/target-sparc/translate.c b/target-sparc/translate.c i

Re: [Qemu-devel] [v10][PATCH 03/10] piix: create host bridge to passthrough

2016-02-15 Thread Gerd Hoffmann
Hi, > > I believe this is same as 0x50 but on old Ironlake platform. Xen started > > IGD passthrough support in Ironlake. > > Ok, unless anyone shouts really loudly and it doesn't affect anything > newer than IronLake, I'm happy to let those fall off the plate. I don't > have any older syste

[Qemu-devel] [PULL 0/5] tcg queued patches

2016-02-15 Thread Richard Henderson
in the git repository at: git://github.com/rth7680/qemu.git tags/pull-tcg-20160215 for you to fetch changes up to dcf640230d5c4779c8b31a97ab130ac183b965a0: target-sparc: Use global registers for the register window (2016-02-15 22:2

[Qemu-devel] [PULL 3/5] tcg: Allocate indirect_base temporaries in a different order

2016-02-15 Thread Richard Henderson
Since we've not got liveness analysis for indirect bases, placing them at the end of the call-saved registers makes it more likely that it'll stay live. Tested-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- tcg/tcg.c | 43 --- 1 file changed, 3

[Qemu-devel] [PULL 2/5] tcg: Implement indirect memory registers

2016-02-15 Thread Richard Henderson
That is, global_mem registers whose base is another global_mem register, rather than a fixed register. Tested-by: Mark Cave-Ayland Signed-off-by: Richard Henderson --- tcg/tcg.c | 95 --- tcg/tcg.h | 2 ++ 2 files changed, 68 insertio

Re: [Qemu-devel] [PATCH v2 06/11] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-15 Thread Xiao Guangrong
On 02/15/2016 06:47 PM, Igor Mammedov wrote: On Mon, 15 Feb 2016 18:13:38 +0800 Xiao Guangrong wrote: On 02/15/2016 05:18 PM, Michael S. Tsirkin wrote: On Mon, Feb 15, 2016 at 10:11:05AM +0100, Igor Mammedov wrote: On Sun, 14 Feb 2016 13:57:27 +0800 Xiao Guangrong wrote: On 02/08/2016 0

Re: [Qemu-devel] [PATCH v4 0/2] change type of pci_bridge_initfn()

2016-02-15 Thread Michael S. Tsirkin
On Fri, Feb 05, 2016 at 09:28:52AM +0800, Cao jin wrote: > Hi mst, > the series has got reviewed-by for a long while, could it be accepted > now? Applied now, thanks. > On 01/15/2016 10:23 AM, Cao jin wrote: > >v4 changelog: > >1. fix apb bridge build fail as Marcel find. > > > >Test: > >1. C

Re: [Qemu-devel] [PATCH 2/4] pc/q35: drop compatiility with old bios types

2016-02-15 Thread Michael S. Tsirkin
On Mon, Feb 15, 2016 at 11:58:24AM +0100, Gerd Hoffmann wrote: > On So, 2016-02-07 at 12:29 +0200, Michael S. Tsirkin wrote: > > We don't ship bios without support for loading ACPI anymore, and old q35 > > machine types don't allow migrating such bios. Drop it, as well as > > has_*mr flags that ar

Re: [Qemu-devel] [PATCH v2 06/11] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-15 Thread Michael S. Tsirkin
On Mon, Feb 15, 2016 at 06:13:38PM +0800, Xiao Guangrong wrote: > > > On 02/15/2016 05:18 PM, Michael S. Tsirkin wrote: > >On Mon, Feb 15, 2016 at 10:11:05AM +0100, Igor Mammedov wrote: > >>On Sun, 14 Feb 2016 13:57:27 +0800 > >>Xiao Guangrong wrote: > >> > >>>On 02/08/2016 07:03 PM, Igor Mammed

Re: [Qemu-devel] [PATCH] msix: fix msix_vector_masked

2016-02-15 Thread Michael S. Tsirkin
On Mon, Feb 15, 2016 at 10:15:12AM +, Stefano Stabellini wrote: > On Sat, 13 Feb 2016, Michael S. Tsirkin wrote: > > commit 428c3ece97179557f2753071fb0ca97a03437267 ("fix MSI injection on Xen") > > inadvertently enabled the xen-specific logic unconditionally. > > Limit it to only when xen is en

Re: [Qemu-devel] [PATCH v2 06/11] nvdimm acpi: initialize the resource used by NVDIMM ACPI

2016-02-15 Thread Michael S. Tsirkin
On Mon, Feb 15, 2016 at 11:47:42AM +0100, Igor Mammedov wrote: > On Mon, 15 Feb 2016 18:13:38 +0800 > Xiao Guangrong wrote: > > > On 02/15/2016 05:18 PM, Michael S. Tsirkin wrote: > > > On Mon, Feb 15, 2016 at 10:11:05AM +0100, Igor Mammedov wrote: > > >> On Sun, 14 Feb 2016 13:57:27 +0800 > >

Re: [Qemu-devel] [PATCH v2 1/4] vl.c: Fix regression in machine error message

2016-02-15 Thread Laszlo Ersek
On 02/15/16 11:54, Marcel Apfelbaum wrote: > On 02/15/2016 12:20 PM, Markus Armbruster wrote: >> Eduardo Habkost writes: >> >>> From: Marcel Apfelbaum >>> >>> Commit e1ce0c3cb (vl.c: fix regression when reading machine type >>> from config file) fixed the error message when the machine type >>> w

[Qemu-devel] [PATCH] usb: drop active assert when pid is invalid

2016-02-15 Thread Gonglei
pid can be gotten from uhci device memory in uhci_handle_td(), so the guest can trigger assert qemu if we get an invalid pid. And the uhci spec 2.1.2 tells us The Host Controller sets Host Controller Process Error bit to 1 when it detects a fatal error and indicates that the Host Controller suffere

[Qemu-devel] [PATCH] xen: xen_is_pirq_msi only when xen_enabled()

2016-02-15 Thread Stefano Stabellini
Only return true from xen_is_pirq_msi when Xen is enabled: the function should never identify an MSI as Xen pirq when not running on Xen. Signed-off-by: Stefano Stabellini CC: m...@redhat.com CC: berra...@redhat.com CC: xen-de...@lists.xen.org --- hw/pci/msix.c |2 +- xen-hvm.c |3 ++

Re: [Qemu-devel] [PATCH] linux-user: fix realloc size of target_fd_trans.

2016-02-15 Thread Riku Voipio
Hi, Applied to linux-user, thanks Riku On maanantaina 1. helmikuuta 2016 15.40.09 EET, Laurent Vivier wrote: Ping ? Le 18/01/2016 23:50, Laurent Vivier a écrit : target_fd_trans is an array of "TargetFdTrans *": compute size accordingly. Use g_renew() as proposed by Paolo. Reported-by: Paol

Re: [Qemu-devel] [libvirt] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-15 Thread Andrew Jones
On Mon, Feb 15, 2016 at 09:41:57AM +, Peter Maydell wrote: > On 15 February 2016 at 09:35, Martin Kletzander wrote: > > So hardware itself supports some GIC version, let's say 3 for our case. > > Does that mean it can be triggered to do v2 as well? I mean is it > > possible that HW supports m

Re: [Qemu-devel] [PULL 00/16] target-i386: xsave, mpx, fsgsbase extensions

2016-02-15 Thread Peter Maydell
ef102: > > Merge remote-tracking branch 'remotes/sstabellini/tags/xen-2016-02-12' into > staging (2016-02-12 17:36:12 +) > > are available in the git repository at: > > git://github.com/rth7680/qemu.git tags/pull-i386-20160215 > > for you to fetch changes up to 0

Re: [Qemu-devel] [libvirt] [RFC PATCH 0/2] ARM: add QMP command to query GIC version

2016-02-15 Thread Pavel Fedin
Hello! > I know Pavel Fedin was trying to revive kernel_irqchip=off once, > but I don't know if that effort was abandoned or not. It should work with the latest kernel, at least i posted patches and all of them were applied. If nothing got broken during later rewrites. The only missing part i

Re: [Qemu-devel] [PATCH 04/12] docker: Add test runner

2016-02-15 Thread Alex Bennée
Alex Bennée writes: > Fam Zheng writes: > >> It's better to have a launcher for all tests, to make it easier to >> initialize and manage the environment. >> >> Signed-off-by: Fam Zheng >> --- >> tests/docker/run | 23 +++ >> 1 file changed, 23 insertions(+) >> create mode

Re: [Qemu-devel] [PATCH 1/2] linux-user,i386: synchronize syscall_nr.h with kernel include/uapi/asm/unistd_32.h

2016-02-15 Thread Riku Voipio
On tiistaina 9. helmikuuta 2016 1.49.20 EET, Laurent Vivier wrote: From kernel v4.4 Thanks. However, while checking throught the syscalls, I'm now opting to update syscall numbers for all archs at once. Riku Signed-off-by: Laurent Vivier --- linux-user/i386/syscall_nr.h | 26 ++

Re: [Qemu-devel] [PATCH 3/3] replay: introduce block devices record/replay

2016-02-15 Thread Kevin Wolf
Am 15.02.2016 um 12:19 hat Pavel Dovgalyuk geschrieben: > > From: Kevin Wolf [mailto:kw...@redhat.com] > > Am 15.02.2016 um 10:14 hat Pavel Dovgalyuk geschrieben: > > > > From: Pavel Dovgalyuk [mailto:dovga...@ispras.ru] > > > > > From: Kevin Wolf [mailto:kw...@redhat.com] > > > > > > > > > > > > >

Re: [Qemu-devel] [PATCH 1/2] migration: allow configuration section to be optional

2016-02-15 Thread Greg Kurz
On Mon, 15 Feb 2016 12:23:39 +0100 Laurent Vivier wrote: > On 15/02/2016 11:15, Greg Kurz wrote: > > Since QEMU 2.4, the migration stream begins with a configuration section. > > It is known to break migration of pseries machine from older QEMU. It is > > possible to fix this in the pseries compa

Re: [Qemu-devel] lock-free monitor?

2016-02-15 Thread Kevin Wolf
Am 09.02.2016 um 14:47 hat Stefan Hajnoczi geschrieben: > On Mon, Feb 08, 2016 at 03:17:23PM +, Dr. David Alan Gilbert wrote: > > Does this make sense to everyone else, or does anyone have any better > > suggestions? > > As a concrete example, any monitor command that calls bdrv_drain_all() >

Re: [Qemu-devel] [PATCH v3 1/2] build: [linux-user] Rename "syscall.h" to "target_syscall.h" in target directories

2016-02-15 Thread Riku Voipio
On maanantaina 1. helmikuuta 2016 20.38.42 EET, Lluís Vilanova wrote: This fixes double-definitions in linux-user builds when using the UST tracing backend (which indirectly includes the system's "syscall.h"). Applied to linux-user, thanks Signed-off-by: Lluís Vilanova --- linux-user/aarch6

  1   2   3   4   >