Re: [Qemu-devel] [PATCH 0/4] xenfb: Add vkbd-only option

2017-06-08 Thread Stefano Stabellini
On Thu, 8 Jun 2017, Owen Smith wrote: > Adds the ability for a vkbd device to connect without the > QemuConsole, in order to support a standalone PV mouse and > keyboard frontend. > This series adds a new feature flag, which will need adding > to the xen's include/public/io/kbdif.h Please do so,

[Qemu-devel] [PULL 4/4] xen: call qemu_set_cloexec instead of fcntl

2017-05-16 Thread Stefano Stabellini
Use the common utility function, which contains checks on return values and first calls F_GETFD as recommended by POSIX.1-2001, instead of manually calling fcntl. CID: 1374831 Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Reviewed-by: Eric Blake <ebl...@redhat.com> Revie

[Qemu-devel] [PULL 3/4] xen/9pfs: fix two resource leaks on error paths, discovered by Coverity

2017-05-16 Thread Stefano Stabellini
CID: 1374836 Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Reviewed-by: Eric Blake <ebl...@redhat.com> Reviewed-by: Greg Kurz <gr...@kaod.org> CC: anthony.per...@citrix.com CC: gr...@kaod.org CC: aneesh.ku...@linux.vnet.ibm.com --- hw/9pfs/xen-9p-backend.c | 2 ++

[Qemu-devel] [PULL 2/4] configure: Remove -lxencall for Xen detection

2017-05-16 Thread Stefano Stabellini
From: Anthony PERARD <anthony.per...@citrix.com> QEMU does not depends on libxencall, it was added because it was a missing link dependency of libxendevicemodel, but now the later should be built properly. Signed-off-by: Anthony PERARD <anthony.per...@citrix.com> Reviewed-by: Stefan

[Qemu-devel] [PULL 1/4] xen/mapcache: store dma information in revmapcache entries for debugging

2017-05-16 Thread Stefano Stabellini
e print a warning if any [b] mappings exist. We ignore [a] mappings. Mappings created by qemu_map_ram_ptr are assumed to be [a], while mappings created by address_space_map->qemu_ram_ptr_length are assumed to be [b]. The goal of the patch is to make debugging and system understanding ea

[Qemu-devel] [PULL 0/4] please pull xen-20170516-tag

2017-05-16 Thread Stefano Stabellini
): configure: Remove -lxencall for Xen detection Stefano Stabellini (3): xen/mapcache: store dma information in revmapcache entries for debugging xen/9pfs: fix two resource leaks on error paths, discovered by Coverity xen: call qemu_set_cloexec instead of fcntl configure

Re: [Qemu-devel] [PATCH v2 2/3] Check the return value of fcntl in qemu_set_cloexec

2017-05-16 Thread Stefano Stabellini
On Thu, 11 May 2017, Paolo Bonzini wrote: > On 09/05/2017 21:04, Stefano Stabellini wrote: > > Assert that the return value is not an error. This issue was found by > > Coverity. > > > > CID: 1374831 > > > > Signed-off-by: Stefano Stabellini <sstabell...

Re: [Qemu-devel] [PATCH] configure: Remove -lxencall for Xen detection

2017-05-15 Thread Stefano Stabellini
On Thu, 11 May 2017, Anthony PERARD wrote: > QEMU does not depends on libxencall, it was added because it was a > missing link dependency of libxendevicemodel, but now the later should > be built properly. > > Signed-off-by: Anthony PERARD <anthony.per...@citrix.com>

Re: [Qemu-devel] [PATCH v2 1/3] xen/9pfs: fix two resource leaks on error paths, discovered by Coverity

2017-05-09 Thread Stefano Stabellini
On Tue, 9 May 2017, Eric Blake wrote: > On 05/09/2017 02:20 PM, Eric Blake wrote: > > On 05/09/2017 02:04 PM, Stefano Stabellini wrote: > >> CID: 1374836 > >> > >> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> > >> CC: anthon

[Qemu-devel] [PATCH v2 2/3] Check the return value of fcntl in qemu_set_cloexec

2017-05-09 Thread Stefano Stabellini
Assert that the return value is not an error. This issue was found by Coverity. CID: 1374831 Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> CC: gr...@kaod.org CC: pbonz...@redhat.com CC: Eric Blake <ebl...@redhat.com> --- util/oslib-posix.c | 4 +++- 1 file changed,

[Qemu-devel] [PATCH v2 3/3] xen: call qemu_set_cloexec instead of fcntl

2017-05-09 Thread Stefano Stabellini
Use the common utility function, which contains checks on return values, instead of manually calling fcntl. CID: 1374831 Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> CC: anthony.per...@citrix.com CC: gr...@kaod.org CC: aneesh.ku...@linux.vnet.ibm.com CC: Eric Blak

[Qemu-devel] [PATCH v2 1/3] xen/9pfs: fix two resource leaks on error paths, discovered by Coverity

2017-05-09 Thread Stefano Stabellini
CID: 1374836 Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> CC: anthony.per...@citrix.com CC: gr...@kaod.org CC: aneesh.ku...@linux.vnet.ibm.com --- hw/9pfs/xen-9p-backend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/9pfs/xen-9p-backend.c b/hw/9pfs/xen-9p-bac

Re: [Qemu-devel] [PATCH] Fix issues affecting Xen 9pfs discovered by Coverity

2017-05-08 Thread Stefano Stabellini
On Mon, 8 May 2017, Stefano Stabellini wrote: > On Mon, 8 May 2017, Eric Blake wrote: > > On 05/08/2017 03:45 PM, Stefano Stabellini wrote: > > > Fix two resource leaks on error paths, discovered by Coverity. > > > Check for errors returned by fcntl, also found by

Re: [Qemu-devel] [PATCH] Fix issues affecting Xen 9pfs discovered by Coverity

2017-05-08 Thread Stefano Stabellini
On Mon, 8 May 2017, Eric Blake wrote: > On 05/08/2017 03:45 PM, Stefano Stabellini wrote: > > Fix two resource leaks on error paths, discovered by Coverity. > > Check for errors returned by fcntl, also found by Coverity. > > > > CID:1374836 > > CID:1374831 > &

[Qemu-devel] [PATCH] Fix issues affecting Xen 9pfs discovered by Coverity

2017-05-08 Thread Stefano Stabellini
Fix two resource leaks on error paths, discovered by Coverity. Check for errors returned by fcntl, also found by Coverity. CID:1374836 CID:1374831 Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> diff --git a/hw/9pfs/xen-9p-backend.c b/hw/9pfs/xen-9p-backend.c index 9c7f41a..f

[Qemu-devel] [PATCH v2] xen/mapcache: store dma information in revmapcache entries for debugging

2017-05-03 Thread Stefano Stabellini
called, we print a warning if any [b] mappings exist. We ignore [a] mappings. Mappings created by qemu_map_ram_ptr are assumed to be [a], while mappings created by address_space_map->qemu_ram_ptr_length are assumed to be [b]. The goal of the patch is to make debugging and system understanding ea

Re: [Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-05-03 Thread Stefano Stabellini
On Wed, 3 May 2017, Stefano Stabellini wrote: > On Wed, 3 May 2017, Anthony PERARD wrote: > > On Wed, May 03, 2017 at 10:20:59AM -0700, Stefano Stabellini wrote: > > > On Wed, 3 May 2017, Anthony PERARD wrote: > > > > On Thu, Apr 20, 2017 at 11:05:33AM -

Re: [Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-05-03 Thread Stefano Stabellini
On Wed, 3 May 2017, Anthony PERARD wrote: > On Wed, May 03, 2017 at 10:20:59AM -0700, Stefano Stabellini wrote: > > On Wed, 3 May 2017, Anthony PERARD wrote: > > > On Thu, Apr 20, 2017 at 11:05:33AM -0700, Stefano Stabellini wrote: > > > > On Thu, 20 Apr 2017, Paul Du

Re: [Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-05-03 Thread Stefano Stabellini
On Wed, 3 May 2017, Anthony PERARD wrote: > On Thu, Apr 20, 2017 at 11:05:33AM -0700, Stefano Stabellini wrote: > > On Thu, 20 Apr 2017, Paul Durrant wrote: > > > I think xencall should be part of the base xen_stable_libs anyway. > > > > Yes, you are right. However

[Qemu-devel] [PATCH RFC] xen/mapcache: store dma information in revmapcache entries for debugging

2017-05-02 Thread Stefano Stabellini
called, we print a warning if any [b] mappings exist. We ignore [a] mappings. Mappings created by qemu_map_ram_ptr are assumed to be [a], while mappings created by address_space_map->qemu_ram_ptr_length are assumed to be [b]. The goal of the patch is to make debugging and system understanding ea

Re: [Qemu-devel] [RFC/BUG] xen-mapcache: buggy invalidate map cache?

2017-04-28 Thread Stefano Stabellini
On Thu, 13 Apr 2017, Herongguang (Stephen) wrote: > On 2017/4/13 7:51, Stefano Stabellini wrote: > > On Wed, 12 Apr 2017, Herongguang (Stephen) wrote: > > > On 2017/4/12 6:32, Stefano Stabellini wrote: > > > > On Tue, 11 Apr 2017, hrg wrote: > > > >

Re: [Qemu-devel] [PATCH] ACPI: don't call acpi_pcihp_device_plug_cb on xen

2017-04-27 Thread Stefano Stabellini
On Thu, 27 Apr 2017, Bruce Rogers wrote: > >>> On 4/27/2017 at 03:09 PM, Stefano Stabellini <sstabell...@kernel.org> > >>> wrote: > > On Thu, 27 Apr 2017, Bruce Rogers wrote: > >> Commit f0c9d64a exposed the issue that with a xenfv machine usin

Re: [Qemu-devel] [PATCH] ACPI: don't call acpi_pcihp_device_plug_cb on xen

2017-04-27 Thread Stefano Stabellini
On Thu, 27 Apr 2017, Bruce Rogers wrote: > Commit f0c9d64a exposed the issue that with a xenfv machine using > pci passthrough, acpi cpi hotplug code was being executed by mistake. > Guard calls to acpi_pcihp_device_plug_cb (and corresponding > acpi_pcihp_device_unplug_cb) with a check for

Re: [Qemu-devel] [PATCH v2 4/4] 9pfs: handle broken transport

2017-04-27 Thread Stefano Stabellini
On Thu, 27 Apr 2017, Greg Kurz wrote: > The 9p protocol is transport agnostic: if an error occurs when copying data > to/from the client, this should be handled by the transport layer [1] and > the 9p server should simply stop processing requests [2]. > > [1] can be implemented in the transport

Re: [Qemu-devel] [PATCH v2 2/4] 9pfs: drop pdu_push_and_notify()

2017-04-27 Thread Stefano Stabellini
y(V9fsPDU *pdu) I would probably turn this into a static inline and keep it around as syntactic sugar. Regardless: Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> > -{ > -pdu->s->transport->push_and_notify(pdu); > -} > - > static int omode_to_ufla

Re: [Qemu-devel] [PATCH v2 1/4] fsdev: don't allow unknown format in marshal/unmarshal

2017-04-27 Thread Stefano Stabellini
On Thu, 27 Apr 2017, Greg Kurz wrote: > The code only uses well known format strings. An unknown format token is a > bug. > > Signed-off-by: Greg Kurz <gr...@kaod.org> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> > --- > fsdev/9p-iov-marshal.c |

Re: [Qemu-devel] [PATCH] virtio-9p/xen-9p: move 9p specific bits to core 9p code

2017-04-27 Thread Stefano Stabellini
On Thu, 27 Apr 2017, Greg Kurz wrote: > These bits aren't related to the transport so let's move them to the core > code. > > Signed-off-by: Greg Kurz <gr...@kaod.org> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> > --- > hw/9pfs/9p.c |

Re: [Qemu-devel] [PATCH] ACPI: call acpi_set_pci_info when only acpi enabled

2017-04-27 Thread Stefano Stabellini
On Thu, 27 Apr 2017, Igor Mammedov wrote: > On Thu, 27 Apr 2017 10:51:23 -0600 > "Bruce Rogers" wrote: > > > > > > > >>> On 4/27/2017 at 10:08 AM, Igor Mammedov wrote: > > > On Thu, 27 Apr 2017 09:44:31 -0600 > > > "Bruce Rogers"

[Qemu-devel] [PATCH 20/21] move xen-hvm.c to hw/i386/xen/

2017-04-25 Thread Stefano Stabellini
From: Anthony Xu <anthony...@intel.com> move xen-hvm.c to hw/i386/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- Makefile.target |3 +- hw/i386/xen/Makefile.objs |2 +- hw/i386/xen/trace-ev

[Qemu-devel] [PATCH 16/21] xen/9pfs: send responses back to the frontend

2017-04-25 Thread Stefano Stabellini
. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> CC: anthony.per...@citrix.com CC: jgr...@suse.com CC: Aneesh Kumar K.V <aneesh.ku...@linux.vnet.ibm.com> CC: Greg Kurz <gr...@kaod.org> --- hw/9pfs/xen-9p-backend.c | 19 +++ 1 file changed, 19 insertions(+

[Qemu-devel] [PATCH 10/21] xen: import ring.h from xen

2017-04-25 Thread Stefano Stabellini
Do not use the ring.h header installed on the system. Instead, import the header into the QEMU codebase. This avoids problems when QEMU is built against a Xen version too old to provide all the ring macros. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Ku

[Qemu-devel] [PATCH 21/21] move xen-mapcache.c to hw/i386/xen/

2017-04-25 Thread Stefano Stabellini
From: Anthony Xu <anthony...@intel.com> move xen-mapcache.c to hw/i386/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- Makefile.target| 3 - default-configs/i386-softmmu.mak | 1

[Qemu-devel] [PATCH 11/21] 9p: introduce a type for the 9p header

2017-04-25 Thread Stefano Stabellini
Use the new type in virtio-9p-device. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Kurz <gr...@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> CC: anthony.per...@citrix.com CC: jgr...@suse.com CC: Aneesh Kumar K.V <aneesh.ku...@l

[Qemu-devel] [PATCH 19/21] move xen-common.c to hw/xen/

2017-04-25 Thread Stefano Stabellini
From: Anthony Xu <anthony...@intel.com> move xen-common.c to hw/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- Makefile.target | 2 - hw/xen/Makefile.objs | 2 +- hw/xen/x

[Qemu-devel] [PATCH 08/21] xen: additionally restrict xenforeignmemory operations

2017-04-25 Thread Stefano Stabellini
s.xen.org/gitweb/?p=xen.git;a=commit;h=5823d6eb Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- include/hw/xen/xen_common.h | 134 ++

[Qemu-devel] [PATCH 17/21] xen/9pfs: build and register Xen 9pfs backend

2017-04-25 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Kurz <gr...@kaod.org> CC: anthony.per...@citrix.com CC: jgr...@suse.com CC: Aneesh Kumar K.V <aneesh.ku...@linux.vnet.ibm.com> CC: Greg Kurz <gr...@kaod.org> --- hw/9pfs/Makefile.objs| 1

[Qemu-devel] [PATCH 13/21] xen/9pfs: connect to the frontend

2017-04-25 Thread Stefano Stabellini
Write the limits of the backend to xenstore. Connect to the frontend. Upon connection, allocate the rings according to the protocol specification. Initialize a QEMUBH to schedule work upon receiving an event channel notification from the frontend. Signed-off-by: Stefano Stabellini <s

[Qemu-devel] [PATCH 07/21] xen: use libxendevice model to restrict operations

2017-04-25 Thread Stefano Stabellini
ed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- hw/xen/trace-events | 1 + include/hw/xen/xen.h| 1 + include/hw/xen/xen_common.h | 20 qemu-options.hx

[Qemu-devel] [PATCH 15/21] xen/9pfs: implement in/out_iov_from_pdu and vmarshal/vunmarshal

2017-04-25 Thread Stefano Stabellini
Implement xen_9pfs_init_in/out_iov_from_pdu and xen_9pfs_pdu_vmarshal/vunmarshall by creating new sg pointing to the data on the ring. This is safe as we only handle one request per ring at any given time. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> CC: anthony.per...@citrix.

[Qemu-devel] [PATCH 18/21] add xen-9p-backend to MAINTAINERS under Xen

2017-04-25 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Kurz <gr...@kaod.org> CC: gr...@kaod.org CC: anthony.per...@citrix.com --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAI

[Qemu-devel] [PATCH 09/21] configure: use pkg-config for obtaining xen version

2017-04-25 Thread Stefano Stabellini
ed-off-by: Juergen Gross <jgr...@suse.com> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Tested-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- configure | 159 ++--

[Qemu-devel] [PATCH 05/21] xen: use libxendevicemodel when available

2017-04-25 Thread Stefano Stabellini
itrix.com> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Reviewed-by: Anthony Perard <anthony.per...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- include/hw/xen/xen_common.h | 203 +--- xen-commo

[Qemu-devel] [PATCH 14/21] xen/9pfs: receive requests from the frontend

2017-04-25 Thread Stefano Stabellini
Upon receiving an event channel notification from the frontend, schedule the bottom half. From the bottom half, read one request from the ring, create a pdu and call pdu_submit to handle it. For now, only handle one request per ring at a time. Signed-off-by: Stefano Stabellini <s

[Qemu-devel] [PATCH 12/21] xen/9pfs: introduce Xen 9pfs backend

2017-04-25 Thread Stefano Stabellini
Introduce the Xen 9pfs backend: add struct XenDevOps to register as a Xen backend and add struct V9fsTransport to register as v9fs transport. All functions are empty stubs for now. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Kurz <gr...@kaod.org> CC:

[Qemu-devel] [PATCH 04/21] configure: detect presence of libxendevicemodel

2017-04-25 Thread Stefano Stabellini
From: Paul Durrant <paul.durr...@citrix.com> This patch adds code in configure to set CONFIG_XEN_CTRL_INTERFACE_VERSION to a new value of 490 if libxendevicemodel is present in the build environment. Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Signed-off-by: Stefan

[Qemu-devel] [PATCH 01/21] xen: make use of xen_xc implicit in xen_common.h inlines

2017-04-25 Thread Stefano Stabellini
xen_xc and xen_fmem from xen_backend.h to xen_common.h, and the declarations from xen_backend.c to xen-common.c, which is where they belong. Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Anthony Perard <anthony.per...@citrix.com> Reviewed-by: Stefano St

[Qemu-devel] [PATCH 06/21] xen: use 5 digit xen versions

2017-04-25 Thread Stefano Stabellini
scheme (e.g. 40800 for version 4.8.0). Signed-off-by: Juergen Gross <jgr...@suse.com> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- configure | 16 hw/block/xen_disk.c

[Qemu-devel] [PATCH 03/21] xen: create wrappers for all other uses of xc_hvm_XXX() functions

2017-04-25 Thread Stefano Stabellini
emodel. Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Anthony Perard <anthony.per...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- hw/i386/xen/xen_platform.c | 2 +- include/hw/xen/xen_common.h | 44 +++

[Qemu-devel] [PATCH 02/21] xen: rename xen_modified_memory() to xen_hvm_modified_memory()

2017-04-25 Thread Stefano Stabellini
From: Paul Durrant <paul.durr...@citrix.com> This patch is a purely cosmetic change that avoids a name collision in a subsequent patch. Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Anthony Perard <anthony.per...@citrix.com> Reviewed-by: Stefano St

[Qemu-devel] [PULL 0/21] Please pull xen-20170421-v2-tag for 2.10

2017-04-25 Thread Stefano Stabellini
libxendevicemodel when available xen: use libxendevice model to restrict operations xen: additionally restrict xenforeignmemory operations Stefano Stabellini (9): xen: import ring.h from xen 9p: introduce a type for the 9p header xen/9pfs: introduce Xen 9pfs backend

Re: [Qemu-devel] [PULL 0/21] Please pull xen-20170421-tag for 2.10

2017-04-25 Thread Stefano Stabellini
On Tue, 25 Apr 2017, Markus Armbruster wrote: > Stefano Stabellini <sstabell...@kernel.org> writes: > > > On Mon, 24 Apr 2017, Peter Maydell wrote: > >> On 24 April 2017 at 22:25, Stefano Stabellini <sstabell...@kernel.org> > >> wrote: > >> >

Re: [Qemu-devel] [PULL 0/21] Please pull xen-20170421-tag for 2.10

2017-04-24 Thread Stefano Stabellini
On Mon, 24 Apr 2017, Peter Maydell wrote: > On 24 April 2017 at 22:25, Stefano Stabellini <sstabell...@kernel.org> wrote: > > diff --git a/hw/9pfs/xen-9pfs.h b/hw/9pfs/xen-9pfs.h > > new file mode 100644 > > index 000..18f0ec0 > > --- /dev/null > > +++

Re: [Qemu-devel] [PULL 0/21] Please pull xen-20170421-tag for 2.10

2017-04-24 Thread Stefano Stabellini
On Mon, 24 Apr 2017, Peter Maydell wrote: > On 21 April 2017 at 21:14, Stefano Stabellini <sstabell...@kernel.org> wrote: > > The following changes since commit 55a19ad8b2d0797e3a8fe90ab99a9bb713824059: > > > > Update version for v2.9.0-rc1 release

Re: [Qemu-devel] [RFC 0/7] Move accel, KVM, Xen, qtest files to accel/ subdir

2017-04-24 Thread Stefano Stabellini
tub.c balloon.c > > ioport.c bootdevice.c memory.c cputlb.c memory_mapping.c dump.c. > > > > Maybe a sysemu/ subdir? In that case, should we still create an > > accel/ subdir, or move xen-*, kvm-* and friends to sysemu/ too? > > > > Cc: Paolo Bonzini <pbonz.

[Qemu-devel] [PULL 21/21] move xen-mapcache.c to hw/i386/xen/

2017-04-21 Thread Stefano Stabellini
From: Anthony Xu <anthony...@intel.com> move xen-mapcache.c to hw/i386/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- Makefile.target| 3 - default-configs/i386-softmmu.mak | 1

[Qemu-devel] [PULL 18/21] add xen-9p-backend to MAINTAINERS under Xen

2017-04-21 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Kurz <gr...@kaod.org> CC: gr...@kaod.org CC: anthony.per...@citrix.com --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAI

[Qemu-devel] [PULL 16/21] xen/9pfs: send responses back to the frontend

2017-04-21 Thread Stefano Stabellini
. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> CC: anthony.per...@citrix.com CC: jgr...@suse.com CC: Aneesh Kumar K.V <aneesh.ku...@linux.vnet.ibm.com> CC: Greg Kurz <gr...@kaod.org> --- hw/9pfs/xen-9p-backend.c | 19 +++ 1 file changed, 19 insertions(+

[Qemu-devel] [PULL 20/21] move xen-hvm.c to hw/i386/xen/

2017-04-21 Thread Stefano Stabellini
From: Anthony Xu <anthony...@intel.com> move xen-hvm.c to hw/i386/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- Makefile.target |3 +- hw/i386/xen/Makefile.objs |2 +- hw/i386/xen/trace-ev

[Qemu-devel] [PULL 13/21] xen/9pfs: connect to the frontend

2017-04-21 Thread Stefano Stabellini
Write the limits of the backend to xenstore. Connect to the frontend. Upon connection, allocate the rings according to the protocol specification. Initialize a QEMUBH to schedule work upon receiving an event channel notification from the frontend. Signed-off-by: Stefano Stabellini <s

[Qemu-devel] [PULL 19/21] move xen-common.c to hw/xen/

2017-04-21 Thread Stefano Stabellini
From: Anthony Xu <anthony...@intel.com> move xen-common.c to hw/xen/ Signed-off -by: Anthony Xu <anthony...@intel.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- Makefile.target | 2 - hw/xen/Makefile.objs | 2 +- hw/xen/x

[Qemu-devel] [PULL 15/21] xen/9pfs: implement in/out_iov_from_pdu and vmarshal/vunmarshal

2017-04-21 Thread Stefano Stabellini
Implement xen_9pfs_init_in/out_iov_from_pdu and xen_9pfs_pdu_vmarshal/vunmarshall by creating new sg pointing to the data on the ring. This is safe as we only handle one request per ring at any given time. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> CC: anthony.per...@citrix.

[Qemu-devel] [PULL 10/21] xen: import ring.h from xen

2017-04-21 Thread Stefano Stabellini
Do not use the ring.h header installed on the system. Instead, import the header into the QEMU codebase. This avoids problems when QEMU is built against a Xen version too old to provide all the ring macros. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Ku

[Qemu-devel] [PULL 17/21] xen/9pfs: build and register Xen 9pfs backend

2017-04-21 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Kurz <gr...@kaod.org> CC: anthony.per...@citrix.com CC: jgr...@suse.com CC: Aneesh Kumar K.V <aneesh.ku...@linux.vnet.ibm.com> CC: Greg Kurz <gr...@kaod.org> --- hw/9pfs/Makefile.objs| 1

[Qemu-devel] [PULL 14/21] xen/9pfs: receive requests from the frontend

2017-04-21 Thread Stefano Stabellini
Upon receiving an event channel notification from the frontend, schedule the bottom half. From the bottom half, read one request from the ring, create a pdu and call pdu_submit to handle it. For now, only handle one request per ring at a time. Signed-off-by: Stefano Stabellini <s

[Qemu-devel] [PULL 09/21] configure: use pkg-config for obtaining xen version

2017-04-21 Thread Stefano Stabellini
ed-off-by: Juergen Gross <jgr...@suse.com> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Tested-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- configure | 159 ++--

[Qemu-devel] [PULL 11/21] 9p: introduce a type for the 9p header

2017-04-21 Thread Stefano Stabellini
Use the new type in virtio-9p-device. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Kurz <gr...@kaod.org> Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org> CC: anthony.per...@citrix.com CC: jgr...@suse.com CC: Aneesh Kumar K.V <aneesh.ku...@l

[Qemu-devel] [PULL 12/21] xen/9pfs: introduce Xen 9pfs backend

2017-04-21 Thread Stefano Stabellini
Introduce the Xen 9pfs backend: add struct XenDevOps to register as a Xen backend and add struct V9fsTransport to register as v9fs transport. All functions are empty stubs for now. Signed-off-by: Stefano Stabellini <stef...@aporeto.com> Reviewed-by: Greg Kurz <gr...@kaod.org> CC:

[Qemu-devel] [PULL 07/21] xen: use libxendevice model to restrict operations

2017-04-21 Thread Stefano Stabellini
ed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- hw/xen/trace-events | 1 + include/hw/xen/xen.h| 1 + include/hw/xen/xen_common.h | 20 qemu-options.hx

[Qemu-devel] [PULL 05/21] xen: use libxendevicemodel when available

2017-04-21 Thread Stefano Stabellini
itrix.com> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Reviewed-by: Anthony Perard <anthony.per...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- include/hw/xen/xen_common.h | 203 +--- xen-commo

[Qemu-devel] [PULL 06/21] xen: use 5 digit xen versions

2017-04-21 Thread Stefano Stabellini
scheme (e.g. 40800 for version 4.8.0). Signed-off-by: Juergen Gross <jgr...@suse.com> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- configure | 16 hw/block/xen_disk.c

[Qemu-devel] [PULL 08/21] xen: additionally restrict xenforeignmemory operations

2017-04-21 Thread Stefano Stabellini
s.xen.org/gitweb/?p=xen.git;a=commit;h=5823d6eb Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Signed-off-by: Stefano Stabellini <sstabell...@kernel.org> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- include/hw/xen/xen_common.h | 134 ++

[Qemu-devel] [PULL 04/21] configure: detect presence of libxendevicemodel

2017-04-21 Thread Stefano Stabellini
From: Paul Durrant <paul.durr...@citrix.com> This patch adds code in configure to set CONFIG_XEN_CTRL_INTERFACE_VERSION to a new value of 490 if libxendevicemodel is present in the build environment. Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Signed-off-by: Stefan

[Qemu-devel] [PULL 02/21] xen: rename xen_modified_memory() to xen_hvm_modified_memory()

2017-04-21 Thread Stefano Stabellini
From: Paul Durrant <paul.durr...@citrix.com> This patch is a purely cosmetic change that avoids a name collision in a subsequent patch. Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Anthony Perard <anthony.per...@citrix.com> Reviewed-by: Stefano St

[Qemu-devel] [PULL 03/21] xen: create wrappers for all other uses of xc_hvm_XXX() functions

2017-04-21 Thread Stefano Stabellini
emodel. Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Anthony Perard <anthony.per...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> --- hw/i386/xen/xen_platform.c | 2 +- include/hw/xen/xen_common.h | 44 +++

[Qemu-devel] [PULL 01/21] xen: make use of xen_xc implicit in xen_common.h inlines

2017-04-21 Thread Stefano Stabellini
xen_xc and xen_fmem from xen_backend.h to xen_common.h, and the declarations from xen_backend.c to xen-common.c, which is where they belong. Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Anthony Perard <anthony.per...@citrix.com> Reviewed-by: Stefano St

[Qemu-devel] [PULL 0/21] Please pull xen-20170421-tag for 2.10

2017-04-21 Thread Stefano Stabellini
: additionally restrict xenforeignmemory operations Stefano Stabellini (9): xen: import ring.h from xen 9p: introduce a type for the 9p header xen/9pfs: introduce Xen 9pfs backend xen/9pfs: connect to the frontend xen/9pfs: receive requests from the frontend xen/9pfs

Re: [Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-04-20 Thread Stefano Stabellini
On Thu, 20 Apr 2017, Paul Durrant wrote: > > -Original Message- > > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > > Sent: 20 April 2017 00:02 > > To: Paul Durrant <paul.durr...@citrix.com> > > Cc: 'Stefano Stabellini' <sstabel

Re: [Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-04-19 Thread Stefano Stabellini
On Wed, 19 Apr 2017, Paul Durrant wrote: > > -Original Message- > > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > > Sent: 18 April 2017 18:41 > > To: Paul Durrant <paul.durr...@citrix.com> > > Cc: 'Stefano Stabellini' <sstabel

Re: [Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-04-18 Thread Stefano Stabellini
On Tue, 18 Apr 2017, Paul Durrant wrote: > > -Original Message- > > From: Stefano Stabellini [mailto:sstabell...@kernel.org] > > Sent: 15 April 2017 01:40 > > To: Stefano Stabellini <sstabell...@kernel.org> > > Cc: Paul Durrant <paul.durr...@citrix.c

Re: [Qemu-devel] [Xen-devel] [PATCH] configure: introduce --enable-xen-fb-backend

2017-04-18 Thread Stefano Stabellini
On Tue, 18 Apr 2017, Juergen Gross wrote: > On 14/04/17 19:52, Stefano Stabellini wrote: > > On Fri, 14 Apr 2017, Juergen Gross wrote: > >> On 14/04/17 08:06, Oleksandr Andrushchenko wrote: > >>> On 04/14/2017 03:12 AM, Stefano Stabellini wrote: > >>>>

Re: [Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-04-14 Thread Stefano Stabellini
On Fri, 14 Apr 2017, Stefano Stabellini wrote: > Hi Paul, > > The following commit in my qemu "next" branch breaks the build on arm > and arm64: > > commit 670271647ad15e9d937ced7a72c892349c709216 > Author: Paul Durrant <paul.durr...@citrix.com> &g

[Qemu-devel] QEMU build breakage on ARM against Xen 4.9 caused by libxendevicemodel

2017-04-14 Thread Stefano Stabellini
Hi Paul, The following commit in my qemu "next" branch breaks the build on arm and arm64: commit 670271647ad15e9d937ced7a72c892349c709216 Author: Paul Durrant Date: Tue Mar 7 10:55:34 2017 + xen: use libxendevicemodel when available See the appended build

Re: [Qemu-devel] [PATCH 0/3] move xen related files to corresponding xen directory

2017-04-14 Thread Stefano Stabellini
On Wed, 5 Apr 2017, Anthony Xu wrote: > > move xen related files to corresponding xen directory > > move xen-common.c to hw/xen/ > move xen-hvm.c to hw/i386/xen/ > move xen-mapcache.c to hw/i386/xen/ > > Signed-off -by: Anthony Xu <anthony...@intel.com> R

Re: [Qemu-devel] [Xen-devel] [PATCH] configure: introduce --enable-xen-fb-backend

2017-04-14 Thread Stefano Stabellini
On Fri, 14 Apr 2017, Juergen Gross wrote: > On 14/04/17 08:06, Oleksandr Andrushchenko wrote: > > On 04/14/2017 03:12 AM, Stefano Stabellini wrote: > >> On Tue, 11 Apr 2017, Oleksandr Andrushchenko wrote: > >>> From: Oleksandr Andrushchenko <oleksandr_andrushche.

Re: [Qemu-devel] [Xen-devel][PATCH] configure: introduce --enable-xen-fb-backend

2017-04-13 Thread Stefano Stabellini
On Tue, 11 Apr 2017, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > For some use cases when Xen framebuffer/input backend > is not a part of Qemu it is required to disable it, > because of conflicting access to input/display devices. >

Re: [Qemu-devel] [RFC/BUG] xen-mapcache: buggy invalidate map cache?

2017-04-12 Thread Stefano Stabellini
On Wed, 12 Apr 2017, Herongguang (Stephen) wrote: > On 2017/4/12 6:32, Stefano Stabellini wrote: > > On Tue, 11 Apr 2017, hrg wrote: > > > On Tue, Apr 11, 2017 at 3:50 AM, Stefano Stabellini > > > <sstabell...@kernel.org> wrote: > > > >

Re: [Qemu-devel] [Xen-devel] [RFC/BUG] xen-mapcache: buggy invalidate map cache?

2017-04-12 Thread Stefano Stabellini
On Wed, 12 Apr 2017, Alexey G wrote: > On Tue, 11 Apr 2017 15:32:09 -0700 (PDT) > Stefano Stabellini <sstabell...@kernel.org> wrote: > > > On Tue, 11 Apr 2017, hrg wrote: > > > On Tue, Apr 11, 2017 at 3:50 AM, Stefano Stabellini > > > <sstabell...@kernel

Re: [Qemu-devel] [RFC/BUG] xen-mapcache: buggy invalidate map cache?

2017-04-11 Thread Stefano Stabellini
On Tue, 11 Apr 2017, hrg wrote: > On Tue, Apr 11, 2017 at 3:50 AM, Stefano Stabellini > <sstabell...@kernel.org> wrote: > > On Mon, 10 Apr 2017, Stefano Stabellini wrote: > >> On Mon, 10 Apr 2017, hrg wrote: > >> > On Sun, Apr 9, 2017 at 11:55 PM, hrg <hr

Re: [Qemu-devel] [RFC/BUG] xen-mapcache: buggy invalidate map cache?

2017-04-10 Thread Stefano Stabellini
On Mon, 10 Apr 2017, Stefano Stabellini wrote: > On Mon, 10 Apr 2017, hrg wrote: > > On Sun, Apr 9, 2017 at 11:55 PM, hrg <hrgstep...@gmail.com> wrote: > > > On Sun, Apr 9, 2017 at 11:52 PM, hrg <hrgstep...@gmail.com> wrote: > > >> Hi, > > >> &

Re: [Qemu-devel] [RFC/BUG] xen-mapcache: buggy invalidate map cache?

2017-04-10 Thread Stefano Stabellini
On Mon, 10 Apr 2017, hrg wrote: > On Sun, Apr 9, 2017 at 11:55 PM, hrg wrote: > > On Sun, Apr 9, 2017 at 11:52 PM, hrg wrote: > >> Hi, > >> > >> In xen_map_cache_unlocked(), map to guest memory maybe in entry->next > >> instead of first level entry (if

Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen

2017-03-29 Thread Stefano Stabellini
On Wed, 29 Mar 2017, Paolo Bonzini wrote: > On 29/03/2017 01:54, Stefano Stabellini wrote: > >>> I understand your point of view, and honestly it wouldn't be a problem > >>> doing it the way you suggested either. However, I think that going > >>> forwar

Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Juergen Gross wrote: > On 28/03/17 00:48, Stefano Stabellini wrote: > > On Mon, 27 Mar 2017, Juergen Gross wrote: > >> On 24/03/17 18:37, Stefano Stabellini wrote: > >>> On Fri, 24 Mar 2017, Juergen Gross wrote: > >>>>

Re: [Qemu-devel] [PATCH v2] xen: additionally restrict xenforeignmemory operations

2017-03-28 Thread Stefano Stabellini
trict option is passed. > > [1] http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=5823d6eb > > Signed-off-by: Paul Durrant <paul.durr...@citrix.com> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> > --- > Cc: Stefano Stabellini <sstabell...@kernel.org> >

Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen

2017-03-27 Thread Stefano Stabellini
On Mon, 27 Mar 2017, Juergen Gross wrote: > On 24/03/17 18:37, Stefano Stabellini wrote: > > On Fri, 24 Mar 2017, Juergen Gross wrote: > >> On 23/03/17 19:22, Stefano Stabellini wrote: > >>> On Thu, 23 Mar 2017, Paolo Bonzini wrote: > >>>> On 23/03/2017

Re: [Qemu-devel] [PATCH v2] configure: use pkg-config for obtaining xen version

2017-03-27 Thread Stefano Stabellini
ve been. It > would be handy if the probe compilations used --nostdlib, but that's not > regression introduced by your patch. Now that pkg-config is used for > out-of-tree builds I guess it may be possible to add that though. > > > What happens without this patch? > &g

Re: [Qemu-devel] [PATCH] xen: additionally restrict xenforeignmemory operations

2017-03-27 Thread Stefano Stabellini
On Mon, 27 Mar 2017, Paul Durrant wrote: > > -Original Message- > [snip] > > > > This is OK but the file is growing too entangled. What do you think of > > the following, which moves the if CONFIG_XEN_CTRL_INTERFACE_VERSION > > < > > 40701 at the top? This way we don't have to add yet

Re: [Qemu-devel] [PATCH] xen: additionally restrict xenforeignmemory operations

2017-03-24 Thread Stefano Stabellini
trict option is passed. > > [1] http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=5823d6eb > > Signed-off-by: Paul Durrant <paul.durr...@citrix.com> > --- > Cc: Stefano Stabellini <sstabell...@kernel.org> > Cc: Anthony Perard

Re: [Qemu-devel] [PATCH RESEND] xen: limit pkg-config to PKG_CONFIG_PATH for xen libraries

2017-03-24 Thread Stefano Stabellini
- If the configure script picks up the Xen header files from /local/xen-unstable.git/tools/libxc/include, then we want the pkgconfig dir to be local/xen-unstable.git/tools/pkg-config. If that's too complex, we can always go back to the good old, non-pkgconfig days. > > Cc: Anthony Perard <ant

Re: [Qemu-devel] [PATCH v4 1/8] xen: import ring.h from xen

2017-03-24 Thread Stefano Stabellini
On Fri, 24 Mar 2017, Juergen Gross wrote: > On 23/03/17 19:22, Stefano Stabellini wrote: > > On Thu, 23 Mar 2017, Paolo Bonzini wrote: > >> On 23/03/2017 14:55, Juergen Gross wrote: > >>> On 23/03/17 14:00, Greg Kurz wrote: > >>>> On Mon, 20 Mar

Re: [Qemu-devel] [PATCH v2] xen-platform: separate unplugging of NVMe disks

2017-03-23 Thread Stefano Stabellini
of, and improves the comments regarding, the > previously exiting bits in the protocol. > > [1] https://lists.xen.org/archives/html/xen-devel/2017-03/msg02924.html > > Signed-off-by: Paul Durrant <paul.durr...@citrix.com> > -- > Cc: Stefano Stabellini <sstabell...@

<    1   2   3   4   5   6   7   8   9   10   >