Re: [libvirt] [PATCH] fix numa-related (and kernel-dependent) test failures

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

 



On Mon, Dec 15, 2008 at 03:36:07PM -0500, Dave Allan wrote:
> Jim Meyering wrote:
>> Whoops.  That was the wrong patch.
>> Here's the patch I intended:
>>
>>> From e7dce174d5bc7f4097125e9bbc14dc0fa2518355 Mon Sep 17 00:00:00 2001
>> From: Jim Meyering <meyering@xxxxxxxxxx>
>> Date: Mon, 15 Dec 2008 17:53:32 +0100
>> Subject: [PATCH] .
>>
>> ---
>>  src/qemu_conf.c |    4 ++--
>>  src/uml_conf.c  |    4 ++--
>>  2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/src/qemu_conf.c b/src/qemu_conf.c
>> index 59171e7..312f646 100644
>> --- a/src/qemu_conf.c
>> +++ b/src/qemu_conf.c
>> @@ -323,8 +323,8 @@ qemudCapsInitNUMA(virCapsPtr caps)
>>          goto cleanup;
>>
>>      for (n = 0 ; n <= numa_max_node() ; n++) {
>> -
>> -        if (numa_node_to_cpus(n, mask, MAX_CPUS_MASK_LEN / 8) < 0)
>> +        int mask_n_bytes = numa_all_cpus_ptr->size / 8;
>> +        if (numa_node_to_cpus(n, mask, mask_n_bytes) < 0)
>>              goto cleanup;
>>
>>          for (ncpus = 0, i = 0 ; i < MAX_CPUS ; i++)
>> diff --git a/src/uml_conf.c b/src/uml_conf.c
>> index 3659c6b..00adf27 100644
>> --- a/src/uml_conf.c
>> +++ b/src/uml_conf.c
>> @@ -79,8 +79,8 @@ umlCapsInitNUMA(virCapsPtr caps)
>>          goto cleanup;
>>
>>      for (n = 0 ; n <= numa_max_node() ; n++) {
>> -
>> -        if (numa_node_to_cpus(n, mask, MAX_CPUS_MASK_LEN / 8) < 0)
>> +        int mask_n_bytes = numa_all_cpus_ptr->size / 8;
>> +        if (numa_node_to_cpus(n, mask, mask_n_bytes) < 0)
>>              goto cleanup;
>>
>>          for (ncpus = 0, i = 0 ; i < MAX_CPUS ; i++)
>> --
>> 1.6.1.rc2.316.geb2f0
>>
>> --
>> Libvir-list mailing list
>> Libvir-list@xxxxxxxxxx
>> https://www.redhat.com/mailman/listinfo/libvir-list
>
> All tests pass for me with that patch.  Looks good.

  Same for me, +1 !

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
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]