All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Elena Ufimtseva <elena.ufimtseva@oracle.com>
Cc: yang.z.zhang@intel.com, Andrew Cooper <andrew.cooper3@citrix.com>,
	kevin.tian@intel.com, boris.ostrovsky@oracle.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 09:36:41 +0000	[thread overview]
Message-ID: <5502BDB90200007800069A43@mail.emea.novell.com> (raw)
In-Reply-To: <20150312205233.GB3047@elena.ufimtseva>

>>> 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.

> 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.

>> 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.

Jan

  reply	other threads:[~2015-03-13  9:36 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-09 14:42 [PATCH 0/2] iommu: add rmrr Xen command line option elena.ufimtseva
2015-03-09 14:42 ` [PATCH 1/2] iommu VT-d: separate rmrr addition function elena.ufimtseva
2015-03-09 15:10   ` Konrad Rzeszutek Wilk
2015-03-10  2:33   ` Tian, Kevin
2015-03-11 10:29   ` Jan Beulich
2015-03-12 20:48     ` Elena Ufimtseva
2015-03-13  8:53       ` Jan Beulich
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 [this message]
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
2015-03-13 12:19 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=5502BDB90200007800069A43@mail.emea.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=elena.ufimtseva@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.