xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Ian Campbell <Ian.Campbell@citrix.com>
To: Mukesh Rathor <mukesh.rathor@oracle.com>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [RFC PATCH 7/8]: PVH: grant changes
Date: Sat, 18 Aug 2012 09:22:04 +0100	[thread overview]
Message-ID: <1345278124.23624.11.camel@dagon.hellion.org.uk> (raw)
In-Reply-To: <20120817170641.4261229b@mantra.us.oracle.com>

> > > HYPERVISOR_memory_op(XENMEM_add_to_physmap, &xatp); if (rc != 0) {
> > >  				printk(KERN_WARNING
> > > @@ -1053,7 +1058,7 @@ static void gnttab_request_version(void)
> > >  	int rc;
> > >  	struct gnttab_set_version gsv;
> > >  
> > > -	if (xen_hvm_domain())
> > > +	if (xen_hvm_domain() || xen_pvh_domain())
> > 
> > Does something stop pvh using v2?
> 
> I had some issue related to grstatus field that was added, so punted it
> for now. It's phase II which is a big phase now :) :)...

It seems like it's got a lot of most independent bits in it, so
hopefully you should get some help ;-)

> > >  
> > > -	if (xen_pv_domain())
> > > +	/* PVH note: xen will free existing kmalloc'd mfn in
> > > +	 * XENMEM_add_to_physmap */
> > > +	if (xen_pvh_domain() && !gnttab_shared.addr) {
> > > +		gnttab_shared.addr =
> > > +			kmalloc(max_nr_gframes * PAGE_SIZE,
> > > GFP_KERNEL);
> > > +		if ( !gnttab_shared.addr ) {
> > > +			printk(KERN_WARNING "%s", kmsg);
> > 
> > Why this construct instead of just the string literal?
>  
> To keep line overflow. I dont' like code spanning 80 columns. If you split,
> then you can't grep.

FWIW CodingStyle relaxes the 80 column limit for literal strings for
exactly this reason.

Ian.

      reply	other threads:[~2012-08-18  8:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-16  1:06 [RFC PATCH 7/8]: PVH: grant changes Mukesh Rathor
2012-08-17  9:52 ` Ian Campbell
2012-08-18  0:06   ` Mukesh Rathor
2012-08-18  8:22     ` Ian Campbell [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=1345278124.23624.11.camel@dagon.hellion.org.uk \
    --to=ian.campbell@citrix.com \
    --cc=Xen-devel@lists.xensource.com \
    --cc=konrad.wilk@oracle.com \
    --cc=mukesh.rathor@oracle.com \
    /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).