Re: [Qemu-devel] [RFC PATCH v4 09/11] spapr: Support topologies with unfilled cores

2015-09-08 Thread Bharata B Rao
On Fri, Sep 04, 2015 at 10:44:57AM +0200, Thomas Huth wrote: > On 04/09/15 09:01, David Gibson wrote: > > On Thu, Aug 06, 2015 at 10:57:15AM +0530, Bharata B Rao wrote: > >> QEMU currently supports CPU topologies where there can be cores > >> which are not completely filled with all the threads as

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-08 Thread David kiarie
On Wed, Sep 9, 2015 at 9:47 AM, Valentine Sinitsyn wrote: > Hi all, > > > On 09.09.2015 09:23, David kiarie wrote: >> >> On Wed, Sep 9, 2015 at 12:35 AM, Jan Kiszka wrote: >>> >>> [thanks for forwarding, Peter] >>> >>> Hi Rita, >>> >>> On 2015-09-08 10:11, Peter Maydell wrote: On 7 Sept

Re: [Qemu-devel] [RFC PATCH v4 08/11] spapr: CPU hotplug support

2015-09-08 Thread Bharata B Rao
On Fri, Sep 04, 2015 at 04:58:38PM +1000, David Gibson wrote: > On Thu, Aug 06, 2015 at 10:57:14AM +0530, Bharata B Rao wrote: > > Support CPU hotplug via device-add command. Set up device tree > > entries for the hotplugged CPU core and use the exising EPOW event > > infrastructure to send CPU hot

Re: [Qemu-devel] [PATCH v13 5/5] hw/arm/virt: Add gic-version option to virt machine

2015-09-08 Thread Pavel Fedin
Hello! > This patch doesn't apply on latest git commit i.e. 298fae389 from Sep 7. > Can you please rebase? Strange, i have checked my history, and my patch should be on top of that. But, well, i will post rebased version today because anyway today it conflicted with trustzone support. But nee

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-08 Thread Valentine Sinitsyn
Hi all, On 09.09.2015 09:23, David kiarie wrote: On Wed, Sep 9, 2015 at 12:35 AM, Jan Kiszka wrote: [thanks for forwarding, Peter] Hi Rita, On 2015-09-08 10:11, Peter Maydell wrote: On 7 September 2015 at 22:31, Rita Sinha wrote: Hi Jan, I am interested in participating in next round of

Re: [Qemu-devel] [PATCH] linux-headers: Fix type cast warning for 64 bit MinGW-w64

2015-09-08 Thread Michael S. Tsirkin
On Tue, Sep 08, 2015 at 08:15:50PM +0100, Peter Maydell wrote: > On 8 September 2015 at 20:11, Stefan Weil wrote: > > Type casts from pointers to unsigned long don't work on 64 bit Windows > > because both types have different size. > > > > Compiler warning: > > > > include/standard-headers/linux/

Re: [Qemu-devel] [opnfv-tech-discuss] rfc: vhost user enhancements for vm2vm communication

2015-09-08 Thread Zhang, Yang Z
Claudio Fontana wrote on 2015-09-07: > Coming late to the party, > > On 31.08.2015 16:11, Michael S. Tsirkin wrote: >> Hello! >> During the KVM forum, we discussed supporting virtio on top >> of ivshmem. I have considered it, and came up with an alternative >> that has several advantages over that

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-08 Thread David kiarie
On Wed, Sep 9, 2015 at 8:01 AM, Rita Sinha wrote: > Hi David, > > Please find my response inline. > > >> >> Hi all, >> >> Most recent work is here >> http://lists.nongnu.org/archive/html/qemu-devel/2015-08/msg02759.html >> . Most the code is Qemu device boilerplate(so there are a ton of >> things

Re: [Qemu-devel] [PATCH RFC v5 30/32] qapi: New QMP command query-qmp-schema for QMP introspection

2015-09-08 Thread Markus Armbruster
Eric Blake writes: > On 09/07/2015 04:16 AM, Markus Armbruster wrote: >> qapi/introspect.json defines the introspection schema. It's designed >> for QMP introspection, but should do for similar uses, such as QGA. >> >> The introspection schema does not reflect all the rules and >> restrictions

Re: [Qemu-devel] [PATCH] spapr: Reduce advertised max LUNs for spapr_vscsi

2015-09-08 Thread Thomas Huth
On 09/09/15 03:22, David Gibson wrote: > The implementation of the PAPR paravirtual SCSI adapter currently > allows up to 32 LUNs (max_lun == 31). However the adapter isn't really > designed to support lots of devices - the PowerVM implementation only > ever puts one disk per vSCSI controller. Do

Re: [Qemu-devel] [Patch for-2.5 v2 3/6] Add new block driver interface to add/delete a BDS's child

2015-09-08 Thread Wen Congyang
On 09/08/2015 11:52 PM, Eric Blake wrote: > On 09/08/2015 03:10 AM, Wen Congyang wrote: > >>> Design-wise, I think we really want to have the add-child operation be >>> handed a pre-opened BDS, rather than the options dictionary to open the >>> BDS itself. That is, we should use the existing bloc

Re: [Qemu-devel] [PATCH 02/18] aio: rename bh_lock to list_lock

2015-09-08 Thread Fam Zheng
On Thu, 08/06 15:36, Paolo Bonzini wrote: > This will be used for AioHandlers too. There is going to be little > or no contention, so it is better to reuse the same lock. > > Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng > --- > async.c | 16 > include/bloc

Re: [Qemu-devel] [PATCH 01/18] iothread: release iothread around aio_poll

2015-09-08 Thread Fam Zheng
On Thu, 08/06 15:35, Paolo Bonzini wrote: > This is the first step towards having fine-grained critical sections in > dataplane threads, which resolves lock ordering problems between > address_space_* functions (which need the BQL when doing MMIO, even > after we complete RCU-based dispatch) and th

Re: [Qemu-devel] [PATCH v2] spapr_drc: don't allow 'empty' DRCs to be unisolated

2015-09-08 Thread David Gibson
On Tue, Sep 08, 2015 at 06:44:55PM -0500, Michael Roth wrote: > Logical resources start with allocation-state:UNUSABLE / > isolation-state:ISOLATED. During hotplug, guests will transition > them to allocate-state:USABLE, and then to isolate-state:UNISOLATED. > The former transition does not seem to

Re: [Qemu-devel] [FIX PATCH] spapr_drc: Return correct state for logical DR in entity_sense()

2015-09-08 Thread David Gibson
On Tue, Sep 08, 2015 at 05:03:25PM -0500, Michael Roth wrote: > Quoting Michael Roth (2015-09-08 16:03:56) > > Quoting David Gibson (2015-09-07 20:22:50) > > > On Mon, Sep 07, 2015 at 11:37:04AM +0530, Bharata B Rao wrote: > > > > When drmgr is run in the guest to add a device for which device_add

Re: [Qemu-devel] [RFC PATCH v4 04/11] cpus: Add a sync version of cpu_remove()

2015-09-08 Thread Bharata B Rao
On Fri, Sep 04, 2015 at 04:11:38PM +1000, David Gibson wrote: > On Thu, Aug 06, 2015 at 10:57:10AM +0530, Bharata B Rao wrote: > > This sync API will be used by the CPU hotplug code to wait for the CPU to > > completely get removed before flagging the failure to the device_add > > command. > > > >

Re: [Qemu-devel] [RFC PATCH v4 02/11] exec: Do vmstate unregistration from cpu_exec_exit()

2015-09-08 Thread Bharata B Rao
On Fri, Sep 04, 2015 at 04:03:43PM +1000, David Gibson wrote: > On Thu, Aug 06, 2015 at 10:57:08AM +0530, Bharata B Rao wrote: > > cpu_exec_init() does vmstate_register and register_savevm for the CPU > > device. > > These need to be undone from cpu_exec_exit(). These changes are needed to > > sup

Re: [Qemu-devel] [RFC PATCH v4 01/11] exec: Remove cpu from cpus list during cpu_exec_exit()

2015-09-08 Thread Bharata B Rao
On Fri, Sep 04, 2015 at 03:31:24PM +1000, David Gibson wrote: > On Thu, Aug 06, 2015 at 10:57:07AM +0530, Bharata B Rao wrote: > > CPUState *cpu gets added to the cpus list during cpu_exec_init(). It > > should be removed from cpu_exec_exit(). > > > > cpu_exec_init() is called from generic CPU::in

Re: [Qemu-devel] [PATCH 0/2] ACPI/arm-virt: add DBG2

2015-09-08 Thread Andrew Jones
On Wed, Sep 09, 2015 at 12:25:45PM +0800, Shannon Zhao wrote: > > > On 2015/9/8 21:04, Leif Lindholm wrote: > > On Tue, Sep 08, 2015 at 11:18:27AM +0800, Shannon Zhao wrote: > >> On 2015/9/7 22:23, Leif Lindholm wrote: > >>> The Debug Port Table 2 (DBG2) is mandated by the ARM Server Base Boot >

Re: [Qemu-devel] [PATCH] typofixes - v4 - https://github.com/vlajos/misspell_fixer

2015-09-08 Thread Stefan Weil
Am 08.09.2015 um 23:48 schrieb Peter Maydell: > On 8 September 2015 at 22:45, Veres Lajos wrote: >> Signed-off-by: Veres Lajos >> --- >> disas/i386.c|2 +- >> disas/s390.c|4 ++-- >> docs/specs/ppc-spapr-hcalls.txt |4 ++-- >> docs/writing-qmp-

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-08 Thread Rita Sinha
Hi David, Please find my response inline. > > Hi all, > > Most recent work is here > http://lists.nongnu.org/archive/html/qemu-devel/2015-08/msg02759.html > . Most the code is Qemu device boilerplate(so there are a ton of > things to add but I wanted to have the existing work merged first). > Th

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-08 Thread Rita Sinha
Hi Jan, Please find my response inline. > > For the Outreachy program, just like for GSoC, we need to find a good > topic that is sufficiently clear defined on program start and not worked > on in parallel during the runtime. There are still a number of open > topics in this area, e.g. around the

Re: [Qemu-devel] [PATCH 0/2] ACPI/arm-virt: add DBG2

2015-09-08 Thread Shannon Zhao
On 2015/9/8 21:04, Leif Lindholm wrote: > On Tue, Sep 08, 2015 at 11:18:27AM +0800, Shannon Zhao wrote: >> On 2015/9/7 22:23, Leif Lindholm wrote: >>> The Debug Port Table 2 (DBG2) is mandated by the ARM Server Base Boot >>> Requirements specification. Add the DBG2 table definitions, and set up >

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-08 Thread David kiarie
On Wed, Sep 9, 2015 at 12:35 AM, Jan Kiszka wrote: > [thanks for forwarding, Peter] > > Hi Rita, > > On 2015-09-08 10:11, Peter Maydell wrote: >> On 7 September 2015 at 22:31, Rita Sinha wrote: >>> Hi Jan, >>> >>> I am interested in participating in next round of Outreachy program >>> with AMD IO

Re: [Qemu-devel] [PATCH v2] spapr_drc: don't allow 'empty' DRCs to be unisolated

2015-09-08 Thread Bharata B Rao
On Tue, Sep 08, 2015 at 06:44:55PM -0500, Michael Roth wrote: > Logical resources start with allocation-state:UNUSABLE / > isolation-state:ISOLATED. During hotplug, guests will transition > them to allocate-state:USABLE, and then to isolate-state:UNISOLATED. > The former transition does not seem to

Re: [Qemu-devel] [FIX PATCH] spapr_drc: Return correct state for logical DR in entity_sense()

2015-09-08 Thread Bharata B Rao
On Tue, Sep 08, 2015 at 05:03:25PM -0500, Michael Roth wrote: > Quoting Michael Roth (2015-09-08 16:03:56) > > Quoting David Gibson (2015-09-07 20:22:50) > > > On Mon, Sep 07, 2015 at 11:37:04AM +0530, Bharata B Rao wrote: > > > > When drmgr is run in the guest to add a device for which device_add

Re: [Qemu-devel] [PATCHEW] Series failed testing

2015-09-08 Thread Fam Zheng
On Wed, 09/09 11:39, Patchew Jenkins wrote: > This series failed automatic testing, see attachment for the full log and > below for the tail. > (If you see a false alarm or anything unclear, please reply and help us > improve!) > > Started by an SCM change > Building in workspace /var/lib/jenkin

Re: [Qemu-devel] [PATCH COLO-Frame v9 00/32] COarse-grain LOck-stepping(COLO) Virtual Machines for Non-stop Service (FT)

2015-09-08 Thread zhanghailiang
Ping... Hi Juan & Amit, Could you please help review this series ? Since it is already comes v9, i really hope to get your feedback on this series :) Thanks, zhanghailiang On 2015/9/2 16:22, zhanghailiang wrote: This is the 9th version of COLO. Please Note that, this version is very differe

Re: [Qemu-devel] [PATCH v2 11/11] block: Only poll block layer fds in bdrv_aio_poll

2015-09-08 Thread Fam Zheng
On Wed, 07/29 14:03, Paolo Bonzini wrote: > > > On 29/07/2015 13:53, Fam Zheng wrote: > >> > Yes, though I think you'd end up reverting patches 10 and 11 in the end. > > We will add outer disable/enable pairs to prevent another threads's aio_poll > > from sneaking in between bdrv_aio_poll calls,

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Add Mount image file menu item

2015-09-08 Thread Programmingkid
On Sep 8, 2015, at 2:46 PM, Markus Armbruster wrote: > Programmingkid writes: > >> On Sep 8, 2015, at 12:17 PM, Peter Maydell wrote: >> >>> On 2 September 2015 at 01:56, Programmingkid >>> wrote: Add "Mount Image File..." and a "Eject Image File" menu items to cocoa interface. This

Re: [Qemu-devel] [PATCH v2 2/2] Add dynamic generation of module_block.h

2015-09-08 Thread Fam Zheng
On Tue, 09/08 15:53, Marc Marí wrote: > diff --git a/include/qemu/module_block.h b/include/qemu/module_block.h > deleted file mode 100644 > index d725db8..000 > --- a/include/qemu/module_block.h > +++ /dev/null > @@ -1,90 +0,0 @@ > -/* AUTOMATICALLY GENERATED, DO NOT MODIFY */ > -/* > - * QEMU

Re: [Qemu-devel] [PATCH 6/7] vhost-user: add multiple queue support

2015-09-08 Thread Yuanhan Liu
On Tue, Sep 08, 2015 at 03:22:30PM -0600, Eric Blake wrote: > On 09/08/2015 01:38 AM, Yuanhan Liu wrote: > > From: Ouyang Changchun > > > > This patch is initially based a patch from Nikolay Nikolaev. > > > > Here is the latest version for adding vhost-user multiple queue support, > > by creatin

[Qemu-devel] [Bug 1422307] Re: qemu-nbd corrupts files

2015-09-08 Thread Launchpad Bug Tracker
This bug was fixed in the package qemu - 2.0.0+dfsg-2ubuntu1.18 --- qemu (2.0.0+dfsg-2ubuntu1.18) trusty-proposed; urgency=medium * qemu-nbd-fix-vdi-corruption.patch: qemu-nbd: fix corruption while writing VDI volumes (LP: #1422307) -- Pierre Schweitzer Mon, 17 Aug 2015 11:4

[Qemu-devel] [PATCH] spapr: Reduce advertised max LUNs for spapr_vscsi

2015-09-08 Thread David Gibson
The implementation of the PAPR paravirtual SCSI adapter currently allows up to 32 LUNs (max_lun == 31). However the adapter isn't really designed to support lots of devices - the PowerVM implementation only ever puts one disk per vSCSI controller. More specifically, the Linux guest side vscsi dri

Re: [Qemu-devel] [PATCH v1 1/1] xlnx-zynqmp: Remove unnecessary brackets around error messages

2015-09-08 Thread Peter Crosthwaite
On Tue, Sep 8, 2015 at 5:32 PM, Alistair Francis wrote: > The errp and err variable have unnecessary brackets around them, > so remove the brackets. > > Signed-off-by: Alistair Francis Reviewed-by: Peter Crosthwaite > --- > > hw/arm/xlnx-zynqmp.c | 10 +- > 1 files changed, 5 insert

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 1/2] spapr: Add support for hwrng when available

2015-09-08 Thread Sam Bobroff
On Tue, Sep 08, 2015 at 07:38:12AM +0200, Thomas Huth wrote: > On 08/09/15 07:03, Sam Bobroff wrote: > > On Tue, Sep 01, 2015 at 12:53:26PM +0200, Thomas Huth wrote: > >> On 01/09/15 02:38, David Gibson wrote: > >>> On Mon, Aug 31, 2015 at 08:46:01PM +0200, Thomas Huth wrote: > From: Michael E

[Qemu-devel] [PATCH v3 3/3] i.MX: Add GPIO devices to i.MX25 SOC

2015-09-08 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois Reviewed-by: Peter Crosthwaite --- Changes since v1: * various coding style cleanup Changes since v2: * no change. hw/arm/fsl-imx25.c | 29 + include/hw/arm/fsl-imx25.h | 15 +++ 2 files changed, 44 in

[Qemu-devel] [PATCH v3 1/3] i.MX: Add GPIO device

2015-09-08 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * added "has-edge-sel" property * use extract64() and deposit64() in read/write icr access * set "number of GPIO pin" as a #define * reorganize functions in file to group them * various coding style cleanup * rename state ha

[Qemu-devel] [PATCH v3 2/3] i.MX: Add GPIO devices to i.MX31 SOC

2015-09-08 Thread Jean-Christophe Dubois
Signed-off-by: Jean-Christophe Dubois Reviewed-by: Peter Crosthwaite --- Changes since v1: * Use "has-edge-sel" property for i.MX31 * various coding style cleanup Changes since v2: * failing to set "has-edge-sel" is fatal. hw/arm/fsl-imx31.c | 30 ++

[Qemu-devel] [PATCH v3 0/3] i.MX: Add GPIO devices to i.MX SOC

2015-09-08 Thread Jean-Christophe Dubois
Add GPIO devices to i.MX31 and i.MX25 SOC Jean-Christophe Dubois (3): i.MX: Add GPIO device i.MX: Add GPIO devices to i.MX31 SOC i.MX: Add GPIO devices to i.MX25 SOC hw/arm/fsl-imx25.c | 29 hw/arm/fsl-imx31.c | 30 hw/gpio/Makefile.objs | 1 + hw/gpio/im

Re: [Qemu-devel] [PATCH v2 1/3] i.MX: Add GPIO device

2015-09-08 Thread Jean-Christophe DUBOIS
Le 07/09/2015 04:01, Peter Crosthwaite a écrit : On Sun, Sep 6, 2015 at 1:45 PM, Jean-Christophe Dubois wrote: Signed-off-by: Jean-Christophe Dubois --- Changes since V1: * added "has-edge-sel" property * use extract64() and deposit64() in read/write icr access * set "number of GPIO

[Qemu-devel] [PATCH v1 1/1] xlnx-zynqmp: Remove unnecessary brackets around error messages

2015-09-08 Thread Alistair Francis
The errp and err variable have unnecessary brackets around them, so remove the brackets. Signed-off-by: Alistair Francis --- hw/arm/xlnx-zynqmp.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c index 2955f3b..2185542

Re: [Qemu-devel] [PATCH RESEND v6 0/4] xlnx-zynqmp: Connect the AHCI SATA device

2015-09-08 Thread Alistair Francis
On Tue, Sep 8, 2015 at 8:00 AM, Peter Maydell wrote: > On 4 September 2015 at 16:17, Alistair Francis > wrote: >> This series connects the AHCI SATA device to the ZynqMP >> machine. It requires a restructure of the AHCI file to >> make the AHCI state struct visible. It also requires a >> small ch

Re: [Qemu-devel] [PATCH] spapr_drc: don't allow 'empty' DRCs to be unisolated

2015-09-08 Thread Michael Roth
Quoting Michael Roth (2015-09-08 17:03:59) > Logical resources start with allocation-state:UNUSABLE / > isolation-state:ISOLATED. During hotplug, guests will transition > them to allocate-state:USABLE, and then to isolate-state:UNISOLATED. > The former transition does not seem to have any failure p

[Qemu-devel] [PATCH v2] spapr_drc: don't allow 'empty' DRCs to be unisolated

2015-09-08 Thread Michael Roth
Logical resources start with allocation-state:UNUSABLE / isolation-state:ISOLATED. During hotplug, guests will transition them to allocate-state:USABLE, and then to isolate-state:UNISOLATED. The former transition does not seem to have any failure path for cases where a DRC does not have any resourc

[Qemu-devel] [PATCH RFC 13/14] qemu-char: Add qemu_chr_disconnect to close a fd accepted by listen fd

2015-09-08 Thread marcandre . lureau
From: Tetsuya Mukawa The patch introduces qemu_chr_disconnect(). The function is used for closing a fd accepted by listen fd. Though we already have qemu_chr_delete(), but it closes not only accepted fd but also listen fd. This new function is used when we still want to keep listen fd. Signed-of

[Qemu-devel] [PATCH RFC 12/14] vhost-user: add shutdown support

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- docs/specs/vhost-user.txt | 15 +++ hw/virtio/vhost-user.c| 30 +- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user.txt index

[Qemu-devel] [PATCH RFC 06/14] vhost-net: keep VIRTIO_NET_F_STATUS for vhost-user

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau Even if slave does not declare VIRTIO_NET_F_STATUS, we can keep this feature enabled as it is driven by qemu. Signed-off-by: Marc-André Lureau --- hw/net/vhost_net.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index 9850520

[Qemu-devel] [PATCH RFC 11/14] vhost-user: add slave-fd support

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau Learn to give a socket to the slave to let him make requests to the master. Signed-off-by: Marc-André Lureau --- docs/specs/vhost-user.txt | 23 +++ hw/virtio/vhost-user.c| 71 ++- 2 files changed, 93 insertion

[Qemu-devel] [PATCH RFC 14/14] test: start vhost-user reconnect test

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau Check that SLAVE_FD & SHUTDOWN message work and that the master asked for the ring read status. Signed-off-by: Marc-André Lureau --- tests/Makefile | 2 +- tests/vhost-user-test.c | 168 2 files changed, 155 in

[Qemu-devel] [PATCH RFC 09/14] vhost-user: add vhost_user to hold the chr

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau Next patches will add more fields to the structure Signed-off-by: Marc-André Lureau --- hw/virtio/vhost-user.c | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index b2f46a9..2875b69

[Qemu-devel] [PATCH RFC 07/14] virtio-net: enable tx notification if up and vhost started

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau When vhost is restarted, make sure the tx notification is on. Signed-off-by: Marc-André Lureau --- hw/net/virtio-net.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 8d28e45..d494c45 100644 --- a/hw/net/virtio-net

[Qemu-devel] [PATCH RFC 10/14] qemu-char: add qemu_chr_free()

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau If a chardev is allowed to be created outside of QMP, then it must be also possible to free it. This is useful for ivshmem that creates chardev anonymously and must be able to free them. Signed-off-by: Marc-André Lureau Acked-by: Paolo Bonzini --- include/sysemu/char.h

[Qemu-devel] [PATCH RFC 05/14] qemu-char: make tcp_chr_disconnect() reentrant-safe

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau During CHR_EVENT_CLOSED, the function could be reentered, make this case safe. Signed-off-by: Marc-André Lureau --- qemu-char.c | 4 1 file changed, 4 insertions(+) diff --git a/qemu-char.c b/qemu-char.c index d34bfd1..c37a9f9 100644 --- a/qemu-char.c +++ b/qemu-c

[Qemu-devel] [PATCH RFC 08/14] vhost: add vhost_dev stop callback

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau vhost backend may want to stop the device, for example if it wants to restart itself (translates to a link down for vhost-net). Signed-off-by: Marc-André Lureau --- hw/net/vhost_net.c| 13 + include/hw/virtio/vhost.h | 4 2 files changed, 17 in

[Qemu-devel] [PATCH RFC 03/14] qemu-char: avoid potential double-free

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau If tcp_set_msgfds() is called several time with NULL fds, this could lead to double-free. Signed-off-by: Marc-André Lureau --- qemu-char.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-char.c b/qemu-char.c index d956f8d..bc37628 100644 --- a/qemu-char.c +++ b

[Qemu-devel] [PATCH RFC 01/14] vhost-user: Add ability to know vhost-user backend disconnection

2015-09-08 Thread marcandre . lureau
From: Tetsuya Mukawa Current QEMU cannot detect vhost-user backend disconnection. The patch adds ability to know it. To know disconnection, add watcher to detect G_IO_HUP event. When G_IO_HUP event is detected, the disconnected socket will be read to cause a CHR_EVENT_CLOSED. Signed-off-by: Tets

[Qemu-devel] [PATCH RFC 04/14] qemu-char: remove all msgfds on disconnect

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau Disconnect should reset context. Signed-off-by: Marc-André Lureau --- qemu-char.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-char.c b/qemu-char.c index bc37628..d34bfd1 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2846,6 +2846,7 @@ static void tcp_chr_di

[Qemu-devel] [PATCH RFC 00/14] vhost-user: shutdown and reconnection

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau In a previous series "Add feature to start QEMU without vhost-user backend", Tetsuya Mukawa proposed to allow the vhost-user backend to disconnect and reconnect. However, Michael Tsirkin pointed out that you can't do that without extra care, because the guest and hyperviso

[Qemu-devel] [PATCH RFC 02/14] vhost-user: remove useless is_server field

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- net/vhost-user.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/vhost-user.c b/net/vhost-user.c index 266b54d..5d24129 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -26,7 +26,6 @@ typedef struct VhostUserState { t

Re: [Qemu-devel] [Qemu-ppc] target-ppc: Fix SRR0 when taking unaligned exceptions

2015-09-08 Thread Benjamin Herrenschmidt
On Thu, 2015-07-02 at 14:44 +1000, Anton Blanchard wrote: > We are setting SRR0 to the instruction before the one causing the > unaligned exception. A quick testcase: > ../.. > p_helper.c b/target-ppc/excp_helper.c > index b803475..4250106 100644 > --- a/target-ppc/excp_helper.c > +++ b/target-p

[Qemu-devel] [Bug 638955] Re: emulated netcards don't work with recent sunos kernel

2015-09-08 Thread Jan Vlug
See also bug #1395217 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/638955 Title: emulated netcards don't work with recent sunos kernel Status in QEMU: New Bug description: hi there, i'm u

[Qemu-devel] [Bug 1395217] Re: Networking in qemu 2.0.0 and beyond is not compatible with Open Solaris (Illumos) 5.11

2015-09-08 Thread Jan Vlug
See also bug #638955 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1395217 Title: Networking in qemu 2.0.0 and beyond is not compatible with Open Solaris (Illumos) 5.11 Status in QEMU: New Bu

[Qemu-devel] [PATCH] spapr_drc: don't allow 'empty' DRCs to be unisolated

2015-09-08 Thread Michael Roth
Logical resources start with allocation-state:UNUSABLE / isolation-state:ISOLATED. During hotplug, guests will transition them to allocate-state:USABLE, and then to isolate-state:UNISOLATED. The former transition does not seem to have any failure path for cases where a DRC does not have any resourc

Re: [Qemu-devel] [FIX PATCH] spapr_drc: Return correct state for logical DR in entity_sense()

2015-09-08 Thread Michael Roth
Quoting Michael Roth (2015-09-08 16:03:56) > Quoting David Gibson (2015-09-07 20:22:50) > > On Mon, Sep 07, 2015 at 11:37:04AM +0530, Bharata B Rao wrote: > > > When drmgr is run in the guest to add a device for which device_add > > > hasn't been issued in QEMU, configure-connector call fails. > >

Re: [Qemu-devel] [PATCH] typofixes - v4 - https://github.com/vlajos/misspell_fixer

2015-09-08 Thread Peter Maydell
On 8 September 2015 at 22:45, Veres Lajos wrote: > Signed-off-by: Veres Lajos > --- > disas/i386.c|2 +- > disas/s390.c|4 ++-- > docs/specs/ppc-spapr-hcalls.txt |4 ++-- > docs/writing-qmp-commands.txt |2 +- > hw/audio/fmopl.c

[Qemu-devel] [PATCH] typofixes - v4 - https://github.com/vlajos/misspell_fixer

2015-09-08 Thread Veres Lajos
Signed-off-by: Veres Lajos --- disas/i386.c|2 +- disas/s390.c|4 ++-- docs/specs/ppc-spapr-hcalls.txt |4 ++-- docs/writing-qmp-commands.txt |2 +- hw/audio/fmopl.c|2 +- hw/core/qdev.c |2 +- hw/c

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] iotests: Warn if python subprocess is killed

2015-09-08 Thread John Snow
On 09/08/2015 05:38 PM, Max Reitz wrote: > On 08.09.2015 23:37, John Snow wrote: >> >> >> On 09/08/2015 05:29 PM, Max Reitz wrote: >>> On 08.09.2015 23:25, John Snow wrote: On 08/31/2015 03:05 PM, Max Reitz wrote: > Currently, if a subprocess of a python test (i.e. qemu-io,

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] iotests: Warn if python subprocess is killed

2015-09-08 Thread Max Reitz
On 08.09.2015 23:37, John Snow wrote: > > > On 09/08/2015 05:29 PM, Max Reitz wrote: >> On 08.09.2015 23:25, John Snow wrote: >>> >>> >>> On 08/31/2015 03:05 PM, Max Reitz wrote: Currently, if a subprocess of a python test (i.e. qemu-io, qemu-img, or qemu) receives a signal and is subse

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] iotests: Warn if python subprocess is killed

2015-09-08 Thread John Snow
On 09/08/2015 05:29 PM, Max Reitz wrote: > On 08.09.2015 23:25, John Snow wrote: >> >> >> On 08/31/2015 03:05 PM, Max Reitz wrote: >>> Currently, if a subprocess of a python test (i.e. qemu-io, >>> qemu-img, or qemu) receives a signal and is subsequently >>> aborted, this is not logged. >>> >>

Re: [Qemu-devel] Aspirant for AMD IOMMU emulation project for Outreachy

2015-09-08 Thread Jan Kiszka
[thanks for forwarding, Peter] Hi Rita, On 2015-09-08 10:11, Peter Maydell wrote: > On 7 September 2015 at 22:31, Rita Sinha wrote: >> Hi Jan, >> >> I am interested in participating in next round of Outreachy program >> with AMD IOMMU emulation project. >> >> >> I have worked on BIOS projects wh

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] iotests: Warn if python subprocess is killed

2015-09-08 Thread Max Reitz
On 08.09.2015 23:25, John Snow wrote: > > > On 08/31/2015 03:05 PM, Max Reitz wrote: >> Currently, if a subprocess of a python test (i.e. qemu-io, qemu-img, or >> qemu) receives a signal and is subsequently aborted, this is not logged. >> >> This patch makes python tests always check the exit cod

Re: [Qemu-devel] [Qemu-block] [PATCH 2/2] iotests: Warn if python subprocess is killed

2015-09-08 Thread John Snow
On 08/31/2015 03:05 PM, Max Reitz wrote: > Currently, if a subprocess of a python test (i.e. qemu-io, qemu-img, or > qemu) receives a signal and is subsequently aborted, this is not logged. > > This patch makes python tests always check the exit code of these > subprocesses, and emit a message i

Re: [Qemu-devel] [PATCH 6/7] vhost-user: add multiple queue support

2015-09-08 Thread Eric Blake
On 09/08/2015 01:38 AM, Yuanhan Liu wrote: > From: Ouyang Changchun > > This patch is initially based a patch from Nikolay Nikolaev. > > Here is the latest version for adding vhost-user multiple queue support, > by creating a nc and vhost_net pair for each queue. > Reviewing grammar and interf

Re: [Qemu-devel] [PATCH v4 29/38] blockdev: Add blockdev-insert-medium

2015-09-08 Thread Max Reitz
On 08.09.2015 11:13, Wen Congyang wrote: > On 07/21/2015 01:45 AM, Max Reitz wrote: >> And a helper function for that, which directly takes a pointer to the >> BDS to be inserted instead of its node-name (which will be used for >> implementing 'change' using blockdev-insert-medium). >> >> Signed-of

[Qemu-devel] Mac OS 9 updates

2015-09-08 Thread Programmingkid
Are we going to see any more GSoC 2015 updates?

[Qemu-devel] [PULL 05/20] hw/intc/arm_gic: Actually set the active bits for active interrupts

2015-09-08 Thread Peter Maydell
Although we were correctly handling interrupts becoming active and then inactive, we weren't actually exposing this to the guest by setting the 'active' flag for the interrupt, so reads of GICD_ICACTIVERn and GICD_ISACTIVERn would generally incorrectly return zeroes. Correct this oversight. Signed

Re: [Qemu-devel] where can i customize rbd object size?

2015-09-08 Thread Josh Durgin
On 09/03/2015 09:48 AM, Stefan Hajnoczi wrote: On Wed, Aug 19, 2015 at 03:39:20PM +0800, Jaze Lee wrote: Hello, qemu-img convert -f qcow2 Trove---mysql-5.6---2015-07-16.qcow2 -O raw rbd:openstack-00/8205d01a-874c-44c0-b114-1c03821fcc24:conf=/etc/ceph/ceph.conf How can i specify the ob

Re: [Qemu-devel] [PATCH v1 05/10] target-arm: Add VTTBR_EL2

2015-09-08 Thread Edgar E. Iglesias
On Tue, Sep 08, 2015 at 03:27:05PM +0100, Peter Maydell wrote: > On 3 September 2015 at 21:14, Edgar E. Iglesias > wrote: > > From: "Edgar E. Iglesias" > > > > Signed-off-by: Edgar E. Iglesias > > --- > > target-arm/cpu.h| 1 + > > target-arm/helper.c | 34 -

Re: [Qemu-devel] [FIX PATCH] spapr_drc: Return correct state for logical DR in entity_sense()

2015-09-08 Thread Michael Roth
Quoting Michael Roth (2015-09-08 16:03:56) > Quoting David Gibson (2015-09-07 20:22:50) > > On Mon, Sep 07, 2015 at 11:37:04AM +0530, Bharata B Rao wrote: > > > When drmgr is run in the guest to add a device for which device_add > > > hasn't been issued in QEMU, configure-connector call fails. > >

Re: [Qemu-devel] [FIX PATCH] spapr_drc: Return correct state for logical DR in entity_sense()

2015-09-08 Thread Michael Roth
Quoting David Gibson (2015-09-07 20:22:50) > On Mon, Sep 07, 2015 at 11:37:04AM +0530, Bharata B Rao wrote: > > When drmgr is run in the guest to add a device for which device_add > > hasn't been issued in QEMU, configure-connector call fails. > > When configure-connector call fails, the guest woul

[Qemu-devel] [PULL 08/20] hw/intc/arm_gic_common: Configure IRQs as NS if doing direct NS kernel boot

2015-09-08 Thread Peter Maydell
If we directly boot a kernel in NonSecure on a system where the GIC supports the security extensions then we must cause the GIC to configure its interrupts into group 1 (NonSecure) rather than the usual group 0, and with their initial priority set to the highest NonSecure priority rather than the u

[Qemu-devel] [PULL 0/19] xen-2015-09-08-tag

2015-09-08 Thread Stefano Stabellini
The following changes since commit 8611280505119e296757a60711a881341603fa5a: target-microblaze: Use setcond for pcmp* (2015-09-08 08:49:33 +0200) are available in the git repository at: git://xenbits.xen.org/people/sstabellini/qemu-dm.git tags/xen-2015-09-08-tag for you to fetch changes up

[Qemu-devel] [PATCH v2 4/6] xen: use errno instead of rc for xc_domain_add_to_physmap

2015-09-08 Thread Konrad Rzeszutek Wilk
In Xen 4.6 commit cd2f100f0f61b3f333d52d1737dd73f02daee592 "libxc: Fix do_memory_op to return negative value on errors" made the libxc API less odd-ball: On errors, return value is -1 and error code is in errno. On success the return value is either 0 or an positive value. Since we could be runnin

[Qemu-devel] [PATCH v2 04/10] xen/pt: Remove XenPTReg->data field.

2015-09-08 Thread Konrad Rzeszutek Wilk
We do not want to have two entries to cache the guest configuration registers: XenPTReg->data and dev.config. Instead we want to use only the dev.config. To do without much complications we rip out the ->data field and replace it with an pointer to the dev.config. This way we have the type-checkin

[Qemu-devel] [PATCH v7 4/5] qmp/hmp: Add throttle ratio to query-migrate and info migrate

2015-09-08 Thread Jason J. Herne
Report throttle percentage in info migrate and query-migrate responses when cpu throttling is active. Signed-off-by: Jason J. Herne Reviewed-by: Dr. David Alan Gilbert --- hmp.c | 5 + migration/migration.c | 5 + qapi-schema.json | 7 ++- 3 files changed, 16 in

Re: [Qemu-devel] [PATCH] typofixes - v3 - https://github.com/vlajos/misspell_fixer

2015-09-08 Thread Peter Maydell
On 8 September 2015 at 21:01, Veres Lajos wrote: > Signed-off-by: Veres Lajos > --- > disas/i386.c|2 +- > disas/s390.c|4 ++-- > docs/specs/ppc-spapr-hcalls.txt |4 ++-- > docs/writing-qmp-commands.txt |2 +- > hw/audio/fmopl.c

[Qemu-devel] [PATCH] specs/vhost-user.txt: fix name of messages

2015-09-08 Thread marcandre . lureau
From: Marc-André Lureau Signed-off-by: Marc-André Lureau --- docs/specs/vhost-user.txt | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user.txt index 0322bcf..1bc6adb 100644 --- a/docs/specs/vhost-user.txt +++ b

Re: [Qemu-devel] [PATCH 1/2] qcow2: Make size_to_clusters() return int64_t

2015-09-08 Thread Max Reitz
On 08.09.2015 22:22, Eric Blake wrote: > On 09/08/2015 02:09 PM, Max Reitz wrote: >> Sadly, some images may have more clusters than what can be represented >> using a plain int. We should be prepared for that case (in >> qcow2_check_refcounts() we actually were trying to catch that case, but >> sin

Re: [Qemu-devel] [RFC 00/20] Do away with TB retranslation

2015-09-08 Thread Peter Maydell
On 8 September 2015 at 20:28, Richard Henderson wrote: > On 09/08/2015 12:06 PM, Peter Maydell wrote: >> On 8 September 2015 at 20:00, Richard Henderson wrote: >>> On 09/08/2015 11:56 AM, Peter Maydell wrote: My sparc test image (which is just the 32-bit debian from Aurelien's website)

Re: [Qemu-devel] [PATCH 1/2] qcow2: Make size_to_clusters() return int64_t

2015-09-08 Thread Eric Blake
On 09/08/2015 02:09 PM, Max Reitz wrote: > Sadly, some images may have more clusters than what can be represented > using a plain int. We should be prepared for that case (in > qcow2_check_refcounts() we actually were trying to catch that case, but > since size_to_clusters() truncated the returned

Re: [Qemu-devel] [PATCH 2/2] iotests: Add test for checking large image files

2015-09-08 Thread Eric Blake
On 09/08/2015 02:09 PM, Max Reitz wrote: > Add a test for checking a qcow2 file with a multiple of 2^32 clusters. > > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/138 | 73 > ++ > tests/qemu-iotests/138.out | 9 ++ > tests/qemu-iotests

Re: [Qemu-devel] [PATCH 1/2] qcow2: Make size_to_clusters() return int64_t

2015-09-08 Thread Max Reitz
On 08.09.2015 22:09, Max Reitz wrote: > Sadly, some images may have more clusters than what can be represented > using a plain int. We should be prepared for that case (in > qcow2_check_refcounts() we actually were trying to catch that case, but > since size_to_clusters() truncated the returned val

[Qemu-devel] [PATCH 2/2] iotests: Add test for checking large image files

2015-09-08 Thread Max Reitz
Add a test for checking a qcow2 file with a multiple of 2^32 clusters. Signed-off-by: Max Reitz --- tests/qemu-iotests/138 | 73 ++ tests/qemu-iotests/138.out | 9 ++ tests/qemu-iotests/group | 1 + 3 files changed, 83 insertions(+) create

[Qemu-devel] [PATCH 1/2] qcow2: Make size_to_clusters() return int64_t

2015-09-08 Thread Max Reitz
Sadly, some images may have more clusters than what can be represented using a plain int. We should be prepared for that case (in qcow2_check_refcounts() we actually were trying to catch that case, but since size_to_clusters() truncated the returned value, that check never did anything useful). Si

[Qemu-devel] [PATCH 0/2] qcow2: Make size_to_clusters() return int64_t

2015-09-08 Thread Max Reitz
Some callers actually expected that function to return int64_t. As it turns out, it doesn't. Fix that. Max Reitz (2): qcow2: Make size_to_clusters() return int64_t iotests: Add test for checking large image files block/qcow2-cluster.c | 20 +++-- block/qcow2.h | 2

Re: [Qemu-devel] [PATCH RFC v5 30/32] qapi: New QMP command query-qmp-schema for QMP introspection

2015-09-08 Thread Eric Blake
On 09/07/2015 04:16 AM, Markus Armbruster wrote: > qapi/introspect.json defines the introspection schema. It's designed > for QMP introspection, but should do for similar uses, such as QGA. > > The introspection schema does not reflect all the rules and > restrictions that apply to QAPI schemata.

[Qemu-devel] [PATCH] typofixes - v3 - https://github.com/vlajos/misspell_fixer

2015-09-08 Thread Veres Lajos
Signed-off-by: Veres Lajos --- disas/i386.c|2 +- disas/s390.c|4 ++-- docs/specs/ppc-spapr-hcalls.txt |4 ++-- docs/writing-qmp-commands.txt |2 +- hw/audio/fmopl.c|2 +- hw/core/qdev.c |2 +- hw/c

[Qemu-devel] [PULL 15/20] target-arm: Add AArch64 access to PAR_EL1

2015-09-08 Thread Peter Maydell
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Reviewed-by: Alistair Francis Message-id: 1441311266-8644-4-git-send-email-edgar.igles...@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- target-arm/helper.c | 6 ++ 1 file changed, 6 insertions(+) diff --g

[Qemu-devel] [PATCH v2 05/10] xen/pt: Log xen_host_pci_get in two init functions

2015-09-08 Thread Konrad Rzeszutek Wilk
To help with troubleshooting in the field. Acked-by: Stefano Stabellini Signed-off-by: Konrad Rzeszutek Wilk --- hw/xen/xen_pt_config_init.c | 9 + 1 file changed, 9 insertions(+) diff --git a/hw/xen/xen_pt_config_init.c b/hw/xen/xen_pt_config_init.c index 727f814..67ecc71 100644 --- a

  1   2   3   4   >