[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Xen-devel] [PULL 3/3] xen-disk: add support for multi-
From: |
Stefano Stabellini |
Subject: |
Re: [Qemu-devel] [Xen-devel] [PULL 3/3] xen-disk: add support for multi-page shared rings |
Date: |
Thu, 27 Jul 2017 12:14:10 -0700 (PDT) |
User-agent: |
Alpine 2.10 (DEB 1266 2009-07-14) |
On Thu, 27 Jul 2017, Olaf Hering wrote:
> On Tue, Jun 27, Stefano Stabellini wrote:
>
> > From: Paul Durrant <address@hidden>
> > 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.