From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: xen-devel@lists.xenproject.org, dario.faggioli@citrix.com,
Ian.Jackson@eu.citrix.com, ian.campbell@citrix.com
Subject: Re: [PATCH for-4.6] xl/vNUMA: Allow empty memory nodes
Date: Fri, 14 Aug 2015 13:30:33 -0400 [thread overview]
Message-ID: <55CE25B9.1040100@oracle.com> (raw)
In-Reply-To: <20150814162601.GM978@zion.uk.xensource.com>
On 08/14/2015 12:26 PM, Wei Liu wrote:
> This title should say "libxc: ..."
Ah, of course. Let me know if you want me to re-send it.
-boris
>
> On Fri, Aug 14, 2015 at 12:18:52PM -0400, Boris Ostrovsky wrote:
>> The test for 'nr_vmemranges < nr_vnodes' in xc_domain_setvnuma() was
>> originally writtten with the idea that number of memory ranges would
>> at least be equal to number of nodes.
>>
>> We may want to specify nodes with no memory, however, and thus this
>> check should be removed.
>>
>> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
> Acked-by: Wei Liu <wei.liu2@citrix.com>
>
> With my RM hat on, because libxl, hypervisor and hvmloader can already
> cope with 0 vmemrange configuration, removing this restriction is safe.
>
> Release-acked-by: Wei Liu <wei.liu2@citrix.com>
>
>> ---
>> tools/libxc/xc_domain.c | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c
>> index 2ee26fb..780797f 100644
>> --- a/tools/libxc/xc_domain.c
>> +++ b/tools/libxc/xc_domain.c
>> @@ -2451,8 +2451,7 @@ int xc_domain_setvnuma(xc_interface *xch,
>> XC_HYPERCALL_BUFFER_BOUNCE_BOTH);
>> errno = EINVAL;
>>
>> - if ( nr_vnodes == 0 || nr_vmemranges == 0 ||
>> - nr_vmemranges < nr_vnodes || nr_vcpus == 0 )
>> + if ( nr_vnodes == 0 || nr_vmemranges == 0 || nr_vcpus == 0 )
>> return -1;
>>
>> if ( !vdistance || !vcpu_to_vnode || !vmemrange || !vnode_to_pnode )
>> --
>> 1.9.3
next prev parent reply other threads:[~2015-08-14 17:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 16:18 [PATCH for-4.6] xl/vNUMA: Allow empty memory nodes Boris Ostrovsky
2015-08-14 16:26 ` Wei Liu
2015-08-14 17:30 ` Boris Ostrovsky [this message]
2015-08-15 8:32 ` Wei Liu
2015-08-16 8:02 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55CE25B9.1040100@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=dario.faggioli@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.