Re: [Xen-devel] [Qemu-devel] [PATCH] pci-assign: Remove

2017-10-25 Thread Philippe Mathieu-Daudé
include "xen_pt.h" >> >> /* >> * Scan the assigned devices for the devices that have an option ROM, and >> then >> @@ -80,7 +80,7 @@ close_rom: >> fseek(fp, 0, SEEK_SET); >> val = 0; >> if (!fwrite(&val, 1,

Re: [Xen-devel] [Qemu-devel] [PATCH] xen_disk: avoid use of g_malloc0_n()

2017-09-14 Thread Philippe Mathieu-Daudé
emory), use the former. Signed-off-by: Jan Beulich Reviewed-by: Philippe Mathieu-Daudé --- a/hw/block/xen_disk.c +++ b/hw/block/xen_disk.c @@ -1232,7 +1232,7 @@ static int blk_connect(struct XenDevice return -1; } -domids = g_malloc0_n(blkdev->nr_ring_ref, sizeof(

Re: [Xen-devel] [Qemu-devel] [PATCH v2] xen-disk: use g_new0 to fix build

2017-07-28 Thread Philippe Mathieu-Daudé
Hi Olaf, On 07/28/2017 10:11 AM, Olaf Hering wrote: g_malloc0_n is available since glib-2.24. To allow build with older glib versions use the generic g_new0, which is already used in many other places in the code. Can you provide information about which distrib/release/version/[packages?] you

[Xen-devel] [RFC PATCH 2/3] xen/mapcache: disable Xen on arm*

2017-07-10 Thread Philippe Mathieu-Daudé
_cache_entry' collect2: error: ld returned 1 exit status Makefile:197: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 Signed-off-by: Philippe Mathieu-Daudé --- include/sysemu/xen-mapcache.h | 4 +++- 1 file changed, 3 insertions(+), 1 d

[Xen-devel] [RFC PATCH 0/3] disable Xen on ARM (until supported)

2017-07-10 Thread Philippe Mathieu-Daudé
d few comments to think about spliting x86 part from arch agnostic Xen code. That said, I realize there is no Xen ARM entry in MAINTAINERS, I'll Cc: X86 maintainers although. Regards, Phil. Philippe Mathieu-Daudé (3): configure: disable Xen PCI Passthrough on !x86 archs [XXX] xen/mapcache:

[Xen-devel] [RFC PATCH 1/3] configure: disable Xen PCI Passthrough on !x86 archs

2017-07-10 Thread Philippe Mathieu-Daudé
/xen/xen_pt_graphics.c:135: undefined reference to `pci_assign_dev_load_option_rom' collect2: error: ld returned 1 exit status Makefile:197: recipe for target 'qemu-system-aarch64' failed make[1]: *** [qemu-system-aarch64] Error 1 Signed-off-by: Philippe Mathieu-Daudé --- configure | 11 +

[Xen-devel] [RFC PATCH 3/3] xen/pt: add comments about !x86 archs

2017-07-10 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/xen/xen_pt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index 375efa68f6..21c32b0991 100644 --- a/hw/xen/xen_pt.c +++ b/hw/xen/xen_pt.c @@ -58,7 +58,7 @@ #include "hw/pci/

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

2017-04-25 Thread Philippe Mathieu-Daudé
Reviewed-by: Greg Kurz Reviewed-by: Philippe Mathieu-Daudé CC: anthony.per...@citrix.com CC: jgr...@suse.com --- hw/block/xen_blkif.h | 2 +- hw/usb/xen-usb.c | 2 +- include/hw/xen/io/ring.h | 482 +++ 3 files changed, 484 insertions

Re: [Xen-devel] [Qemu-devel] [PATCH v4 09/13] qobject: Use simpler QDict/QList scalar insertion macros

2017-04-11 Thread Philippe Mathieu-Daudé
scripts/coccinelle/qobject.cocci \ --macro-file scripts/cocci-macro-file.h --dir . --in-place and needed only one touch-up in monitor.c to avoid a long line. Signed-off-by: Eric Blake Reviewed-by: Philippe Mathieu-Daudé --- v4: no change v3: new patch --- block.c | 45

Re: [Xen-devel] [Qemu-devel] [PATCH] xen: use libxendevice model to restrict operations

2017-03-19 Thread Philippe Mathieu-Daudé
Hi Paul, On 03/17/2017 10:30 AM, Paul Durrant wrote: This patch adds a command-line option (-xen-domid-restrict) which will use the new libxendevicemodel API to restrict devicemodel operations to the specified domid. This patch also adds a tracepoint to allow successful enabling of the restrict

Re: [Xen-devel] [Qemu-devel] [PATCH v3 3/9] 9p: introduce a type for the 9p header

2017-03-19 Thread Philippe Mathieu-Daudé
Reviewed-by: Philippe Mathieu-Daudé hw/9pfs/9p.h | 6 ++ hw/9pfs/virtio-9p-device.c | 6 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h index b7e8362..5312d8a 100644 --- a/hw/9pfs/9p.h +++ b/hw/9pfs/9p.h @@ -119,6 +119,12