[Qemu-devel] [PATCH 0/2] qga: non-blocking fd cleanups

2015-10-07 Thread Denis V. Lunev
This patchset is reincarnation of one patch discussed in the scope of QEMU 2.4 and rejected for that time. Actually we should use non-blocking descriptors in QGA on Windows in guest-file-open exactly like was done for Posix. Signed-off-by: Denis V. Lunev Signed-off-by: Olga Krishtal Reviewed-by:

Re: [Qemu-devel] [PATCH v5 1/1] block/gluster: add support for multiple gluster backup volfile servers

2015-10-07 Thread Peter Krempa
[ trimmed the CC list for this ] On Wed, Oct 07, 2015 at 06:15:59 -0400, Prasanna Kalever wrote: > Hi Peter & Kevin, > > Thanks for your detailed review comments. I shall try to incorporate these > changes as a next patch-set. > > - Prasanna Kumar Kalever > > Please don't top post on technica

[Qemu-devel] [PATCH 3/5] qga: handle possible SIGPIPE in guest-file-write

2015-10-07 Thread Denis V. Lunev
qemu-ga should not exit on guest-file-write to pipe without read end but proper error code should be returned. The behavior of the spawned process should be default thus SIGPIPE processing should be reset to default after fork() but before exec(). Signed-off-by: Denis V. Lunev Signed-off-by: Yuri

Re: [Qemu-devel] [PATCH v3 6/6] tcg/mips: Support r6 SEL{NE, EQ}Z instead of MOVN/MOVZ

2015-10-07 Thread James Hogan
On Wed, Oct 07, 2015 at 08:46:30PM +1100, Richard Henderson wrote: > On 10/02/2015 10:24 PM, James Hogan wrote: > > Extend MIPS movcond implementation to support the SELNEZ/SELEQZ > > instructions introduced in MIPS r6 (where MOVN/MOVZ have been removed). > > > > Whereas the "MOVN/MOVZ rd, rs, rt"

Re: [Qemu-devel] [PATCH v3 6/6] tcg/mips: Support r6 SEL{NE, EQ}Z instead of MOVN/MOVZ

2015-10-07 Thread Leon Alrae
On 07/10/15 10:46, Richard Henderson wrote: > Leon, do you want to take this as a mips maintainer, or shall I as tcg > maintainer? I thought this would go via Aurelien's mips tcg-backend queue. But if Aurelien is busy, could you take them? (at the moment I don't have anything handy to test the mip

Re: [Qemu-devel] [PATCH v3 1/9] target-arm: Add HPFAR_EL2

2015-10-07 Thread Alex Bennée
Edgar E. Iglesias writes: > From: "Edgar E. Iglesias" > > Signed-off-by: Edgar E. Iglesias > --- > target-arm/cpu.h| 1 + > target-arm/helper.c | 12 > 2 files changed, 13 insertions(+) > > diff --git a/target-arm/cpu.h b/target-arm/cpu.h > index cc1578c..895f2c2 100644 > --

Re: [Qemu-devel] [RFC PATCH] qapi: split visit_end_struct() into pieces

2015-10-07 Thread Markus Armbruster
Eric Blake writes: > We want to call the various visit_end_*() functions unconditionally, > so that visitors can release resources tied up since the matching > visit_start_*(). But we also have a requirement for detecting when > an input visitor did not consume everything, so the code allowed >

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-07 Thread Andreas Färber
Am 06.10.2015 um 21:18 schrieb marcandre.lur...@redhat.com: > From: Marc-André Lureau > > The following changes since commit 5fdb4671b08e0d1631447e81348b2b50a6b85bf7: > > Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into > staging (2015-10-06 13:42:33 +0100) > > are

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-07 Thread Marc-André Lureau
Hi Andreas - Original Message - > Am 06.10.2015 um 21:18 schrieb marcandre.lur...@redhat.com: > > From: Marc-André Lureau > > > > The following changes since commit > > 5fdb4671b08e0d1631447e81348b2b50a6b85bf7: > > > > Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-requ

Re: [Qemu-devel] [PATCH v3 2/9] target-arm: Add computation of starting level for S2 PTW

2015-10-07 Thread Alex Bennée
Edgar E. Iglesias writes: > From: "Edgar E. Iglesias" > > The starting level for S2 pagetable walks is computed > differently from the S1 starting level. Implement the S2 > variant. > > Signed-off-by: Edgar E. Iglesias > --- > target-arm/helper.c | 39 +++ >

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-07 Thread Andreas Färber
Am 07.10.2015 um 14:16 schrieb Marc-André Lureau: > - Original Message - >> Am 06.10.2015 um 21:18 schrieb marcandre.lur...@redhat.com: >>> Marc-André Lureau (45): >> [...] >>> tests: add ivshmem qtest >> >> I had NAK'ed this patch in v1 and it has not been fixed. If this pull >> gets

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-07 Thread Andrew Jones
On Wed, Oct 07, 2015 at 08:16:40AM -0400, Marc-André Lureau wrote: > > Hi Andreas > > - Original Message - > > Am 06.10.2015 um 21:18 schrieb marcandre.lur...@redhat.com: > > > From: Marc-André Lureau > > > > > > The following changes since commit > > > 5fdb4671b08e0d1631447e81348b2b50a

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-07 Thread Marc-André Lureau
Hi - Original Message - > Am 07.10.2015 um 14:16 schrieb Marc-André Lureau: > > - Original Message - > >> Am 06.10.2015 um 21:18 schrieb marcandre.lur...@redhat.com: > >>> Marc-André Lureau (45): > >> [...] > >>> tests: add ivshmem qtest > >> > >> I had NAK'ed this patch in v

Re: [Qemu-devel] [RFC PATCH V7 00/19] Multithread TCG.

2015-10-07 Thread Claudio Fontana
Hello Frederic, On 11.08.2015 08:27, Frederic Konrad wrote: > On 11/08/2015 08:15, Benjamin Herrenschmidt wrote: >> On Mon, 2015-08-10 at 17:26 +0200, fred.kon...@greensocs.com wrote: >>> From: KONRAD Frederic >>> >>> This is the 7th round of the MTTCG patch series. >>> >>> >>> It can be cloned f

Re: [Qemu-devel] [PATCH] docs: update the usage example of "dtrace" backend in tracing.txt

2015-10-07 Thread Ján Tomko
On Fri, Sep 11, 2015 at 02:58:50PM +0800, Lin Ma wrote: > The usage example of dtrace is quite ancient, We have tracetool.py with > different parameters instead of the original tracetool shell script for > a long time, So update the old information. > > Signed-off-by: Lin Ma > --- > docs/tracing

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-07 Thread Andreas Färber
Drew, Am 07.10.2015 um 14:42 schrieb Andrew Jones: > On Wed, Oct 07, 2015 at 08:16:40AM -0400, Marc-André Lureau wrote: >> - Original Message - >>> Am 06.10.2015 um 21:18 schrieb marcandre.lur...@redhat.com: Marc-André Lureau (45): >>> [...] tests: add ivshmem qtest >>> >>>

Re: [Qemu-devel] [RFC PATCH] qapi: split visit_end_struct() into pieces

2015-10-07 Thread Markus Armbruster
Markus Armbruster writes: > Eric Blake writes: [...] >> diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c >> index c419b17..48867c4 100644 >> --- a/hw/virtio/virtio-balloon.c >> +++ b/hw/virtio/virtio-balloon.c >> @@ -132,14 +132,16 @@ static void balloon_stats_get_all(Object

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Pavel Fedin
Hello! > ivshmem is getting a big reboot right now. See this series > "[PATCH v5 00/48] ivshmem improvements". Part of that work > is to better support sharing huge pages. I see there's a PULL, and i was waiting for it to be merged in order to test. But, is it going to happen? I see there's so

Re: [Qemu-devel] [PATCH v13 02/10] init/cleanup of netfilter object

2015-10-07 Thread Markus Armbruster
Yang Hongyang writes: > Add a netfilter object based on QOM. > > A netfilter is attached to a netdev, captures all network packets > that pass through the netdev. When we delete the netdev, we also > delete the netfilter object attached to it, because if the netdev is > removed, the filter which

Re: [Qemu-devel] [PATCH v13 09/10] netfilter: add a netbuffer filter

2015-10-07 Thread Markus Armbruster
Yang Hongyang writes: > This filter is to buffer/release packets. Can be used when using > MicroCheckpointing or other Remus like VM FT solutions. > You can also use it to simulate network delay. Would be nice to mention this doesn't actually delay individual packets. Perhaps You can also u

Re: [Qemu-devel] [PULL 00/48] ivshmem series

2015-10-07 Thread Marc-André Lureau
Hi - Original Message - > Drew, > > Am 07.10.2015 um 14:42 schrieb Andrew Jones: > > On Wed, Oct 07, 2015 at 08:16:40AM -0400, Marc-André Lureau wrote: > >> - Original Message - > >>> Am 06.10.2015 um 21:18 schrieb marcandre.lur...@redhat.com: > Marc-André Lureau (45): > >>>

Re: [Qemu-devel] [PATCH v4 2/3] pci: Update pci_regs header

2015-10-07 Thread Marcel Apfelbaum
On 09/12/2015 03:36 PM, Knut Omang wrote: Merge in new definitions from kernel v4.2 Adds definition necessary to support emulated SR/IOV. In the meantime Paolo updated this header to 4.3-RC1, is this patch still needed? Thanks, Marcel Signed-off-by: Knut Omang --- include/standard-heade

Re: [Qemu-devel] [PATCH v5 1/4] Add new block driver interface to add/delete a BDS's child

2015-10-07 Thread Alberto Garcia
On Tue 22 Sep 2015 09:44:19 AM CEST, Wen Congyang wrote: > In some cases, we want to take a quorum child offline, and take > another child online. > > Signed-off-by: Wen Congyang > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > Reviewed-by: Eric Blake > +void bdrv_add_child(BlockDriv

Re: [Qemu-devel] [PATCH v4 3/3] pcie: Add support for Single Root I/O Virtualization (SR/IOV)

2015-10-07 Thread Marcel Apfelbaum
On 09/17/2015 05:10 PM, Knut Omang wrote: On Thu, 2015-09-17 at 14:49 +0300, Marcel Apfelbaum wrote: On 09/12/2015 03:36 PM, Knut Omang wrote: This patch provides the building blocks for creating an SR/IOV PCIe Extended Capability header and register/unregister SR/IOV Virtual Functions. Signed

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Marc-André Lureau
Hi On Wed, Oct 7, 2015 at 3:13 PM, Pavel Fedin wrote: > I see there's a PULL, and i was waiting for it to be merged in order to > test. But, is it going to > happen? I see there's some strong authorship-related conflict around it. The authorship conflict is related to a single commit that coul

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Pavel Fedin
Hello! > The authorship conflict is related to a single commit that could > easily be dropped in the next pull request. It's worth it if you could > test before it before it's actually merge! Ok. In this case a single question. How to configure qemu to use ivshmem with the series. I have seen

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Marc-André Lureau
Hi On Wed, Oct 7, 2015 at 3:50 PM, Pavel Fedin wrote: > Ok. In this case a single question. How to configure qemu to use ivshmem > with the series. I have seen that "ivshmem can now use host memory backend", > but how to set it up? I checked documentation patch, did not find good > explanatio

Re: [Qemu-devel] [PATCH 7/8] migration: new migration test mode

2015-10-07 Thread Dr. David Alan Gilbert
* Denis V. Lunev (d...@openvz.org) wrote: > From: Igor Redko > > In this patch the ability to start a migration with test-only > capability was added. It allows to gather the guest VM’s memory > usage statistics avoiding time and memory overheads and real > data transmission. New MIGRATION_STATU

Re: [Qemu-devel] [PATCH v2 00/18] implement vNVDIMM

2015-10-07 Thread Stefan Hajnoczi
On Wed, Aug 26, 2015 at 06:49:35PM +0800, Xiao Guangrong wrote: > On 08/26/2015 12:26 AM, Stefan Hajnoczi wrote: > >On Fri, Aug 14, 2015 at 10:51:53PM +0800, Xiao Guangrong wrote: > >Have you thought about live migration? > > > >Are the contents of the NVDIMM migrated since they are registered as a

Re: [Qemu-devel] [PATCH 6/8] migration: implementation of hook_ram_sync

2015-10-07 Thread Dr. David Alan Gilbert
* Denis V. Lunev (d...@openvz.org) wrote: > From: Igor Redko > > The key feature of the test transport is receiving information > about dirty memory. The qemu_test_sync_hook() allows to use > the migration infrastructure(code) for this purpose. > > All calls of this hook will be from ram_save_pe

[Qemu-devel] Virtio drivers for WindowsServer 2012R2 network problems no outgoing traffic in Openstack

2015-10-07 Thread Daniel Seybold
Hi qemu developers, currently I'm facing a tricky issue when I'm using the Virtio drivers (Fedora [1]) for a WindowsServer2012R2 virtual machine on Openstack I've created a WindowsServer Image following this tutorial [2]. I've installed the virtio drivers but without the Cloud-Init step. I

Re: [Qemu-devel] [PATCH v5 2/4] quorum: implement bdrv_add_child() and bdrv_del_child()

2015-10-07 Thread Alberto Garcia
On Tue 22 Sep 2015 09:44:20 AM CEST, Wen Congyang wrote: > +++ b/block/quorum.c > @@ -66,6 +66,9 @@ typedef struct QuorumVotes { > typedef struct BDRVQuorumState { > BlockDriverState **bs; /* children BlockDriverStates */ > int num_children; /* children count */ > +int max_chil

Re: [Qemu-devel] [RFC 0/8] QEMUFile-way to gather VM's memory statistics

2015-10-07 Thread Dr. David Alan Gilbert
(ccing Juan and Amit in) * Denis V. Lunev (d...@openvz.org) wrote: > This code is not ready to be merged. It is sent in the hope that it could > be useful and we could invent better architectural approach for the > feature if possible. > > +tch set summary: > - we added a feature that allows to g

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Pavel Fedin
Hello! > It is like other memdev properties, and there is an example in the > patch adding a test: > -object memory-backend-ram,size=1M,id=mb1 -device ivshmem,memdev=mb1 But what will cause memory-backend-ram to use hugetlb instead of just a RAM? P.S. Sorry if the question is stupid, i'm not

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Marc-André Lureau
Hi On Wed, Oct 7, 2015 at 4:22 PM, Pavel Fedin wrote: > But what will cause memory-backend-ram to use hugetlb instead of just a RAM? > > P.S. Sorry if the question is stupid, i'm not really familiar in hugetlb > details. I only know that managing huge pages is done via hugetlbfs. Ah right, d

Re: [Qemu-devel] [PATCH v4] ivshmem: allow the sharing of hugepages

2015-10-07 Thread Pavel Fedin
Hi! > P.S. Sorry if the question is stupid, i'm not really familiar in hugetlb > details. I only know > that managing huge pages is done via hugetlbfs. Ops, i was double-stupid. :) The question should have actually been: "How to configure ivshmem to use hugetlb with the series?" Kind regard

Re: [Qemu-devel] [PATCH] docs: update the usage example of "dtrace" backend in tracing.txt

2015-10-07 Thread Stefan Hajnoczi
On Fri, Sep 11, 2015 at 02:58:50PM +0800, Lin Ma wrote: > The usage example of dtrace is quite ancient, We have tracetool.py with > different parameters instead of the original tracetool shell script for > a long time, So update the old information. > > Signed-off-by: Lin Ma > --- > docs/tracing

[Qemu-devel] [PATCH] doc: document ivshmem & hugepages

2015-10-07 Thread marcandre . lureau
From: Marc-André Lureau Document and give some examples of hugepages support with ivshmem device and server. Signed-off-by: Marc-André Lureau --- qemu-doc.texi | 13 + 1 file changed, 13 insertions(+) diff --git a/qemu-doc.texi b/qemu-doc.texi index afa2263..b15c14c 100644 --- a/q

Re: [Qemu-devel] [PATCH v5 3/4] qmp: add monitor command to add/remove a child

2015-10-07 Thread Alberto Garcia
On Tue 22 Sep 2015 09:44:21 AM CEST, Wen Congyang wrote: > The new QMP command name is x-blockdev-child-add, and x-blockdev-child-del. > It justs for adding/removing quorum's child now, and don't support all > kinds of children, nor all block drivers. So it is experimental now. Better "So it is ex

Re: [Qemu-devel] [PATCH v5 4/4] hmp: add monitor command to add/remove a child

2015-10-07 Thread Alberto Garcia
On Tue 22 Sep 2015 09:44:22 AM CEST, Wen Congyang wrote: > --- a/hmp-commands.hx > +++ b/hmp-commands.hx > @@ -193,6 +193,34 @@ actions (drive options rerror, werror). > ETEXI > > { > +.name = "blockdev_child_add", > +.args_type = "id:B,child:B", > +.params

Re: [Qemu-devel] [PATCH 1/2] qga: drop hand-made guest_file_toggle_flags helper

2015-10-07 Thread Eric Blake
On 10/07/2015 04:59 AM, Denis V. Lunev wrote: > We'd better use generic qemu_set_nonblock directly. > > Signed-off-by: Denis V. Lunev > Reviewed-by: Yuri Pudgorodskiy > CC: Michael Roth > --- > qga/commands-posix.c | 27 ++- > 1 file changed, 2 insertions(+), 25 deletio

Re: [Qemu-devel] [PATCH v2 00/18] implement vNVDIMM

2015-10-07 Thread Xiao Guangrong
On 10/07/2015 10:02 PM, Stefan Hajnoczi wrote: On Wed, Aug 26, 2015 at 06:49:35PM +0800, Xiao Guangrong wrote: On 08/26/2015 12:26 AM, Stefan Hajnoczi wrote: On Fri, Aug 14, 2015 at 10:51:53PM +0800, Xiao Guangrong wrote: Have you thought about live migration? Are the contents of the NVDIMM

Re: [Qemu-devel] [RFC PATCH V7 00/19] Multithread TCG.

2015-10-07 Thread Frederic Konrad
Hi Claudio, I'll rebase soon tomorrow with a bit of luck ;). Thanks, Fred On 07/10/2015 14:46, Claudio Fontana wrote: > Hello Frederic, > > On 11.08.2015 08:27, Frederic Konrad wrote: >> On 11/08/2015 08:15, Benjamin Herrenschmidt wrote: >>> On Mon, 2015-08-10 at 17:26 +0200, fred.kon...@greenso

Re: [Qemu-devel] [RFC PATCH] qapi: split visit_end_struct() into pieces

2015-10-07 Thread Eric Blake
On 10/07/2015 06:00 AM, Markus Armbruster wrote: >>> Looks like we're getting drawn into visitor contract territory again. >>> >> +++ b/hmp.c >> @@ -1658,8 +1658,9 @@ void hmp_object_add(Monitor *mon, const QDict *qdict) >> >> object_add(type, id, pdict, opts_get_visitor(ov), &err); >> >> +

Re: [Qemu-devel] [PATCH 4/4] events doubts

2015-10-07 Thread Paolo Bonzini
On 07/10/2015 12:51, Pavel Dovgaluk wrote: > > Why do they need to be separate on startup? Does initialization hang? > > My reasoning was that QEMU_CLOCK_VIRTUAL is zero anyway at both init and > > reset. > > I'm not sure about current (only core functions) version, but full version > requires t

Re: [Qemu-devel] [PATCH 3/8] migration: add new capability test-only

2015-10-07 Thread Eric Blake
On 10/07/2015 12:20 AM, Denis V. Lunev wrote: > From: Igor Redko > > This patch declares a new migration capability that allows > to distinguish between true migration and the test. > > An alternative is using a custom URI but in this case the > following problems should be solved: > 1/ QEMUFile

Re: [Qemu-devel] [PATCH v4 3/3] pcie: Add support for Single Root I/O Virtualization (SR/IOV)

2015-10-07 Thread Marcel Apfelbaum
On 09/12/2015 03:36 PM, Knut Omang wrote: This patch provides the building blocks for creating an SR/IOV PCIe Extended Capability header and register/unregister SR/IOV Virtual Functions. Signed-off-by: Knut Omang --- hw/pci/Makefile.objs| 2 +- hw/pci/pci.c| 99 +++

Re: [Qemu-devel] [PATCH v5 22/38] block: Prepare for NULL BDS

2015-10-07 Thread Max Reitz
On 07.10.2015 12:43, Kevin Wolf wrote: > Am 18.09.2015 um 17:22 hat Max Reitz geschrieben: >> blk_bs() will not necessarily return a non-NULL value any more (unless >> blk_is_available() is true or it can be assumed to otherwise, e.g. >> because it is called immediately after a successful blk_new_w

Re: [Qemu-devel] [PATCH 7/8] migration: new migration test mode

2015-10-07 Thread Eric Blake
On 10/07/2015 07:56 AM, Dr. David Alan Gilbert wrote: > * Denis V. Lunev (d...@openvz.org) wrote: >> From: Igor Redko >> >> In this patch the ability to start a migration with test-only >> capability was added. It allows to gather the guest VM’s memory >> usage statistics avoiding time and memory

Re: [Qemu-devel] [PATCH] doc: document ivshmem & hugepages

2015-10-07 Thread Eric Blake
On 10/07/2015 08:32 AM, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Document and give some examples of hugepages support with ivshmem device > and server. > > Signed-off-by: Marc-André Lureau > --- > qemu-doc.texi | 13 + > 1 file changed, 13 insertions(+) > >

Re: [Qemu-devel] [PATCH] trace: remove malloc tracing

2015-10-07 Thread Alberto Garcia
On Wed, Sep 16, 2015 at 05:38:44PM +0200, Paolo Bonzini wrote: > The malloc vtable is not supported anymore in glib, because it broke > when constructors called g_malloc. Remove tracing of g_malloc, > g_realloc and g_free calls. > > Note that, for systemtap users, glib also provides tracepoints >

Re: [Qemu-devel] [RFC PATCH] qapi: split visit_end_struct() into pieces

2015-10-07 Thread Markus Armbruster
Eric Blake writes: > On 10/07/2015 06:00 AM, Markus Armbruster wrote: > Looks like we're getting drawn into visitor contract territory again. > >>> +++ b/hmp.c >>> @@ -1658,8 +1658,9 @@ void hmp_object_add(Monitor *mon, const QDict *qdict) >>> >>> object_add(type, id, pdict, opts_g

[Qemu-devel] creating vm fails if maxMemory equals to memory, but hotplug same will success

2015-10-07 Thread Yi Wang
Hi, all When I create a vm using virsh, it will fail if maxMemory(2G) equals to memory(2G) in XML: error: Failed to create domain from vm1.xml error: internal error: process exited while connecting to monitor: qemu-kvm: -msg timestamp=on: invalid value of -m option maxmem: memory slots were specifi

[Qemu-devel] [PULL 2/9] hw/vfio/platform: change interrupt/unmask fields into pointer

2015-10-07 Thread Alex Williamson
From: Eric Auger unmask EventNotifier might not be initialized in case of edge sensitive irq. Using EventNotifier pointers make life simpler to handle the edge-sensitive irqfd setup. Signed-off-by: Eric Auger Signed-off-by: Alex Williamson --- hw/vfio/platform.c | 35 ++

[Qemu-devel] [PULL 1/9] hw/vfio/platform: irqfd setup sequence update

2015-10-07 Thread Alex Williamson
From: Eric Auger With current implementation, eventfd VFIO signaling is first set up and then irqfd is setup, if supported and allowed. This start sequence causes several issues with IRQ forwarding setup which, if supported, is transparently attempted on irqfd setup: IRQ forwarding setup is like

[Qemu-devel] [PULL 8/9] memory: Allow replay of IOMMU mapping notifications

2015-10-07 Thread Alex Williamson
From: David Gibson When we have guest visible IOMMUs, we allow notifiers to be registered which will be informed of all changes to IOMMU mappings. This is used by vfio to keep the host IOMMU mappings in sync with guest IOMMU mappings. However, unlike with a memory region listener, an iommu noti

[Qemu-devel] [PULL 7/9] vfio: Record host IOMMU's available IO page sizes

2015-10-07 Thread Alex Williamson
From: David Gibson Depending on the host IOMMU type we determine and record the available page sizes for IOMMU translation. We'll need this for other validation in future patches. Signed-off-by: David Gibson Reviewed-by: Thomas Huth Reviewed-by: Laurent Vivier Signed-off-by: Alex Williamson

[Qemu-devel] [PULL 0/9] VFIO updates for 2015-10-07

2015-10-07 Thread Alex Williamson
Hi Peter, Per David's suggestion I simply dropped the clang problem patch, it's apparently unnecessary at this time. Thanks, Alex The following changes since commit c0b520dfb8890294a9f8879f4759172900585995: Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2015-10-0

[Qemu-devel] [PULL 5/9] vfio: Generalize vfio_listener_region_add failure path

2015-10-07 Thread Alex Williamson
From: David Gibson If a DMA mapping operation fails in vfio_listener_region_add() it checks to see if we've already completed initial setup of the container. If so it reports an error so the setup code can fail gracefully, otherwise throws a hw_error(). There are other potential failure cases i

[Qemu-devel] [PULL 3/9] hw/vfio/platform: do not set resamplefd for edge-sensitive IRQS

2015-10-07 Thread Alex Williamson
From: Eric Auger In irqfd mode, current code attempts to set a resamplefd whatever the type of the IRQ. For an edge-sensitive IRQ this attempt fails and as a consequence, the whole irqfd setup fails and we fall back to the slow mode. This patch bypasses the resamplefd setting for non level-sentiv

[Qemu-devel] [PULL 9/9] vfio: Allow hotplug of containers onto existing guest IOMMU mappings

2015-10-07 Thread Alex Williamson
From: David Gibson At present the memory listener used by vfio to keep host IOMMU mappings in sync with the guest memory image assumes that if a guest IOMMU appears, then it has no existing mappings. This may not be true if a VFIO device is hotplugged onto a guest bus which didn't previously inc

Re: [Qemu-devel] [PATCH v7 12/24] vhost: use a function for each call

2015-10-07 Thread Thibaut Collet
On Thu, Oct 1, 2015 at 7:23 PM, wrote: > From: Marc-André Lureau > > Replace the generic vhost_call() by specific functions for each > function call to help with type safety and changing arguments. > > While doing this, I found that "unsigned long long" and "uint64_t" were > used interchangeably

[Qemu-devel] [PULL 4/9] vfio: Remove unneeded union from VFIOContainer

2015-10-07 Thread Alex Williamson
From: David Gibson Currently the VFIOContainer iommu_data field contains a union with different information for different host iommu types. However: * It only actually contains information for the x86-like "Type1" iommu * Because we have a common listener the Type1 fields are actually used

Re: [Qemu-devel] [RFC PATCH 0/8] Towards an Heterogeneous QEMU

2015-10-07 Thread Peter Crosthwaite
On Mon, Oct 5, 2015 at 8:50 AM, Christian Pinto wrote: > Hello Peter, > > thanks for your comments > > On 01/10/2015 18:26, Peter Crosthwaite wrote: >> >> On Tue, Sep 29, 2015 at 6:57 AM, Christian Pinto >> wrote: >>> >>> Hi all, >>> >>> This RFC patch-series introduces the set of changes enabli

[Qemu-devel] [PULL 6/9] vfio: Check guest IOVA ranges against host IOMMU capabilities

2015-10-07 Thread Alex Williamson
From: David Gibson The current vfio core code assumes that the host IOMMU is capable of mapping any IOVA the guest wants to use to where we need. However, real IOMMUs generally only support translating a certain range of IOVAs (the "DMA window") not a full 64-bit address space. The common x86 I

Re: [Qemu-devel] [PATCH v7 12/24] vhost: use a function for each call

2015-10-07 Thread Marc-André Lureau
Hi Thibaut - Original Message - > On Thu, Oct 1, 2015 at 7:23 PM, wrote: > > From: Marc-André Lureau > > > > Replace the generic vhost_call() by specific functions for each > > function call to help with type safety and changing arguments. > > > > While doing this, I found that "unsigne

Re: [Qemu-devel] [PATCH v7 12/24] vhost: use a function for each call

2015-10-07 Thread Thibaut Collet
On Wed, Oct 7, 2015 at 5:58 PM, Marc-André Lureau wrote: > Hi Thibaut > > - Original Message - >> On Thu, Oct 1, 2015 at 7:23 PM, wrote: >> > From: Marc-André Lureau >> > >> > Replace the generic vhost_call() by specific functions for each >> > function call to help with type safety and

Re: [Qemu-devel] [PATCH v7 12/24] vhost: use a function for each call

2015-10-07 Thread Marc-André Lureau
Hi - Original Message - > > > > Hmm, there are no tests for multi-queue? I thought we had some, how did you > > test it then? > > For other reason I have launched a VM with multiqueue with your latest > patch series and I have encountered the bug. (easy to see as QEMU is > blocked for eve

[Qemu-devel] [PATCH] fixup to qapi: Move union tag quirks into subclass

2015-10-07 Thread Eric Blake
Signed-off-by: Eric Blake --- I noticed a couple more places that could use the c_name() function; I'll be squashing this into 7/14 if I need to do a v8 spin. scripts/qapi-commands.py | 4 ++-- scripts/qapi.py | 10 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --gi

Re: [Qemu-devel] [PATCH v7 03/14] qapi: Drop redundant alternate-good test

2015-10-07 Thread Markus Armbruster
Eric Blake writes: > The alternate-good.json test was already covered by > qapi-schema-test.json. As future commits will be tweaking > how alternates are laid out, removing the duplicate test now > reduces churn. Do we have more positive tests? They should probably all live in qapi-schema-test

Re: [Qemu-devel] [PATCH v3 3/9] target-arm: Add support for S2 page-table protection bits

2015-10-07 Thread Alex Bennée
Edgar E. Iglesias writes: > From: "Edgar E. Iglesias" > > Signed-off-by: Edgar E. Iglesias > --- > target-arm/helper.c | 41 + > 1 file changed, 37 insertions(+), 4 deletions(-) > > diff --git a/target-arm/helper.c b/target-arm/helper.c > index 507324f.

Re: [Qemu-devel] [PATCH v3 5/9] target-arm: Add ARMMMUFaultInfo

2015-10-07 Thread Alex Bennée
Edgar E. Iglesias writes: > From: "Edgar E. Iglesias" > > Introduce ARMMMUFaultInfo to propagate MMU Fault information > across the MMU translation code path. This is in preparation for > adding State-2 translation. s/State/stage/? > > No functional changes. > > Signed-off-by: Edgar E. Iglesi

Re: [Qemu-devel] [PATCH v7 04/14] qapi: Don't use info as witness of implicit object type

2015-10-07 Thread Markus Armbruster
Eric Blake writes: > A future patch will enable error reporting from the various > QAPISchema*.check() methods. But to report an error related > to an implicit type, we'll need to associate a location with > the type (the same location as the top-level entity that is > causing the creation of th

[Qemu-devel] [PATCH v2] Remove macros IO_READ_PROTO and IO_WRITE_PROTO

2015-10-07 Thread Nutan Shinde
Signed-off-by: Nutan Shinde --- hw/audio/adlib.c | 9 ++--- hw/audio/es1370.c | 17 ++--- hw/audio/gus.c| 9 ++--- hw/audio/sb16.c | 15 +-- 4 files changed, 15 insertions(+), 35 deletions(-) diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c index 656eb37.

Re: [Qemu-devel] [PATCH v7 03/14] qapi: Drop redundant alternate-good test

2015-10-07 Thread Eric Blake
On 10/07/2015 10:15 AM, Markus Armbruster wrote: > Eric Blake writes: > >> The alternate-good.json test was already covered by >> qapi-schema-test.json. As future commits will be tweaking >> how alternates are laid out, removing the duplicate test now >> reduces churn. > > Do we have more posit

Re: [Qemu-devel] [PATCH v7 05/14] qapi: Lazy creation of array types

2015-10-07 Thread Markus Armbruster
Eric Blake writes: > Commit ac88219a had several TODO markers about whether we needed > to automatically create the corresponding array type alongside > any other type. It turns out that most of the time, we don't! > > As part of lazy creation of array types, this patch now assigns > an 'info' t

Re: [Qemu-devel] [PATCH 1/5] ide/atapi: make PIO read requests async

2015-10-07 Thread John Snow
On 10/06/2015 04:46 AM, Peter Lieven wrote: > Am 05.10.2015 um 23:15 schrieb John Snow: >> >> On 09/21/2015 08:25 AM, Peter Lieven wrote: >>> PIO read requests on the ATAPI interface used to be sync blk requests. >>> This has to siginificant drawbacks. First the main loop hangs util an >>> I/O re

Re: [Qemu-devel] [PATCH v7 06/14] qapi: Create simple union type member earlier

2015-10-07 Thread Markus Armbruster
Eric Blake writes: > For simple unions, we were creating the implicit 'type' tag > member during the QAPISchemaObjectTypeVariants constructor. > This is different from every other implicit QAPISchemaEntity > object, which get created by QAPISchema methods. Hoist the > creation to the caller (ren

Re: [Qemu-devel] [PATCH 03/17] spec: add qcow2-dirty-bitmaps specification

2015-10-07 Thread Max Reitz
On 05.09.2015 18:43, Vladimir Sementsov-Ogievskiy wrote: > Persistent dirty bitmaps will be saved into qcow2 files. It may be used > as 'internal' bitmaps (for qcow2 drives) or as 'external' bitmaps for > other drives (there may be qcow2 file with zero disk size but with > several dirty bitmaps for

Re: [Qemu-devel] [PATCH 06/17] qcow2-dirty-bitmap: add qcow2_dirty_bitmap_load()

2015-10-07 Thread Eric Blake
On 10/06/2015 05:01 PM, John Snow wrote: >> +ret = load_bitmap(bs_file, dirty_bitmap_table, >> bmh->dirty_bitmap_table_size, bitmap); >> +if (ret < 0) { >> +error_setg_errno(errp, -ret, "Could not read bitmap from image"); >> +goto finish; >> +} >> + >> +finish: >> +

Re: [Qemu-devel] [PATCH v2 04/16] quorum: Convert to BdrvChild

2015-10-07 Thread Max Reitz
On 01.10.2015 15:13, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > Reviewed-by: Max Reitz > Reviewed-by: Alberto Garcia > --- > block/quorum.c | 63 > ++ > 1 file changed, 33 insertions(+), 30 deletions(-) > > diff --git a/block/quorum

[Qemu-devel] Debugging u-boot after relocation on arm machie

2015-10-07 Thread mar.krzeminski
Hello, I am working on u-boot under qemu. Debugging before u-boots relocate itself works just fine. After relocation and reloading elf in gdb, qemu does no stop on breakpoint. Generally I follow this instruction: http://www.denx.de/wiki/view/DULG/DebuggingUBoot I am debuging under eclipse -

Re: [Qemu-devel] [Qemu-block] [PATCH v5 1/4] Add new block driver interface to add/delete a BDS's child

2015-10-07 Thread Max Reitz
On 22.09.2015 09:44, Wen Congyang wrote: > In some cases, we want to take a quorum child offline, and take > another child online. > > Signed-off-by: Wen Congyang > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > Reviewed-by: Eric Blake > --- > block.c | 50 > ++

Re: [Qemu-devel] [Qemu-block] [PATCH v5 2/4] quorum: implement bdrv_add_child() and bdrv_del_child()

2015-10-07 Thread Max Reitz
On 22.09.2015 09:44, Wen Congyang wrote: > Signed-off-by: Wen Congyang > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > --- > block.c | 6 ++--- > block/quorum.c| 72 > +-- > include/block/block.h | 3 +++ > 3 fil

Re: [Qemu-devel] [PATCH 1/5] ide/atapi: make PIO read requests async

2015-10-07 Thread Peter Lieven
Am 07.10.2015 um 18:42 schrieb John Snow: > > On 10/06/2015 04:46 AM, Peter Lieven wrote: >> Am 05.10.2015 um 23:15 schrieb John Snow: >>> On 09/21/2015 08:25 AM, Peter Lieven wrote: PIO read requests on the ATAPI interface used to be sync blk requests. This has to siginificant drawbacks.

Re: [Qemu-devel] [PATCH v5 1/4] Add new block driver interface to add/delete a BDS's child

2015-10-07 Thread Dr. David Alan Gilbert
* Wen Congyang (we...@cn.fujitsu.com) wrote: > In some cases, we want to take a quorum child offline, and take > another child online. Hi, Have you checked the output of 'info block' after adding/deleting a child? I'm using one of your older worlds (from a few months ago) and I found I had to ad

Re: [Qemu-devel] [PATCH 03/17] spec: add qcow2-dirty-bitmaps specification

2015-10-07 Thread Denis V. Lunev
On 10/07/2015 07:47 PM, Max Reitz wrote: On 05.09.2015 18:43, Vladimir Sementsov-Ogievskiy wrote: Persistent dirty bitmaps will be saved into qcow2 files. It may be used as 'internal' bitmaps (for qcow2 drives) or as 'external' bitmaps for other drives (there may be qcow2 file with zero disk siz

Re: [Qemu-devel] [PATCH v2] Remove macros IO_READ_PROTO and IO_WRITE_PROTO

2015-10-07 Thread Markus Armbruster
Copying maintainer. Please use scripts/get_maintainer.pl to find them yourself. Nutan Shinde writes: > Signed-off-by: Nutan Shinde > --- > hw/audio/adlib.c | 9 ++--- > hw/audio/es1370.c | 17 ++--- > hw/audio/gus.c| 9 ++--- > hw/audio/sb16.c | 15 +--

Re: [Qemu-devel] [Qemu-block] [PATCH v5 3/4] qmp: add monitor command to add/remove a child

2015-10-07 Thread Max Reitz
On 22.09.2015 09:44, Wen Congyang wrote: > The new QMP command name is x-blockdev-child-add, and x-blockdev-child-del. > It justs for adding/removing quorum's child now, and don't support all > kinds of children, It does support all kinds of children for quorum, doesn't it? >n

Re: [Qemu-devel] [PATCH v3 6/6] tcg/mips: Support r6 SEL{NE, EQ}Z instead of MOVN/MOVZ

2015-10-07 Thread Richard Henderson
On 10/07/2015 09:34 PM, James Hogan wrote: { INDEX_op_brcond_i32, { "rZ", "rZ" } }, +#if !use_mips32r6_instructions { INDEX_op_movcond_i32, { "r", "rZ", "rZ", "rZ", "0" } }, +#else +{ INDEX_op_movcond_i32, { "r", "rZ", "rZ", "rZ", "rZ" } }, +#endif The only thing I'd change is

Re: [Qemu-devel] [PULL 0/5] s390x: Fixes and features

2015-10-07 Thread Peter Maydell
On 6 October 2015 at 11:41, Christian Borntraeger wrote: > Peter, > > here are some fixes (and a small feature) for s390x. > > The following changes since commit b2312c680084ea18cd55fa7093397cad2224ec14: > > Merge remote-tracking branch 'remotes/amit-migration/tags/for-juan-201509' > into stagi

Re: [Qemu-devel] [PATCH v2 3/3] exec.c: Collect AddressSpace related fields into a CPUAddressSpace struct

2015-10-07 Thread Peter Maydell
On 7 October 2015 at 10:57, Richard Henderson wrote: > On 10/02/2015 12:29 AM, Peter Maydell wrote: >> >> +cpu->cpu_ases = g_new0(CPUAddressSpace, 1); >> +cpu->cpu_ases[0].cpu = cpu; >> +cpu->cpu_ases[0].as = as; >> +cpu->cpu_ases[0].tcg_as_listener.commit = tcg_commit; >> +mem

Re: [Qemu-devel] [PATCH v8] hw/arm/virt: Add high MMIO PCI region, 512G in size

2015-10-07 Thread Peter Maydell
On 7 October 2015 at 11:50, Pavel Fedin wrote: > Hello! > >> Nudge -- have you reported this as a kernel bug against the >> PCI generic driver yet? > > Sorry, stopped tracking this topic after option upstreaming. Just > sent out patches, cc'ed to you. Yes, just saw those, thanks. (I'm slightly

Re: [Qemu-devel] [PATCH v3 1/9] target-arm: Add HPFAR_EL2

2015-10-07 Thread Peter Maydell
On 7 October 2015 at 12:51, Alex Bennée wrote: > > Edgar E. Iglesias writes: > >> From: "Edgar E. Iglesias" >> >> Signed-off-by: Edgar E. Iglesias >> --- >> target-arm/cpu.h| 1 + >> target-arm/helper.c | 12 >> 2 files changed, 13 insertions(+) >> >> diff --git a/target-arm/

Re: [Qemu-devel] [PULL 0/5] s390x: Fixes and features

2015-10-07 Thread Christian Borntraeger
Am 07.10.2015 um 22:55 schrieb Peter Maydell: > On 6 October 2015 at 11:41, Christian Borntraeger > wrote: >> Peter, >> >> here are some fixes (and a small feature) for s390x. >> >> The following changes since commit b2312c680084ea18cd55fa7093397cad2224ec14: >> >> Merge remote-tracking branch 'r

[Qemu-devel] [PATCH v2 5/5] xlnx-ep108: Connect the SPI Flash

2015-10-07 Thread Alistair Francis
Connect the sst25wf080 SPI flash to the EP108 board. Signed-off-by: Alistair Francis --- V2: - Use sst25wf080 instead of m25p80 hw/arm/xlnx-ep108.c | 20 1 file changed, 20 insertions(+) diff --git a/hw/arm/xlnx-ep108.c b/hw/arm/xlnx-ep108.c index 2899698..9755c30 100644

[Qemu-devel] [PATCH v2 0/5] Connect the SPI devices to ZynqMP

2015-10-07 Thread Alistair Francis
Connect the SPI devices to Xilinx's ZynqMP. I also need to make some changes to the actual SPI device to imporove the fuctionality, but for the time being this works. V2: - Connect the SPI flash in the board code - Update git patches to properly indicate rename - Add sst25wf080 as a SPI flash

[Qemu-devel] [PATCH v2 3/5] xilinx_spips: Seperate the state struct into a header

2015-10-07 Thread Alistair Francis
Seperate out the XilinxSPIPS struct into a seperate header file. Signed-off-by: Alistair Francis --- V2: - Only split out required #defines - Prefix XLNX_SPIPS_ hw/ssi/xilinx_spips.c | 54 --- include/hw/ssi/xilinx_spips.h | 74 +

[Qemu-devel] [PATCH v2 2/5] ssi: Move ssi.h into a separate directory

2015-10-07 Thread Alistair Francis
Move the ssi.h include file into the ssi directory. Signed-off-by: Alistair Francis --- V2: - Change git patch to indicate rename hw/arm/pxa2xx.c | 2 +- hw/arm/spitz.c | 2 +- hw/arm/stellaris.c | 2 +- hw/arm/strongarm.c

[Qemu-devel] [PATCH v2 1/5] m25p80.c: Add sst25wf080 SPI flash device

2015-10-07 Thread Alistair Francis
Add the sst25wf080 SPI flash device. Signed-off-by: Alistair Francis --- hw/block/m25p80.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c index efc43dd..7b9f97c 100644 --- a/hw/block/m25p80.c +++ b/hw/block/m25p80.c @@ -163,6 +163,7 @@ static const Fla

<    1   2   3   >