[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] PATCH: Fix QEMU/UML use of libnuma
- From: Chris Lalancette <clalance redhat com>
- To: "Daniel P. Berrange" <berrange redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] PATCH: Fix QEMU/UML use of libnuma
- Date: Fri, 28 Nov 2008 08:56:57 +0100
Daniel P. Berrange wrote:
> The 2.x series of numactl releases changed the ABI/API for certain
> libnuma.so functions we use. Fortunately it turns out that they provide
> back-compatability of both ABI and API with a combo of linker script
> magic, and header file inline compat functions. So, all we need todo
> is #define NUMA_VERSION1_COMPATIBILITY before include numa.h in our
> code.
>
> This new code did, however, expose a bug in our use of the existing
> API. We were calculating size in bytes, instead of size in longs, so
> were passing a buffer that was 8 times to large. Harmless, but the
> new libnuma validates that the buffer is expected size. So this patch
> also fixes us to pass & allocate correct buffer size.
>
> Finally, also add a missing BuildRequire on numactl-devel, and fixes
> the libvirtd automake build dependancy
Yep, all makes sense, and fixes the build for me with numactl-devel installed. ACK.
--
Chris Lalancette
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]