From: Dario Faggioli <dario.faggioli@citrix.com>
To: Juergen Gross <jgross@suse.com>, xen-devel@lists.xen.org
Cc: wei.liu2@citrix.com, ian.jackson@eu.citrix.com
Subject: Re: [PATCH v2] libxl: memory size in kb requires 64 bit variable
Date: Thu, 28 Jul 2016 15:21:58 +0200 [thread overview]
Message-ID: <1469712118.5501.5.camel@citrix.com> (raw)
In-Reply-To: <4e4e22f7-c33e-f996-bf6c-e6b0658989a4@suse.com>
[-- Attachment #1.1: Type: text/plain, Size: 1237 bytes --]
On Thu, 2016-07-28 at 14:48 +0200, Juergen Gross wrote:
> On 28/07/16 14:11, Dario Faggioli wrote:
> >
> > > +static int libxl__memkb_32to64(libxl_ctx *ctx, int rc,
> > > + uint64_t val64, uint32_t *ptr32)
> > > +{
> > > + GC_INIT(ctx);
> > > +
> > > + if (rc)
> > > + goto out;
> > > +
> > > + *ptr32 = val64;
> > > + if (*ptr32 == val64)
> > > + goto out;
> > > +
> > > + LOGE(ERROR, "memory size %"PRIu64" too large for 32 bit
> > > value\n", val64);
> > > + rc = ERROR_FAIL;
> > > +
> > > +out:
> > > + GC_FREE;
> > > + return rc;
> > > +}
> > > +
> > ...does more 64to32 then 32to64, but maybe that's me, and, anyway,
> > it's
> > certainly not a big deal.
> Hmm, yes, I can see your point.
>
> Will do V3. Only doing the rename, can I keep your Reviewed-by: ?
>
Yes, you can.
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2016-07-28 13:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-22 6:53 [PATCH v2] libxl: memory size in kb requires 64 bit variable Juergen Gross
2016-07-28 12:11 ` Dario Faggioli
2016-07-28 12:48 ` Juergen Gross
2016-07-28 13:21 ` Dario Faggioli [this message]
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=1469712118.5501.5.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jgross@suse.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).