All of lore.kernel.org
 help / color / mirror / Atom feed
From: Elena Ufimtseva <elena.ufimtseva@oracle.com>
To: JBeulich@suse.com
Cc: yang.z.zhang@intel.com, andrew.cooper3@citrix.com,
	boris.ostrovsky@oracle.com, kevin.tian@intel.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 2/2] iommu: add rmrr Xen command line option for misc rmrrs
Date: Fri, 13 Mar 2015 05:19:52 -0700 (PDT)	[thread overview]
Message-ID: <0cb6532c-724d-4904-a7c6-67857a09f5da@default> (raw)


----- JBeulich@suse.com wrote:

> >>> On 12.03.15 at 21:52, <elena.ufimtseva@oracle.com> wrote:
> > On Mon, Mar 09, 2015 at 05:16:18PM +0000, Andrew Cooper wrote:
> >> On 09/03/15 14:42, elena.ufimtseva@oracle.com wrote:
> >> > --- a/xen/drivers/passthrough/iommu.c
> >> > +++ b/xen/drivers/passthrough/iommu.c
> >> > @@ -55,6 +55,9 @@ bool_t __read_mostly iommu_hap_pt_share = 1;
> >> >  bool_t __read_mostly iommu_debug;
> >> >  bool_t __read_mostly amd_iommu_perdev_intremap = 1;
> >> >  
> >> > +static char __initdata misc_rmrr[100];
> >> > +string_param("rmrr", misc_rmrr);
> >> 
> >> This wants to be a custom_param, not a string_param.
> > 
> > Andrew, can you please explain why its preferred?
> 
> Consistency.

Makes sense.
> 
> > Also, I wont be able to use xen dynamic allocator at this early
> stage, 
> > correct?
> 
> Yes. But by having a static limit on the string size you had already
> limited the number of entries, so having a static array instead won't
> make things worse.

Ok, will do it.

> 
> >> Furthermore, I think it would be better to match the existing
> ivrs_hpet[
> >> and ivrs_ioapic[ parameters as closely as possible, seeing as it is
> the
> >> same kind of overrides being added to ACPI tables.
> > 
> > Thanks Andrew, looks like preferred way looks like this:
> > rmrr=start<:end>[sbdf1, sbdf2, ...], ...
> 
> With the slight adjustment that
> 
> 	rmrr=start:<end:>sbdf1[,sbdf2[, ...]][; ...]
> 
> or even (considering that sbdf necessarily include : too)
> 
> 	rmrr=start<:end>=sbdf1[,sbdf2[, ...]][; ...]
> 
> will likely make it easier to parse unambiguously.

Ok, I will just need a bit of change for this.

> 
> Jan

             reply	other threads:[~2015-03-13 12:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-13 12:19 Elena Ufimtseva [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-03-09 14:42 [PATCH 0/2] iommu: add rmrr Xen command line option elena.ufimtseva
2015-03-09 14:42 ` [PATCH 2/2] iommu: add rmrr Xen command line option for misc rmrrs elena.ufimtseva
2015-03-09 15:25   ` Konrad Rzeszutek Wilk
2015-03-09 17:16   ` Andrew Cooper
2015-03-12 20:52     ` Elena Ufimtseva
2015-03-13  9:36       ` Jan Beulich
2015-03-10  2:47   ` Tian, Kevin
2015-03-10  6:24     ` Elena Ufimtseva
2015-03-10  8:26     ` Jan Beulich
2015-03-10 16:16     ` Elena Ufimtseva
2015-03-10 16:27       ` Jan Beulich
2015-03-10 18:30         ` Elena Ufimtseva

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=0cb6532c-724d-4904-a7c6-67857a09f5da@default \
    --to=elena.ufimtseva@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=kevin.tian@intel.com \
    --cc=xen-devel@lists.xen.org \
    --cc=yang.z.zhang@intel.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 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.