Re: [Qemu-devel] [PULL v2 1/3] hw/vfio/platform: vfio-platform skeleton

2015-06-11 Thread Peter Maydell
On 11 June 2015 at 03:21, Gonglei wrote: > Failed to build on SUSE11.3: > That's because g_malloc0_n() introduced since glib-2.24, > but QEMU just require glib-2.22. Thanks for the catch -- I do have a glib-2.22 system in my pre-pull build tests, but it's not x86/Linux, so it won't try to compil

Re: [Qemu-devel] [PULL v2 1/3] hw/vfio/platform: vfio-platform skeleton

2015-06-10 Thread Eric Auger
Gonglei, Thanks for the report and please apologize for the inconvenience. I am going to send a fix reverting to simple g_malloc0 then. Best Regards Eric On 06/11/2015 04:21 AM, Gonglei wrote: > On 2015/6/9 23:55, Alex Williamson wrote: >> +static int vfio_populate_device(VFIODevice *vbasedev)

Re: [Qemu-devel] [PULL v2 1/3] hw/vfio/platform: vfio-platform skeleton

2015-06-10 Thread Gonglei
On 2015/6/9 23:55, Alex Williamson wrote: > +static int vfio_populate_device(VFIODevice *vbasedev) > +{ > +int i, ret = -1; > +VFIOPlatformDevice *vdev = > +container_of(vbasedev, VFIOPlatformDevice, vbasedev); > + > +if (!(vbasedev->flags & VFIO_DEVICE_FLAGS_PLATFORM)) { > +

[Qemu-devel] [PULL v2 1/3] hw/vfio/platform: vfio-platform skeleton

2015-06-09 Thread Alex Williamson
From: Eric Auger Minimal VFIO platform implementation supporting register space user mapping but not IRQ assignment. Signed-off-by: Kim Phillips Signed-off-by: Eric Auger Tested-by: Vikram Sethi Signed-off-by: Alex Williamson --- hw/vfio/Makefile.objs |1 hw/vfio/platform.c