From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Ostrovsky Subject: Re: [PATCH v5 6/8] libxl/libxc: Move libxl_get_cpu_topology()'s hypercall buffer management to libxc Date: Fri, 20 Mar 2015 10:24:34 -0400 Message-ID: <550C2DA2.3040309@oracle.com> References: <1426802044-19444-1-git-send-email-boris.ostrovsky@oracle.com> <1426802044-19444-7-git-send-email-boris.ostrovsky@oracle.com> <1426859677.21742.192.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1426859677.21742.192.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: elena.ufimtseva@oracle.com, wei.liu2@citrix.com, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, jbeulich@suse.com, keir@xen.org List-Id: xen-devel@lists.xenproject.org On 03/20/2015 09:54 AM, Ian Campbell wrote: > On Thu, 2015-03-19 at 17:54 -0400, Boris Ostrovsky wrote: >> + if (cputopo) { >> + if ((ret = xc_hypercall_bounce_pre(xch, cputopo))) > I think this guy will tolerate a NULL here (and on post), so I > think/hope you can get away without this conditional stuff. Can you give > it a go please. I'll see if this works. (I can't mentally unwrap all these macros, I'll need to test it. Or at least run it through pre-processor) -boris > > The rest looked ok. > >