[Qemu-devel] [PATCH v2 1/1] hyperv: cpu hotplug fix with HyperV enabled

2016-02-13 Thread Denis V. Lunev
With Hyper-V enabled CPU hotplug stops working. The CPU appears in device manager on Windows but does not appear in peformance monitor and control panel. The root of the problem is the following. Windows checks HV_X64_CPU_DYNAMIC_PARTITIONING_AVAILABLE bit in CPUID. The presence of this bit is

[Qemu-devel] [PATCH 1/1] vl: change QEMU state machine for system reset

2016-02-13 Thread Denis V. Lunev
This patch implements proposal from Paolo to handle system reset when the guest is not running. "After a reset, main_loop_should_exit should actually transition to VM_STATE_PRELAUNCH (*not* RUN_STATE_PAUSED) for *all* states except RUN_STATE_INMIGRATE, RUN_STATE_SAVE_VM (which I think cannot

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

2016-02-13 Thread Alex Williamson
Hi Kevin, On Fri, 12 Feb 2016 21:49:04 -0500 "Kevin O'Connor" wrote: > On Fri, Feb 12, 2016 at 05:23:18PM -0700, Alex Williamson wrote: > > Intel IGD makes use of memory allocated and marked reserved by the > > BIOS as a stolen memory range. For the most part, guest drivers

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

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

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

2016-02-13 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. This patch also adds a FIFO32 implementation

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

2016-02-13 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- hw/ssi/Makefile.objs | 1 + hw/ssi/imx_spi.c | 449 +++ include/hw/ssi/imx_spi.h | 104 +++ 3 files changed, 554 insertions(+) create mode 100644 hw/ssi/imx_spi.c

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

2016-02-13 Thread Jean-Christophe Dubois
This allows Linux to boot without hanging on SPI access. Signed-off-by: Jean-Christophe Dubois --- 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

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-13 Thread Kevin O'Connor
On Tue, Feb 09, 2016 at 07:36:12PM +0100, Laszlo Ersek wrote: > On 02/09/16 17:22, John Snow wrote: > > On 02/09/2016 10:52 AM, Roman Kagan wrote: > >> On Mon, Feb 08, 2016 at 03:20:47PM -0500, John Snow wrote: > >>> On 02/08/2016 08:14 AM, Roman Kagan wrote: > On Fri, Feb 05, 2016 at

Re: [Qemu-devel] [PATCH V2] MAINTAINERS: add machine section

2016-02-13 Thread Eric Blake
On 02/13/2016 01:10 AM, Laszlo Ersek wrote: > On 02/12/16 20:49, Marcel Apfelbaum wrote: >> Eduardo and me will maintain it. > > I suggest "Eduardo and I". > > Eric? :) Correct. In English, if you are including yourself in a list, it's good form to list the first-person pronoun last; then the

Re: [Qemu-devel] [PATCH V2] MAINTAINERS: add machine section

2016-02-13 Thread Marcel Apfelbaum
On 02/13/2016 07:39 PM, Eric Blake wrote: On 02/13/2016 01:10 AM, Laszlo Ersek wrote: On 02/12/16 20:49, Marcel Apfelbaum wrote: Eduardo and me will maintain it. I suggest "Eduardo and I". Eric? :) Correct. In English, if you are including yourself in a list, it's good form to list the

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

2016-02-13 Thread Kevin O'Connor
On Sat, Feb 13, 2016 at 08:12:09AM -0700, Alex Williamson wrote: > On Fri, 12 Feb 2016 21:49:04 -0500 > "Kevin O'Connor" wrote: > > On Fri, Feb 12, 2016 at 05:23:18PM -0700, Alex Williamson wrote: > > > Intel IGD makes use of memory allocated and marked reserved by the > > >

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

2016-02-13 Thread Alex Williamson
On Sat, 13 Feb 2016 13:18:39 -0500 "Kevin O'Connor" wrote: > On Sat, Feb 13, 2016 at 08:12:09AM -0700, Alex Williamson wrote: > > On Fri, 12 Feb 2016 21:49:04 -0500 > > "Kevin O'Connor" wrote: > > > On Fri, Feb 12, 2016 at 05:23:18PM -0700, Alex

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

2016-02-13 Thread Michael S. Tsirkin
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 format is pci little-endian. Reported-by: "Daniel P.

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

2016-02-13 Thread Kevin O'Connor
On Sat, Feb 13, 2016 at 11:51:51AM -0700, Alex Williamson wrote: > On Sat, 13 Feb 2016 13:18:39 -0500 > "Kevin O'Connor" wrote: > > On Sat, Feb 13, 2016 at 08:12:09AM -0700, Alex Williamson wrote: > > > On Fri, 12 Feb 2016 21:49:04 -0500 > > > "Kevin O'Connor"

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

2016-02-13 Thread Alex Williamson
On Sat, 13 Feb 2016 15:05:09 -0500 "Kevin O'Connor" wrote: > On Sat, Feb 13, 2016 at 11:51:51AM -0700, Alex Williamson wrote: > > On Sat, 13 Feb 2016 13:18:39 -0500 > > "Kevin O'Connor" wrote: > > > On Sat, Feb 13, 2016 at 08:12:09AM -0700, Alex

Re: [Qemu-devel] [PATCH V2] MAINTAINERS: add machine section

2016-02-13 Thread Laszlo Ersek
On 02/12/16 20:49, Marcel Apfelbaum wrote: > Eduardo and me will maintain it. I suggest "Eduardo and I". Eric? :) Laszlo > > Signed-off-by: Marcel Apfelbaum > Acked-by: Andreas Färber > --- > > v1 -> v2: > Modified description to "Machine core"

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

2016-02-13 Thread Kevin O'Connor
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, 2016 at 11:51:51AM -0700, Alex Williamson wrote: > > > On Sat, 13 Feb 2016 13:18:39 -0500 > > > "Kevin O'Connor"

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

2016-02-13 Thread Alex Williamson
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, 2016 at 11:51:51AM -0700, Alex

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

2016-02-13 Thread Jevon Qiao
On 14/2/16 14:01, Aneesh Kumar K.V wrote: diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c index f972731..385c01d 100644 --- a/hw/9pfs/virtio-9p.c +++ b/hw/9pfs/virtio-9p.c @@ -1326,7 +1326,7 @@ out_nofid: static int32_t get_iounit(V9fsPDU *pdu, V9fsPath *path) { struct statfs

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

2016-02-13 Thread Jevon Qiao
The following patch made over v2.5.50 of the upstream Qemu aims to add functionality needed to support CephFS in VirtFS, which enables VirtFS to talk directly with CephFS via libcephfs. This patch provides a switch in the configure script of Qemu to allow users to turn on CephFS support on

Re: [Qemu-devel] [PATCH 2/6] qmp: add query-block-dirty-bitmap-ranges

2016-02-13 Thread Fam Zheng
On Wed, 02/10 16:57, Denis V. Lunev wrote: > On 02/10/2016 01:08 PM, Stefan Hajnoczi wrote: > >On Sat, Jan 30, 2016 at 01:56:30PM +0300, Vladimir Sementsov-Ogievskiy wrote: > >>Add qmp command to query dirty bitmap contents. This is needed for > >>external backup. > >> > >>Signed-off-by: Vladimir

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

2016-02-13 Thread Aneesh Kumar K.V
> diff --git a/hw/9pfs/virtio-9p.c b/hw/9pfs/virtio-9p.c > index f972731..385c01d 100644 > --- a/hw/9pfs/virtio-9p.c > +++ b/hw/9pfs/virtio-9p.c > @@ -1326,7 +1326,7 @@ out_nofid: > static int32_t get_iounit(V9fsPDU *pdu, V9fsPath *path) > { > struct statfs stbuf; > -int32_t iounit

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

2016-02-13 Thread Xiao Guangrong
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-off-by: Xiao Guangrong ---

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

2016-02-13 Thread Fam Zheng
On Tue, 02/09 13:47, Stefan Hajnoczi wrote: > 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() > can hang

[Qemu-devel] [PATCH 2/2] hw/9pfs: fix alignment issue when host filesystem block size is larger than client msize

2016-02-13 Thread Jevon Qiao
The following patch is to fix alignment issue when host filesystem block size is larger than client msize. Thanks, Jevon From: Jevon Qiao Date: Sun, 14 Feb 2016 15:11:08 +0800 Subject: [PATCH] hw/9pfs: fix alignment issue when host filesystem block size is larger than

Re: [Qemu-devel] [PATCH v8 2/7] Qemu-Xen-vTPM: Create a new file xen_pvdev.c

2016-02-13 Thread Xu, Quan
> On June 23, 2015 12:37 AM, : > Cc: stefano.stabell...@eu.citrix.com; qemu-devel@nongnu.org; > stef...@linux.vnet.ibm.com; ebl...@redhat.com; wei.l...@citrix.com; > dgde...@tycho.nsa.gov; xen-de...@lists.xen.org > Subject: Re: [PATCH v8 2/7] Qemu-Xen-vTPM: Create

Re: [Qemu-devel] [PULL 48/49] i386: populate floppy drive information in DSDT

2016-02-13 Thread Laszlo Ersek
On 02/13/16 18:26, Kevin O'Connor wrote: > On Tue, Feb 09, 2016 at 07:36:12PM +0100, Laszlo Ersek wrote: >> On 02/09/16 17:22, John Snow wrote: >>> On 02/09/2016 10:52 AM, Roman Kagan wrote: On Mon, Feb 08, 2016 at 03:20:47PM -0500, John Snow wrote: > On 02/08/2016 08:14 AM, Roman Kagan

Re: [Qemu-devel] make distclean can fail do to a configuration check

2016-02-13 Thread Fam Zheng
On Wed, 02/10 14:28, John Snow wrote: > Stuff like this: > > > ~/s/q/b/git> make distclean > > config-host.mak is out-of-date, running configure > > > > ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T. > >You probably need to set PKG_CONFIG_LIBDIR > >to point to the right

[Qemu-devel] [PATCH 1/2] add CephFS support in VirtFS

2016-02-13 Thread Jevon Qiao
Per Aneesh's comment, I separated the patch listed below into two. Change the Subject and send the other one in a separate email. Thanks, Jevon On 14/2/16 13:06, Jevon Qiao wrote: The following patch made over v2.5.50 of the upstream Qemu aims to add functionality needed to support CephFS in

Re: [Qemu-devel] [PATCH v2 03/11] acpi: add aml_create_field()

2016-02-13 Thread Xiao Guangrong
On 02/08/2016 06:47 PM, Igor Mammedov wrote: On Wed, 13 Jan 2016 02:50:02 +0800 Xiao Guangrong wrote: It will be used by nvdimm acpi Signed-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 13 +

[Qemu-devel] [RFC PATCH 1/2] arm: gic: add GICType

2016-02-13 Thread Peter Xu
A new enum type is added to define ARM GIC types. Signed-off-by: Peter Xu --- qapi-schema.json | 17 + 1 file changed, 17 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 8d04897..81654bd 100644 --- a/qapi-schema.json +++

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

2016-02-13 Thread Peter Xu
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 version(s) the platform will

[Qemu-devel] [RFC PATCH 2/2] arm: gic: add "query-gic-capability" interface

2016-02-13 Thread Peter Xu
Signed-off-by: Peter Xu --- qapi-schema.json | 11 +++ qmp-commands.hx | 25 + qmp.c| 5 + scripts/qapi.py | 1 + 4 files changed, 42 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 81654bd..7e3b8cd

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

2016-02-13 Thread Xiao Guangrong
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-off-by: Xiao Guangrong --- hw/acpi/aml-build.c | 14 ++

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

2016-02-13 Thread Xiao Guangrong
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_FILE, will be patched into NVDIMM ACPI binary

Re: [Qemu-devel] [PATCH 3/3] iotests/124: Add cluster_size mismatch test

2016-02-13 Thread Fam Zheng
On Fri, 02/12 18:06, John Snow wrote: > If a backing file isn't specified in the target image and the > cluster_size is larger than the bitmap granularity, we run the risk of > creating bitmaps with allocated clusters but empty/no data which will > prevent the proper reading of the backup in the

Re: [Qemu-devel] [PATCH 01/12] tests: Add utilities for docker testing

2016-02-13 Thread Fam Zheng
On Tue, 02/09 18:16, John Snow wrote: > Sure, but the failure here is not particularly obvious, because it makes > it seem as if docker has failed instead of a sudo privilege situation. Of course you're right, I'll improve the error message. Thanks! Fam

Re: [Qemu-devel] [PATCH 00/12] tests: Introducing docker tests

2016-02-13 Thread Fam Zheng
On Wed, 02/10 11:23, Alex Bennée wrote: > > To begin with, this can be a place to store standard env/command > > combinations to > > build and test QEMU. > > > > Secondly, CI usually provides "docker" capability (such as travis [1]), > > where > > we define standard/repeatable test environments,

Re: [Qemu-devel] [PATCH v2 02/11] tests: acpi: test NVDIMM tables

2016-02-13 Thread Xiao Guangrong
On 02/05/2016 12:20 AM, Michael S. Tsirkin wrote: On Wed, Jan 13, 2016 at 02:50:01AM +0800, Xiao Guangrong wrote: Add nvdimm test, two tables are created which are NFIT and SSDT Max memory size and multiple slots are needed to enable NVDIMM which cause the primal SSDT table is also updated

Re: [Qemu-devel] [PATCH v2 00/11] NVDIMM ACPI: introduce the framework of QEMU emulated

2016-02-13 Thread Xiao Guangrong
On 02/05/2016 12:24 AM, Michael S. Tsirkin wrote: On Wed, Jan 13, 2016 at 02:49:59AM +0800, Xiao Guangrong wrote: This patchset is against commit 8a1be662a69 (virtio: fix error message for number of queues) on pci branch of Michael's git tree and can be found at:

Re: [Qemu-devel] [PATCH 1/3] block/backup: make backup cluster size configurable

2016-02-13 Thread Fam Zheng
On Fri, 02/12 18:06, John Snow wrote: > typedef struct CowRequest { > @@ -46,6 +43,8 @@ typedef struct BackupBlockJob { > CoRwlock flush_rwlock; > uint64_t sectors_read; > HBitmap *bitmap; > +int64_t cluster_size; > +int64_t sectors_per_cluster; I don't think it makes

Re: [Qemu-devel] [PATCH 2/3] block/backup: avoid copying less than full target clusters

2016-02-13 Thread Fam Zheng
On Fri, 02/12 18:06, John Snow wrote: > During incremental backups, if the target has a cluster size that is > larger than the backup cluster size and we are backing up to a target > that cannot (for whichever reason) pull clusters up from a backing image, > we may inadvertantly create unusable