* [PATCH] iommu: Elaborate the usage of RMRR specification on the command line.
@ 2017-02-21 20:42 Venu Busireddy
2017-02-22 8:52 ` Jan Beulich
0 siblings, 1 reply; 3+ messages in thread
From: Venu Busireddy @ 2017-02-21 20:42 UTC (permalink / raw)
To: venu.busireddy
Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
Ian Jackson, Tim Deegan, Jan Beulich, xen-devel
As some users have suggested, elaborate the usage of RMRR specification
on the command line, and provide a usage example.
Signed-off-by: Venu Busireddy <venu.busireddy@oracle.com>
---
docs/misc/xen-command-line.markdown | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown
index 3acbb33..77e0a20 100644
--- a/docs/misc/xen-command-line.markdown
+++ b/docs/misc/xen-command-line.markdown
@@ -1406,6 +1406,15 @@ If segment of the first device is not specified, segment zero will be used.
If other segments are not specified, first device segment will be used.
If a segment is specified for other than the first device and it does not match
the one specified for the first one, an error will be reported.
+
+'start' and 'end' values are page numbers (not full physical addresses).
+If the values are not preceded by "0x", they are treated as decimal.
+
+Usage example: If there are two devices 0:0:1d.0 and 0:0:1a.0 that require
+pages 0xd5d45 and 0xd5d46 to be reserved respectively, use:
+
+rmrr=0xd5d45=0:0:1d.0;0xd5d46=0:0:1a.0
+
Note: grub2 requires to escape or use quotations if special characters are used,
namely ';', refer to the grub2 documentation if multiple ranges are specified.
--
1.7.1
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] iommu: Elaborate the usage of RMRR specification on the command line.
2017-02-21 20:42 [PATCH] iommu: Elaborate the usage of RMRR specification on the command line Venu Busireddy
@ 2017-02-22 8:52 ` Jan Beulich
2017-02-23 17:03 ` Venu Busireddy
0 siblings, 1 reply; 3+ messages in thread
From: Jan Beulich @ 2017-02-22 8:52 UTC (permalink / raw)
To: Venu Busireddy
Cc: Tim Deegan, Stefano Stabellini, Wei Liu, George Dunlap,
Andrew Cooper, Ian Jackson, xen-devel
>>> On 21.02.17 at 21:42, <venu.busireddy@oracle.com> wrote:
> --- a/docs/misc/xen-command-line.markdown
> +++ b/docs/misc/xen-command-line.markdown
> @@ -1406,6 +1406,15 @@ If segment of the first device is not specified, segment zero will be used.
> If other segments are not specified, first device segment will be used.
> If a segment is specified for other than the first device and it does not match
> the one specified for the first one, an error will be reported.
> +
> +'start' and 'end' values are page numbers (not full physical addresses).
> +If the values are not preceded by "0x", they are treated as decimal.
Actually I think we should fix the code. I can't see how decimal
numbers can be useful here, and it is actively confusing with ...
> +Usage example: If there are two devices 0:0:1d.0 and 0:0:1a.0 that require
> +pages 0xd5d45 and 0xd5d46 to be reserved respectively, use:
> +
> +rmrr=0xd5d45=0:0:1d.0;0xd5d46=0:0:1a.0
... the PCI device being specified without 0x prefixes.
Also can one of the two parts of the example be a range, please?
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] iommu: Elaborate the usage of RMRR specification on the command line.
2017-02-22 8:52 ` Jan Beulich
@ 2017-02-23 17:03 ` Venu Busireddy
0 siblings, 0 replies; 3+ messages in thread
From: Venu Busireddy @ 2017-02-23 17:03 UTC (permalink / raw)
To: Jan Beulich
Cc: Tim Deegan, Stefano Stabellini, Wei Liu, George Dunlap,
Andrew Cooper, Ian Jackson, xen-devel
On Wed, Feb 22, 2017 at 01:52:02AM -0700, Jan Beulich wrote:
> >>> On 21.02.17 at 21:42, <venu.busireddy@oracle.com> wrote:
> > --- a/docs/misc/xen-command-line.markdown
> > +++ b/docs/misc/xen-command-line.markdown
> > @@ -1406,6 +1406,15 @@ If segment of the first device is not specified, segment zero will be used.
> > If other segments are not specified, first device segment will be used.
> > If a segment is specified for other than the first device and it does not match
> > the one specified for the first one, an error will be reported.
> > +
> > +'start' and 'end' values are page numbers (not full physical addresses).
> > +If the values are not preceded by "0x", they are treated as decimal.
>
> Actually I think we should fix the code. I can't see how decimal
> numbers can be useful here, and it is actively confusing with ...
Fixed. I will post v2 for review.
> > +Usage example: If there are two devices 0:0:1d.0 and 0:0:1a.0 that require
> > +pages 0xd5d45 and 0xd5d46 to be reserved respectively, use:
> > +
> > +rmrr=0xd5d45=0:0:1d.0;0xd5d46=0:0:1a.0
>
> ... the PCI device being specified without 0x prefixes.
>
> Also can one of the two parts of the example be a range, please?
This too is done. v2 will be posted for review.
Venu
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-23 17:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-21 20:42 [PATCH] iommu: Elaborate the usage of RMRR specification on the command line Venu Busireddy
2017-02-22 8:52 ` Jan Beulich
2017-02-23 17:03 ` Venu Busireddy
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).