On Thu, 27 Jul 2017, Olaf Hering wrote: > On Tue, Jun 27, Stefano Stabellini wrote: > > > From: Paul Durrant <paul.durr...@citrix.com> > > The blkif protocol has had provision for negotiation of multi-page shared > > rings for some time now and many guest OS have support in their frontend > > drivers. > > > +++ b/hw/block/xen_disk.c > > > + domids = g_malloc0_n(blkdev->nr_ring_ref, sizeof(uint32_t)); > > According to [1] g_malloc0_n requires at least glib-2.24. As a result > compilation of qemu-2.10 fails in SLE11, which has just glib-2.22. > > Olaf > > [1] https://developer.gnome.org/glib/stable/glib-Memory-Allocation.html
It looks like QEMU supports glib 2.22, so this ought to work. In fact the only user of g_malloc0_n is xen_disk.c. I would be happy to take a patch that replaces g_malloc0_n with g_malloc0. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel