Re: [Qemu-devel] [PATCH] linux-user: ppc64: fix ARCH_206 bit in AT_HWCAP

2016-09-19 Thread Michael Walle
Am 2016-09-20 04:23, schrieb David Gibson: On Tue, Aug 16, 2016 at 03:40:50PM +0200, Michael Walle wrote: Only the POWER[789] CPUs should have the ARCH_206 bit set. This is what the linux kernel does. I guess this was also the intention of commit 0e019746. We have to make sure all *206 bits ar

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Jike Song
On 09/20/2016 01:48 PM, Dong Jia Shi wrote: > * Jike Song [2016-09-13 10:35:11 +0800]: > >> On 09/08/2016 10:45 AM, Jike Song wrote: >>> On 08/25/2016 05:22 PM, Dong Jia wrote: On Thu, 25 Aug 2016 09:23:53 +0530 Kirti Wankhede wrote: [...] Dear Kirti, I j

Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 6/9] ppc/xics: Split ICS into ics-base and ics class

2016-09-19 Thread Nikunj A Dadhania
Cédric Le Goater writes: > On 09/20/2016 08:02 AM, Nikunj A Dadhania wrote: >> Cédric Le Goater writes: >> >>> On 09/19/2016 08:29 AM, Nikunj A Dadhania wrote: From: Benjamin Herrenschmidt The existing implementation remains same and ics-base is introduced. The type name "i

Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 6/9] ppc/xics: Split ICS into ics-base and ics class

2016-09-19 Thread Cédric Le Goater
On 09/20/2016 08:02 AM, Nikunj A Dadhania wrote: > Cédric Le Goater writes: > >> On 09/19/2016 08:29 AM, Nikunj A Dadhania wrote: >>> From: Benjamin Herrenschmidt >>> >>> The existing implementation remains same and ics-base is introduced. The >>> type name "ics" is retained, and all the related

Re: [Qemu-devel] [PATCH v5 1/3] memory: introduce IOMMUNotifier and its caps

2016-09-19 Thread David Gibson
On Wed, Sep 14, 2016 at 04:25:46PM +0800, Peter Xu wrote: > IOMMU Notifier list is used for notifying IO address mapping changes. > Currently VFIO is the only user. > > However it is possible that future consumer like vhost would like to > only listen to part of its notifications (e.g., cache inva

Re: [Qemu-devel] [PATCH v5 2/3] memory: introduce IOMMUOps.notify_flag_changed

2016-09-19 Thread David Gibson
On Wed, Sep 14, 2016 at 04:25:47PM +0800, Peter Xu wrote: > The new interface can be used to replace the old notify_started() and > notify_stopped(). Meanwhile it provides explicit flags so that IOMMUs > can know what kind of notifications it is requested for. > > Signed-off-by: Peter Xu Acked-b

Re: [Qemu-devel] [PATCH v5 3/3] intel_iommu: allow UNMAP notifiers

2016-09-19 Thread David Gibson
On Wed, Sep 14, 2016 at 04:25:48PM +0800, Peter Xu wrote: > Intel vIOMMU is still lacking of a complete IOMMU notifier mechanism. > Before that is achieved, let's open a door for vhost DMAR support, which > only requires cache invalidations (UNMAP operations). > > Meanwhile, converting hw_error()

Re: [Qemu-devel] [PATCH v5 0/3] Introduce IOMMUNotifier struct

2016-09-19 Thread David Gibson
On Mon, Sep 19, 2016 at 02:47:40PM +0200, Paolo Bonzini wrote: > > > On 14/09/2016 10:25, Peter Xu wrote: > > (Note: we still have pending discussions on how IOMMU notifier > > interface should be, assuming that is not a blocker for posting v5 of > > this one) > > > > V5: > > - squash spapr_tc

Re: [Qemu-devel] [PATCH v3 1/2] block: sync bdrv_co_get_block_status_above() with bdrv_is_allocated_above()

2016-09-19 Thread Jeff Cody
On Tue, Sep 20, 2016 at 01:18:12AM +0200, Max Reitz wrote: > On 2016-09-15 at 18:34, Denis V. Lunev wrote: > >They should work very similar, covering same areas if backing store is > >shorter than the image. This change is necessary for the followup patch > >switching to bdrv_get_block_status_above

Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 6/9] ppc/xics: Split ICS into ics-base and ics class

2016-09-19 Thread Nikunj A Dadhania
Cédric Le Goater writes: > On 09/19/2016 08:29 AM, Nikunj A Dadhania wrote: >> From: Benjamin Herrenschmidt >> >> The existing implementation remains same and ics-base is introduced. The >> type name "ics" is retained, and all the related functions renamed as >> ics_simple_* >> >> This will al

Re: [Qemu-devel] [PATCH v2 01/11] target-ppc: exceptions handling in icount mode

2016-09-19 Thread David Gibson
On Thu, Sep 15, 2016 at 11:09:59AM +0300, Pavel Dovgalyuk wrote: > From: Pavel Dovgalyuk > > This patch fixes exception handling in PowerPC. > Instructions generate several types of exceptions. > When exception is generated, it breaks the execution of the current > translation > block. Implement

Re: [Qemu-devel] [PATCH] vfio: Fix regression in MSI routing configuration

2016-09-19 Thread David Gibson
On Sun, Sep 18, 2016 at 01:33:27PM +0800, Peter Xu wrote: > Good to know that we have a solution. :) > > I think this is a good fix, however I still do not understand why this > is happening... Please see below comment. > > On Thu, Sep 15, 2016 at 04:11:48PM +1000, David Gibson wrote: > > d1f6af6

Re: [Qemu-devel] [PATCH 2/2] linux-user: remove #define smp_{cores, threads}

2016-09-19 Thread David Gibson
On Fri, Sep 16, 2016 at 04:36:48PM -0300, Eduardo Habkost wrote: > On Fri, Sep 16, 2016 at 07:50:24PM +0400, Marc-André Lureau wrote: > > Those are unneeded now that CPUState nr_{cores,threads} is always > > initialized. > > > > Signed-off-by: Marc-André Lureau > > Reviewed-by: Eduardo Habkost

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Dong Jia Shi
* Jike Song [2016-09-13 10:35:11 +0800]: > On 09/08/2016 10:45 AM, Jike Song wrote: > > On 08/25/2016 05:22 PM, Dong Jia wrote: > >> On Thu, 25 Aug 2016 09:23:53 +0530 > >> Kirti Wankhede wrote: > >> > >> [...] > >> > >> Dear Kirti, > >> > >> I just rebased my vfio-ccw patches to this series. >

Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 6/9] ppc/xics: Split ICS into ics-base and ics class

2016-09-19 Thread Nikunj A Dadhania
Cédric Le Goater writes: > On 09/19/2016 08:29 AM, Nikunj A Dadhania wrote: >> From: Benjamin Herrenschmidt >> >> The existing implementation remains same and ics-base is introduced. The >> type name "ics" is retained, and all the related functions renamed as >> ics_simple_* >> >> This will al

Re: [Qemu-devel] [Qemu-ppc] [PATCH v4 3/9] ppc/xics: Make the ICSState a list

2016-09-19 Thread Nikunj A Dadhania
Cédric Le Goater writes: > On 09/19/2016 09:02 AM, Nikunj A Dadhania wrote: >> Cédric Le Goater writes: >> >>> +static int icp_post_load(ICPState *ss, int version_id) +{ +sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine()); +XICSState *xics = spapr->xics;

Re: [Qemu-devel] [PATCH v3 2/5] target-ppc: improve lxvw4x implementation

2016-09-19 Thread David Gibson
On Mon, Sep 19, 2016 at 04:06:40PM +0530, Nikunj A Dadhania wrote: > David Gibson writes: > > [ Unknown signature status ] > > On Mon, Sep 19, 2016 at 04:19:34PM +1000, David Gibson wrote: > >> On Fri, Sep 16, 2016 at 04:21:48PM +0530, Nikunj A Dadhania wrote: > >> > diff --git a/target-ppc/transl

[Qemu-devel] [PATCH v2] add resolutions via command-line

2016-09-19 Thread G 3
Add the ability to add resolutions from the command-line. This patch works by looking for a property called 'resolutions' in the options node of OpenBIOS. If it is found all the resolutions are parsed and loaded. Example command-line: -prom-env resolutions=512x342,640x480,800x600,1024x600,12

Re: [Qemu-devel] [PATCH] linux-user: ppc64: fix ARCH_206 bit in AT_HWCAP

2016-09-19 Thread David Gibson
On Tue, Aug 16, 2016 at 03:40:50PM +0200, Michael Walle wrote: > Only the POWER[789] CPUs should have the ARCH_206 bit set. This is what the > linux kernel does. I guess this was also the intention of commit 0e019746. > We have to make sure all *206 bits are set. Hrm.. it's not clear to me how thi

Re: [Qemu-devel] [PATCH] Add resolutions via the command-line

2016-09-19 Thread G 3
On Sep 19, 2016, at 6:44 PM, Benjamin Herrenschmidt wrote: On Mon, 2016-09-19 at 08:44 -0400, G 3 wrote: On Sep 19, 2016, at 2:24 AM, Benjamin Herrenschmidt wrote: On Sat, 2016-09-17 at 23:31 -0400, G 3 wrote: Add the ability to add resolutions from the command-line. This patch works by l

Re: [Qemu-devel] [PATCH] Add resolutions via the command-line

2016-09-19 Thread G 3
On Sep 19, 2016, at 7:56 PM, Alfonso Gamboa wrote: John, http://mirror.informatimago.com/next/developer.apple.com/qa/dv/ dv43.html perhaps yields some insight: Note: An example of this is the video 'ndrv' support in Mac OS X. Mac OS X can load and run native video drivers from the ROM of

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Jike Song
On 09/20/2016 04:03 AM, Alex Williamson wrote: > On Tue, 20 Sep 2016 00:43:15 +0530 > Kirti Wankhede wrote: > >> On 9/20/2016 12:06 AM, Alex Williamson wrote: >>> On Mon, 19 Sep 2016 23:52:36 +0530 >>> Kirti Wankhede wrote: >>> On 8/26/2016 7:43 PM, Kirti Wankhede wrote: > * PGP Si

Re: [Qemu-devel] [V18 2/4] hw/i386/trace-events: Add AMD IOMMU trace events

2016-09-19 Thread Michael S. Tsirkin
On Tue, Sep 20, 2016 at 04:14:14AM +0300, David Kiarie wrote: > > > On Tue, Sep 20, 2016 at 3:09 AM, Michael S. Tsirkin wrote: > > On Tue, Sep 20, 2016 at 03:05:02AM +0300, David Kiarie wrote: > > Signed-off-by: David Kiarie > > --- > >  hw/i386/trace-events | 29 ++

Re: [Qemu-devel] [RFC v2] libvirt vGPU QEMU integration

2016-09-19 Thread Tian, Kevin
> From: Kirti Wankhede [mailto:kwankh...@nvidia.com] > Sent: Tuesday, September 20, 2016 4:36 AM > > > Hi libvirt experts, > > Thanks for valuable input on v1 version of RFC. > > Quick brief, VFIO based mediated device framework provides a way to > virtualize their devices without SR-IOV, like

Re: [Qemu-devel] [RFC v2] libvirt vGPU QEMU integration

2016-09-19 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Tuesday, September 20, 2016 5:36 AM > > > In the above example directory '11' represents a type id of mdev device. > > 'name', 'fb_length', 'resolution', 'heads', 'max_instance' and > > 'requires_group' would be Read-Only files th

[Qemu-devel] [PATCH 2/4] hw/i386/trace-events: Add AMD IOMMU trace events

2016-09-19 Thread David Kiarie
Signed-off-by: David Kiarie --- hw/i386/trace-events | 29 + 1 file changed, 29 insertions(+) diff --git a/hw/i386/trace-events b/hw/i386/trace-events index 5b99eba..1938b98 100644 --- a/hw/i386/trace-events +++ b/hw/i386/trace-events @@ -13,3 +13,32 @@ mhp_pc_dimm_as

Re: [Qemu-devel] [V18 2/4] hw/i386/trace-events: Add AMD IOMMU trace events

2016-09-19 Thread David Kiarie
On Tue, Sep 20, 2016 at 3:09 AM, Michael S. Tsirkin wrote: > On Tue, Sep 20, 2016 at 03:05:02AM +0300, David Kiarie wrote: > > Signed-off-by: David Kiarie > > --- > > hw/i386/trace-events | 29 + > > 1 file changed, 29 insertions(+) > > > > diff --git a/hw/i386/trace

Re: [Qemu-devel] [PATCH] hmp: Improve 'info mtree' with optional parm for mapinfo

2016-09-19 Thread Laszlo Ersek
On 09/20/16 02:16, Thorsten Kohfeldt wrote: > > Am 15.09.2016 um 11:52 schrieb Paolo Bonzini: >> >> On 07/09/2016 02:48, Thorsten Kohfeldt wrote: >>> From: Thorsten Kohfeldt >>> Date: Wed, 31 Aug 2016 22:43:14 +0200 >>> Subject: [PATCH] hmp: Improve 'info mtree' with optional parm for >>> mapinfo

Re: [Qemu-devel] [PATCH] hmp: Improve 'info mtree' with optional parm for mapinfo

2016-09-19 Thread Thorsten Kohfeldt
Am 15.09.2016 um 11:52 schrieb Paolo Bonzini: On 07/09/2016 02:48, Thorsten Kohfeldt wrote: From: Thorsten Kohfeldt Date: Wed, 31 Aug 2016 22:43:14 +0200 Subject: [PATCH] hmp: Improve 'info mtree' with optional parm for mapinfo Motivation When 'tuning' 'quirks' for VFIO imported devices, it

Re: [Qemu-devel] [V18 2/4] hw/i386/trace-events: Add AMD IOMMU trace events

2016-09-19 Thread Michael S. Tsirkin
On Tue, Sep 20, 2016 at 03:05:02AM +0300, David Kiarie wrote: > Signed-off-by: David Kiarie > --- > hw/i386/trace-events | 29 + > 1 file changed, 29 insertions(+) > > diff --git a/hw/i386/trace-events b/hw/i386/trace-events > index 5b99eba..ddeda02 100644 > --- a/hw/

[Qemu-devel] [V18 3/4] hw/i386: Introduce AMD IOMMU

2016-09-19 Thread David Kiarie
Add AMD IOMMU emulaton to Qemu in addition to Intel IOMMU. The IOMMU does basic translation, error checking and has a minimal IOTLB implementation. This IOMMU bypassed the need for target aborts by responding with IOMMU_NONE access rights and exempts the region 0xfee0-0xfeef from translatio

[Qemu-devel] [V18 2/4] hw/i386/trace-events: Add AMD IOMMU trace events

2016-09-19 Thread David Kiarie
Signed-off-by: David Kiarie --- hw/i386/trace-events | 29 + 1 file changed, 29 insertions(+) diff --git a/hw/i386/trace-events b/hw/i386/trace-events index 5b99eba..ddeda02 100644 --- a/hw/i386/trace-events +++ b/hw/i386/trace-events @@ -13,3 +13,32 @@ mhp_pc_dimm_as

[Qemu-devel] [V18 0/4] AMD IOMMU

2016-09-19 Thread David Kiarie
Hi all, This patchset adds basic AMD IOMMU emulation support to Qemu. Changes since v17 -removed host dependent defines in bitfields and replaced that with 'extract64/extract32' [Peter, Michael] Changes since v16 - this is mainly supposed to come as a ping :-) -minor endian-ness fixes C

[Qemu-devel] [V18 1/4] hw/pci: Prepare for AMD IOMMU

2016-09-19 Thread David Kiarie
Introduce PCI macros from for use by AMD IOMMU Signed-off-by: David Kiarie --- include/hw/pci/pci.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index e8b83bb..772692f 100644 --- a/include/hw/pci/pci.h +++ b/include/hw/pci/pci.h @@ -13,9 +13,

Re: [Qemu-devel] [PATCH] Add resolutions via the command-line

2016-09-19 Thread Alfonso Gamboa
John, http://mirror.informatimago.com/next/developer.apple.com/qa/dv/dv43.html perhaps yields some insight: *Note:* An example of this is the video 'ndrv' support in Mac OS X. Mac OS X can load and run native video drivers from the ROM of PCI video cards. This allows Mac OS X to provide basic vid

Re: [Qemu-devel] [PATCH v2 2/3] target-i386: turn off CPU.l3-cache only for 2.7 and older machine types

2016-09-19 Thread Michael S. Tsirkin
On Mon, Sep 19, 2016 at 01:58:48PM -0300, Eduardo Habkost wrote: > On Mon, Sep 19, 2016 at 10:32:34AM +0200, Igor Mammedov wrote: > > commit (14c985cff target-i386: present virtual L3 cache info for vcpus) > > misplaced compat property putting it in new 2.8 machine type > > which would effectively

Re: [Qemu-devel] [PATCH v3 1/2] block: sync bdrv_co_get_block_status_above() with bdrv_is_allocated_above()

2016-09-19 Thread Max Reitz
On 2016-09-15 at 18:34, Denis V. Lunev wrote: They should work very similar, covering same areas if backing store is shorter than the image. This change is necessary for the followup patch switching to bdrv_get_block_status_above() in mirror to avoid assert in check_block. This change should be

Re: [Qemu-devel] [Bug 1625295] Re: qemu-arm dies with libarmmem inside ld.so.preload

2016-09-19 Thread Stu
- I'm on Ubuntu 16.04, and it looks like it's 2.6.1 qemu-arm version 2.6.1 (Debian 1:2.6.1+dfsg-0~16.04), Copyright (c) 2003-2008 Fabrice Bellard Is there a PPA for qemu 2.7 somewhere ? On 19 September 2016 at 21:27, Peter Maydell wrote: > Which version of QEMU are you using? This is I think

Re: [Qemu-devel] build failure

2016-09-19 Thread Jianjun Duan
It seems my source tree wasn't clean. I removed the old tree and that error is gone. Thanks, Jianjun On 09/19/2016 02:51 PM, John Snow wrote: > > > On 09/19/2016 05:44 PM, Peter Maydell wrote: >> On 19 September 2016 at 22:38, John Snow wrote: >>> >>> >>> On 09/19/2016 05:17 PM, Jianjun Duan w

Re: [Qemu-devel] [PATCH] Add resolutions via the command-line

2016-09-19 Thread Benjamin Herrenschmidt
On Mon, 2016-09-19 at 08:44 -0400, G 3 wrote: > On Sep 19, 2016, at 2:24 AM, Benjamin Herrenschmidt wrote: > > > > > On Sat, 2016-09-17 at 23:31 -0400, G 3 wrote: > > > > > > Add the ability to add resolutions from the command-line. This > > > patch > > > works by > > > looking for a property ca

Re: [Qemu-devel] [RFC v2] libvirt vGPU QEMU integration

2016-09-19 Thread Alex Williamson
On Mon, 19 Sep 2016 23:50:56 +0200 Paolo Bonzini wrote: > On 19/09/2016 23:36, Alex Williamson wrote: > > On Tue, 20 Sep 2016 02:05:52 +0530 > > Kirti Wankhede wrote: > >> 'fb_length': > >> Read-only file. Mandatory. > >> Returns {K,M,G}, size of framebuffer. > > > > This can't be m

Re: [Qemu-devel] build failure

2016-09-19 Thread Jianjun Duan
make distclean didn't solve the problem. Thanks, Jianjun On 09/19/2016 02:51 PM, John Snow wrote: > > > On 09/19/2016 05:44 PM, Peter Maydell wrote: >> On 19 September 2016 at 22:38, John Snow wrote: >>> >>> >>> On 09/19/2016 05:17 PM, Jianjun Duan wrote: Hi, I ran into the foll

Re: [Qemu-devel] build failure

2016-09-19 Thread John Snow
On 09/19/2016 05:44 PM, Peter Maydell wrote: On 19 September 2016 at 22:38, John Snow wrote: On 09/19/2016 05:17 PM, Jianjun Duan wrote: Hi, I ran into the follow problems when I tried to build code based on latest master or ppc-for-2.8: hw/ide/core.c: In function ‘ide_init_ioport’: hw/i

[Qemu-devel] [PULL v3 8/8] iotest 055: refactor and speed up

2016-09-19 Thread Max Reitz
From: Vladimir Sementsov-Ogievskiy Source disk is created and filled with test data before each test case. Instead initialize it once for the whole unit. Test disk filling patterns are merged into one pattern. Also TestSetSpeed used different image_len for source and target (by mistake) - this

[Qemu-devel] [PULL v3 4/8] blockdev: Add dynamic generation of module_block.h

2016-09-19 Thread Max Reitz
From: Marc Mari To simplify the addition of new block modules, add a script that generates module_block.h automatically from the modules' source code. This script assumes that the QEMU coding style rules are followed. Signed-off-by: Marc Marí Signed-off-by: Colin Lord Reviewed-by: Stefan Hajn

[Qemu-devel] [PULL v3 1/8] qemu-img: add the 'dd' subcommand

2016-09-19 Thread Max Reitz
From: Reda Sallahi This patch adds a basic dd subcommand analogous to dd(1) to qemu-img. For the start, this implements the bs, if, of and count options and requires both if and of to be specified (no stdin/stdout if not specified) and doesn't support tty, pipes, etc. The image format must be s

[Qemu-devel] [PULL v3 6/8] blockdev: Modularize nfs block driver

2016-09-19 Thread Max Reitz
From: Colin Lord Modularizes the nfs block driver so that it gets dynamically loaded. Signed-off-by: Colin Lord Reviewed-by: Stefan Hajnoczi Message-id: 1471008424-16465-5-git-send-email-cl...@redhat.com Reviewed-by: Max Reitz Signed-off-by: Max Reitz --- block/Makefile.objs | 1 + configur

Re: [Qemu-devel] [RFC v2] libvirt vGPU QEMU integration

2016-09-19 Thread Paolo Bonzini
On 19/09/2016 23:36, Alex Williamson wrote: > On Tue, 20 Sep 2016 02:05:52 +0530 > Kirti Wankhede wrote: >> 'fb_length': >> Read-only file. Mandatory. >> Returns {K,M,G}, size of framebuffer. > > This can't be mandatory, it's only relevant to vGPU devices, vGPUs are > just one user of m

[Qemu-devel] [PULL v3 3/8] blockdev: prepare iSCSI block driver for dynamic loading

2016-09-19 Thread Max Reitz
From: Colin Lord This commit moves the initialization of the QemuOptsList qemu_iscsi_opts struct out of block/iscsi.c in order to allow the iscsi module to be dynamically loaded. Signed-off-by: Colin Lord Reviewed-by: Fam Zheng Reviewed-by: Stefan Hajnoczi Message-id: 1471008424-16465-2-git-s

[Qemu-devel] [PULL v3 0/8] Block layer patches

2016-09-19 Thread Max Reitz
The following changes since commit 33e1666b4289313306371fee0740f5c85517e406: Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-09-19' into staging (2016-09-19 18:06:52 +0100) are available in the git repository at: git://github.com/XanClic/qemu.git tags/pull-block-2016-09-19

[Qemu-devel] [PULL v3 5/8] blockdev: Add dynamic module loading for block drivers

2016-09-19 Thread Max Reitz
From: Marc Mari Extend the current module interface to allow for block drivers to be loaded dynamically on request. The only block drivers that can be converted into modules are the drivers that don't perform any init operation except for registering themselves. In addition, only the protocol dr

[Qemu-devel] [PULL v3 2/8] qemu-img: add skip option to dd

2016-09-19 Thread Max Reitz
From: Reda Sallahi This adds the skip option which allows qemu-img dd to skip a number of blocks before copying the input. A test case was added to test the skip option. Signed-off-by: Reda Sallahi Message-id: 20160810141609.32727-1-fullma...@gmail.com Signed-off-by: Max Reitz --- qemu-img-c

[Qemu-devel] [PULL v3 7/8] commit: get the overlay node before manipulating the backing chain

2016-09-19 Thread Max Reitz
From: Alberto Garcia The 'block-commit' command has a 'top' parameter to specify the topmost node from which the data is going to be copied. [E] <- [D] <- [C] <- [B] <- [A] In this case if [C] is the top node then this is the result: [E] <- [B] <- [A] [B] must be modified so its backing

Re: [Qemu-devel] build failure

2016-09-19 Thread Peter Maydell
On 19 September 2016 at 22:38, John Snow wrote: > > > On 09/19/2016 05:17 PM, Jianjun Duan wrote: >> >> Hi, >> I ran into the follow problems when I tried to build code based on >> latest master or ppc-for-2.8: >> >> hw/ide/core.c: In function ‘ide_init_ioport’: >> hw/ide/core.c:2622:39: error: ‘I

Re: [Qemu-devel] build failure

2016-09-19 Thread John Snow
On 09/19/2016 05:17 PM, Jianjun Duan wrote: Hi, I ran into the follow problems when I tried to build code based on latest master or ppc-for-2.8: hw/ide/core.c: In function ‘ide_init_ioport’: hw/ide/core.c:2622:39: error: ‘IDEBus’ has no member named ‘portio_list’ isa_register_portio_list(

Re: [Qemu-devel] [RFC v2] libvirt vGPU QEMU integration

2016-09-19 Thread Alex Williamson
On Tue, 20 Sep 2016 02:05:52 +0530 Kirti Wankhede wrote: > Hi libvirt experts, > > Thanks for valuable input on v1 version of RFC. > > Quick brief, VFIO based mediated device framework provides a way to > virtualize their devices without SR-IOV, like NVIDIA vGPU, Intel KVMGT > and IBM's channel

Re: [Qemu-devel] [PATCH v4 0/2] block: allow flush on devices with open tray

2016-09-19 Thread Max Reitz
On 19.09.2016 23:21, John Snow wrote: > > > On 09/19/2016 04:58 PM, Max Reitz wrote: >> On 19.09.2016 18:44, John Snow wrote: >>> Final re-send for wording. >>> >>> The move to blk_flush altered the behavior of migration and flushing >>> nodes that are not reachable via the guest, but are still r

Re: [Qemu-devel] [PATCH v4 0/2] block: allow flush on devices with open tray

2016-09-19 Thread John Snow
On 09/19/2016 04:58 PM, Max Reitz wrote: On 19.09.2016 18:44, John Snow wrote: Final re-send for wording. The move to blk_flush altered the behavior of migration and flushing nodes that are not reachable via the guest, but are still reachable via QEMU and may or may not need to be flushed. T

Re: [Qemu-devel] [PULL v2 0/8] Block layer patches

2016-09-19 Thread Max Reitz
On 19.09.2016 13:39, Peter Maydell wrote: > On 17 September 2016 at 23:05, Max Reitz wrote: >> The following changes since commit e3571ae30cd26d19efd4554c25e32ef64d6a36b3: >> >> Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20160916' into >> staging (2016-09-16 16:54:50 +0100) >> >> a

[Qemu-devel] build failure

2016-09-19 Thread Jianjun Duan
Hi, I ran into the follow problems when I tried to build code based on latest master or ppc-for-2.8: hw/ide/core.c: In function ‘ide_init_ioport’: hw/ide/core.c:2622:39: error: ‘IDEBus’ has no member named ‘portio_list’ isa_register_portio_list(dev, &bus->portio_list,

Re: [Qemu-devel] [libvirt] [PATCH v3 0/5] Add runnability info to query-cpu-definitions

2016-09-19 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Subject: [libvirt] [PATCH v3 0/5] Add runnability info to query-cpu-definitions Message-id: 1474314175-24374-1-git-send-email-

Re: [Qemu-devel] [PATCH v7 1/4] vfio: Mediated device Core driver

2016-09-19 Thread Alex Williamson
On Tue, 20 Sep 2016 01:39:19 +0530 Kirti Wankhede wrote: > On 9/19/2016 11:41 PM, Alex Williamson wrote: > > On Mon, 19 Sep 2016 22:59:34 +0530 > > Kirti Wankhede wrote: > > > >> On 9/12/2016 9:23 PM, Alex Williamson wrote: > >>> On Mon, 12 Sep 2016 13:19:11 +0530 > >>> Kirti Wankhede wrot

Re: [Qemu-devel] [PATCH] Avoid additional GET_FEATURES call on vhost-user

2016-09-19 Thread Felipe Franciosi
Gentle ping. Thanks, Felipe From: Marc-André Lureau Date: Thursday, 25 August 2016 at 12:14 To: Felipe Franciosi , "qemu-devel@nongnu.org" , "Michael S. Tsirkin" Subject: Re: [Qemu-devel] [PATCH] Avoid additional GET_FEATURES call on vhost-user Hi On Sat, Aug 20, 2016 at 3:28 AM Felipe Fran

Re: [Qemu-devel] [PATCH v4 0/2] block: allow flush on devices with open tray

2016-09-19 Thread Max Reitz
On 19.09.2016 18:44, John Snow wrote: > Final re-send for wording. > > The move to blk_flush altered the behavior of migration and flushing > nodes that are not reachable via the guest, but are still reachable > via QEMU and may or may not need to be flushed. > > This is likely the simplest solut

Re: [Qemu-devel] [PATCH v3 1/2] block: sync bdrv_co_get_block_status_above() with bdrv_is_allocated_above()

2016-09-19 Thread Eric Blake
On 09/18/2016 11:37 PM, Denis V. Lunev wrote: > On 09/19/2016 04:21 AM, Fam Zheng wrote: >> On Thu, 09/15 19:34, Denis V. Lunev wrote: >>> They should work very similar, covering same areas if backing store is >>> shorter than the image. This change is necessary for the followup patch >>> switching

[Qemu-devel] [RFC v2] libvirt vGPU QEMU integration

2016-09-19 Thread Kirti Wankhede
Hi libvirt experts, Thanks for valuable input on v1 version of RFC. Quick brief, VFIO based mediated device framework provides a way to virtualize their devices without SR-IOV, like NVIDIA vGPU, Intel KVMGT and IBM's channel IO. This framework reuses VFIO APIs for all the functionalities for med

[Qemu-devel] [Bug 1625295] Re: qemu-arm dies with libarmmem inside ld.so.preload

2016-09-19 Thread Peter Maydell
Which version of QEMU are you using? This is I think due to SETEND emulation, which I thought we had implemented now. If this still doesn't work on QEMU 2.7, please can you provide full instructions to reproduce the problem (assume I know nothing about how to get raspbian or run it on QEMU). --

Re: [Qemu-devel] [PATCH v8 10/12] uuid: Tighten uuid parse

2016-09-19 Thread Eric Blake
On 09/17/2016 11:25 PM, Fam Zheng wrote: > sscanf is relatively loose (tolerate) on some invalid formats that we > should fail instead of generating a wrong uuid structure, like with > whitespaces and short strings. > > Add and use a helper function to first check the format. > > Signed-off-by: F

Re: [Qemu-devel] [PULL v2 0/8] Merge qcrypto 2016/09/19

2016-09-19 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Type: series Subject: [Qemu-devel] [PULL v2 0/8] Merge qcrypto 2016/09/19 Message-id: 1474299237-1054-1-git-send-email-berra..

Re: [Qemu-devel] [PATCH v7 1/4] vfio: Mediated device Core driver

2016-09-19 Thread Kirti Wankhede
On 9/19/2016 11:41 PM, Alex Williamson wrote: > On Mon, 19 Sep 2016 22:59:34 +0530 > Kirti Wankhede wrote: > >> On 9/12/2016 9:23 PM, Alex Williamson wrote: >>> On Mon, 12 Sep 2016 13:19:11 +0530 >>> Kirti Wankhede wrote: >>> On 9/12/2016 10:40 AM, Jike Song wrote: > On 09/10/201

[Qemu-devel] MAINTAINERS: Add some SPARC machine related files

2016-09-19 Thread Thomas Huth
And while we're at it, remove Blue Swirl from the list of maintainers. Blue has apparently been inactive for quite a while now, so I assume he's unfortunately not available as maintainer anymore. Signed-off-by: Thomas Huth --- MAINTAINERS | 9 +++-- 1 file changed, 7 insertions(+), 2 deletio

Re: [Qemu-devel] [PATCH 1/6] iotests: throw away test timings if args change

2016-09-19 Thread Eric Blake
On 09/19/2016 12:35 PM, Daniel P. Berrange wrote: > The 'check' program records timings for each test that > is run. These timings are only valid, however, for a > particular format/protocol combination. So if frequently > running 'check' with a variety of different formats or > protocols, the time

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Alex Williamson
On Tue, 20 Sep 2016 00:43:15 +0530 Kirti Wankhede wrote: > On 9/20/2016 12:06 AM, Alex Williamson wrote: > > On Mon, 19 Sep 2016 23:52:36 +0530 > > Kirti Wankhede wrote: > > > >> On 8/26/2016 7:43 PM, Kirti Wankhede wrote: > >>> * PGP Signed: 08/26/2016 at 07:15:44 AM, Decrypted > >>> On 8/

Re: [Qemu-devel] [PATCH v2 07/10] block: Accept device model name for eject

2016-09-19 Thread Eric Blake
On 09/19/2016 11:54 AM, Kevin Wolf wrote: > In order to remove the necessity to use BlockBackend names in the > external API, we want to allow qdev device names in all device related > commands. > > This converts eject to accept a qdev device name. > > Signed-off-by: Kevin Wolf > --- > blockdev

[Qemu-devel] [PATCH] hw/arm: Fix Integrator/CP memsz initialization

2016-09-19 Thread Jakub Jermář
* Do not assume memsz is already initialized in integratorcm_init * Calculate memsz directly from MachineState * Get rid of the now unused memsz property Signed-off-by: Jakub Jermar --- hw/arm/integratorcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/arm/integrat

Re: [Qemu-devel] [PATCH v2 08/10] block: Accept device model name for blockdev-change-medium

2016-09-19 Thread Eric Blake
On 09/19/2016 11:54 AM, Kevin Wolf wrote: > In order to remove the necessity to use BlockBackend names in the > external API, we want to allow qdev device names in all device related > commands. > > This converts blockdev-change-medium to accept a qdev device name. > > Signed-off-by: Kevin Wolf

Re: [Qemu-devel] [PATCH v2 06/10] block: Accept device model name for x-blockdev-remove-medium

2016-09-19 Thread Eric Blake
On 09/19/2016 11:54 AM, Kevin Wolf wrote: > In order to remove the necessity to use BlockBackend names in the > external API, we want to allow qdev device names in all device related > commands. > > This converts x-blockdev-remove-medium to accept a qdev device name. > > As the command is experim

Re: [Qemu-devel] [PATCH v2 09/10] block: Accept device model name for block_set_io_throttle

2016-09-19 Thread Eric Blake
On 09/19/2016 11:54 AM, Kevin Wolf wrote: > In order to remove the necessity to use BlockBackend names in the > external API, we want to allow qdev device names in all device related > commands. > > This converts block_set_io_throttle to accept a qdev device name. > > Signed-off-by: Kevin Wolf >

[Qemu-devel] [Bug 1624896] Re: [PPC] SegFault due to Stack Overflow in E500

2016-09-19 Thread T. Huth
** Tags added: ppc -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1624896 Title: [PPC] SegFault due to Stack Overflow in E500 Status in QEMU: New Bug description: I am getting a Segmentatio

[Qemu-devel] [PATCH v3 0/5] Add runnability info to query-cpu-definitions

2016-09-19 Thread Eduardo Habkost
This series extends query-cpu-definitions to include an extra field: "unavailable-features". The new field can be used to find out reasons that prevent the CPU model from running in the current host. This will return information based on the current machine and accelerator only. In the future we m

Re: [Qemu-devel] [Xen-devel] stack size limit issues with xen + qemu + rbd

2016-09-19 Thread Konrad Rzeszutek Wilk
On Fri, Sep 16, 2016 at 04:55:17PM -0400, Chris Patterson wrote: > I have spent some time investigating a case where qemu is failing to > register xenstore watches for a PV guest once I enable vfb (and > thereby triggering the creation of a qemu instance). > > The qemu logs show something along th

[Qemu-devel] [PATCH v3 2/5] target-i386: Move warning code outside x86_cpu_filter_features()

2016-09-19 Thread Eduardo Habkost
x86_cpu_filter_features() will be reused by code that shouldn't print any warning. Move the warning code to a new x86_cpu_report_filtered_features() function, and call it from x86_cpu_realizefn(). Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 28 +++- 1 file chan

Re: [Qemu-devel] [PATCH v2 10/10] qemu-iotests/118: Test media change with qdev name

2016-09-19 Thread Eric Blake
On 09/19/2016 11:54 AM, Kevin Wolf wrote: > We just added the option to use qdev device names in all device related > block QMP commands. This patch converts some of the test cases in 118 to > use qdev device names instead of BlockBackend names to cover the new > way. It converts cases for each of

[Qemu-devel] [PATCH v3 5/5] target-i386: Return runnability information on query-cpu-definitions

2016-09-19 Thread Eduardo Habkost
Fill the "unavailable-features" field on the x86 implementation of query-cpu-definitions. Cc: Jiri Denemark Cc: libvir-l...@redhat.com Signed-off-by: Eduardo Habkost --- Changes v2 -> v3: * Create a x86_cpu_feature_name() function, to isolate the code that returns the property name Changes v1

[Qemu-devel] [PATCH v3 4/5] qmp: Add runnability information to query-cpu-definitions

2016-09-19 Thread Eduardo Habkost
Add a new optional field to query-cpu-definitions schema: "unavailable-features". It will contain a list of QOM properties that prevent the CPU model from running in the current host. Cc: David Hildenbrand Cc: Michael Mueller Cc: Christian Borntraeger Cc: Cornelia Huck Cc: Jiri Denemark Cc: l

[Qemu-devel] [PATCH v3 3/5] target-i386: Define CPUID filtering functions before x86_cpu_list()

2016-09-19 Thread Eduardo Habkost
Just move code to another place so the it can be reused by the query-cpu-definitions code. Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 68 +++ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/target-i386/cpu.c b/target

[Qemu-devel] [PATCH v3 1/5] target-i386: List CPU models using subclass list

2016-09-19 Thread Eduardo Habkost
Instead of using the builtin_x86_defs array, use the QOM subclass list to list CPU models on "-cpu ?" and "query-cpu-definitions". Signed-off-by: Andreas Färber [ehabkost: copied code from a patch by Andreas: "target-i386: QOM'ify CPU", from March 2012] Signed-off-by: Eduardo Habkost --- targe

[Qemu-devel] [Bug 1625295] [NEW] qemu-arm dies with libarmmem inside ld.so.preload

2016-09-19 Thread Stu
Public bug reported: When running raspbian inside qemu,the user has to first comment out the following line from /etc/ld.so.conf: /usr/lib/arm-linux-gnueabihf/libarmmem.so Will future qemus will be able to work without changine /etc/ld.so.conf ? ** Affects: qemu Importance: Undecided

Re: [Qemu-devel] [PATCH v2 04/10] block: Accept device model name for blockdev-open/close-tray

2016-09-19 Thread Eric Blake
On 09/19/2016 11:54 AM, Kevin Wolf wrote: > In order to remove the necessity to use BlockBackend names in the > external API, we want to allow qdev device names in all device related > commands. > > This converts blockdev-open/close-tray to accept a qdev device name. > > Signed-off-by: Kevin Wolf

Re: [Qemu-devel] [PATCH v3 00/10] virtio: avoid exit() when device enters invalid states

2016-09-19 Thread Laszlo Ersek
On 09/19/16 19:51, Michael S. Tsirkin wrote: > On Mon, Sep 19, 2016 at 06:07:40PM +0200, Cornelia Huck wrote: >> On Tue, 12 Apr 2016 14:25:24 +0100 >> Stefan Hajnoczi wrote: >> >>> v3: >>> * Patch 1: Fix typo and clarify commit description [Markus] >>> * Use virtio_set_status() instead of open c

Re: [Qemu-devel] [PATCH v2 00/10] block: Accept qdev IDs in device level QMP commands

2016-09-19 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Subject: [Qemu-devel] [PATCH v2 00/10] block: Accept qdev IDs in device level QMP commands Message-id: 1474304097-5790-1-git-

Re: [Qemu-devel] [PATCH v7 2/4] vfio: VFIO driver for mediated devices

2016-09-19 Thread Kirti Wankhede
On 9/20/2016 12:06 AM, Alex Williamson wrote: > On Mon, 19 Sep 2016 23:52:36 +0530 > Kirti Wankhede wrote: > >> On 8/26/2016 7:43 PM, Kirti Wankhede wrote: >>> * PGP Signed: 08/26/2016 at 07:15:44 AM, Decrypted >>> On 8/25/2016 2:52 PM, Dong Jia wrote: On Thu, 25 Aug 2016 09:23:53 +0530

Re: [Qemu-devel] [PATCH v4 0/2] block: allow flush on devices with open tray

2016-09-19 Thread John Snow
On 09/19/2016 02:15 PM, no-re...@ec2-52-6-146-230.compute-1.amazonaws.com wrote: Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. lies and slander! Subject: [Qemu-dev

Re: [Qemu-devel] [RFC 7/8] util/qht: atomically set b->hashes

2016-09-19 Thread Emilio G. Cota
On Mon, Sep 19, 2016 at 20:37:06 +0200, Paolo Bonzini wrote: > On 19/09/2016 20:06, Emilio G. Cota wrote: > > On Mon, Sep 19, 2016 at 16:51:38 +0100, Alex Bennée wrote: > >> > ThreadSanitizer detects a possible race between reading/writing the > >> > hashes. As ordering semantics are already docume

Re: [Qemu-devel] [PATCH v5 5/8] linux-user: Fix msgrcv() and msgsnd() syscalls support

2016-09-19 Thread Aleksandar Markovic
Hello, Lorain. I really appreciate your reviewing these patches. This was a great opportunity for me to learn a lot. I will address all your concerns about this series in its next version, which is planned to be posted by the end of this week. Regarding another series on Mips-specific issues, i

Re: [Qemu-devel] [PATCH v3] virtio: add check for descriptor's mapped address

2016-09-19 Thread Laszlo Ersek
On 09/19/16 20:25, P J P wrote: > From: Prasad J Pandit > > virtio back end uses set of buffers to facilitate I/O operations. > If its size is too large, 'cpu_physical_memory_map' could return > a null address. This would result in a null dereference while > un-mapping descriptors. Add check to a

[Qemu-devel] [Bug 1624726] Re: Integrator/CP regression after QOM'ification of integratorcp.c

2016-09-19 Thread Jakub Jermar
Turns out integratorcm_init() depends on the memsz property being already set, but that unfortunately is not the case as setting of memsz depends on integratorcm_init() having completed: dev = qdev_create(NULL, TYPE_INTEGRATOR_CM);<= calls integratorcm_init(), needs memsz qdev

[Qemu-devel] [PULL 2/3] kvm/apic: drop debugging

2016-09-19 Thread Eduardo Habkost
From: "Michael S. Tsirkin" commit 78d6a05d2f69cbfa6e95f0a4a24a2c934969913b ("x86/lapic: Load LAPIC state at post_load") has some debugging leftovers. Drop them. Cc: Dr. David Alan Gilbert Signed-off-by: Michael S. Tsirkin Signed-off-by: Eduardo Habkost --- hw/i386/kvm/apic.c | 1 - 1 fi

[Qemu-devel] [PULL 0/3] x86 queue, 2016-09-19

2016-09-19 Thread Eduardo Habkost
The following changes since commit 33e1666b4289313306371fee0740f5c85517e406: Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-09-19' into staging (2016-09-19 18:06:52 +0100) are available in the git repository at: git://github.com/ehabkost/qemu.git tags/x86-pull-request for

[Qemu-devel] [PULL 3/3] linux-user-i386: Fix crash on cpuid

2016-09-19 Thread Eduardo Habkost
From: Marc-André Lureau Running cpuid instructions with a simple run like: i386-linux-user/qemu-i386 tests/tcg/sha1-i386 Results in the following assert: #0 0x764246f5 in raise () from /lib64/libc.so.6 #1 0x764262fa in abort () from /lib64/libc.so.6 #2 0x77937ec5 in

  1   2   3   4   5   >