Re: [libvirt] PATCH: Fix QEMU/UML use of libnuma

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]