All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: george.dunlap@eu.citrix.com, ian.jackson@eu.citrix.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH v2 3/4] libxc/tbuf: Use the xc_hypercall_bounce_[pre|post] instead of memcpy
Date: Wed, 18 Jun 2014 09:59:56 -0400	[thread overview]
Message-ID: <20140618135956.GA4651@laptop.dumpdata.com> (raw)
In-Reply-To: <1403099705.6568.26.camel@kazak.uk.xensource.com>

On Wed, Jun 18, 2014 at 02:55:05PM +0100, Ian Campbell wrote:
> On Fri, 2014-06-13 at 16:41 -0400, Konrad Rzeszutek Wilk wrote:
> > for bounce buffer of the xc_cpumask_t.
> 
> You just added this stuff in the previous patch. Why not fold?

I was thinking it might be a bit too busy.

But I will be more than happy to fold it in.
> 
> > Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> > ---
> >  tools/libxc/xc_tbuf.c |   13 ++++++-------
> >  1 files changed, 6 insertions(+), 7 deletions(-)
> > 
> > diff --git a/tools/libxc/xc_tbuf.c b/tools/libxc/xc_tbuf.c
> > index 2828aee..85156dd 100644
> > --- a/tools/libxc/xc_tbuf.c
> > +++ b/tools/libxc/xc_tbuf.c
> > @@ -116,7 +116,7 @@ int xc_tbuf_disable(xc_interface *xch)
> >  int xc_tbuf_set_cpu_mask(xc_interface *xch, xc_cpumap_t mask, int bits)
> >  {
> >      DECLARE_SYSCTL;
> > -    DECLARE_HYPERCALL_BUFFER(uint8_t, bytemap);
> > +    DECLARE_HYPERCALL_BOUNCE(mask, 0, XC_HYPERCALL_BUFFER_BOUNCE_IN);
> 
> s/0/DIV_ROUND_UP(bits, 8)/ works here and avoids the need for
> HYPERCALL_BOUNCE_SET_SIZE (I think). 

<nods>
> 
> The SET_SIZE macro is only generally used when you don't know the size
> at declaration time (i.e. because you need to query it first).
> 
> Ian.
> 

  reply	other threads:[~2014-06-18 13:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-13 20:41 [PATCH v2] Support CPU-list parsing in xentrace Konrad Rzeszutek Wilk
2014-06-13 20:41 ` [PATCH v2 1/4] xentrace: Use PERROR from xc_private. instead of our own Konrad Rzeszutek Wilk
2014-06-16 11:43   ` George Dunlap
2014-06-16 11:46     ` Ian Campbell
2014-06-16 11:49     ` Andrew Cooper
2014-06-16 13:43       ` Konrad Rzeszutek Wilk
2014-06-13 20:41 ` [PATCH v2 2/4] libxc/xentrace: Replace xc_tbuf_set_cpu_mask with CPU mask with xc_cpumap_t instead of uint32_t Konrad Rzeszutek Wilk
2014-06-16 13:30   ` George Dunlap
2014-06-16 13:43     ` Konrad Rzeszutek Wilk
2014-06-13 20:41 ` [PATCH v2 3/4] libxc/tbuf: Use the xc_hypercall_bounce_[pre|post] instead of memcpy Konrad Rzeszutek Wilk
2014-06-18 13:55   ` Ian Campbell
2014-06-18 13:59     ` Konrad Rzeszutek Wilk [this message]
2014-06-13 20:41 ` [PATCH v2 4/4] xentrace: Implement cpu mask range parsing of human values (-c) Konrad Rzeszutek Wilk
2014-06-16 14:36   ` George Dunlap

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=20140618135956.GA4651@laptop.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.jackson@eu.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 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.