From: Venu Busireddy <venu.busireddy@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Elena Ufimtseva <elena.ufimtseva@oracle.com>,
Kevin Tian <kevin.tian@intel.com>, Feng Wu <feng.wu@intel.com>,
xen-devel@lists.xen.org
Subject: Re: [PATCH v14 3/3] iommu: add rmrr Xen command line option for extra rmrrs
Date: Tue, 24 Jan 2017 09:58:13 -0600 [thread overview]
Message-ID: <20170124155813.GA3018@lenovo> (raw)
In-Reply-To: <5887866202000078001336E8@prv-mh.provo.novell.com>
On Tue, Jan 24, 2017 at 08:52:50AM -0700, Jan Beulich wrote:
> >>> On 24.01.17 at 16:35, <venu.busireddy@oracle.com> wrote:
> > On Tue, Jan 24, 2017 at 01:46:44AM -0700, Jan Beulich wrote:
> >> >>> On 23.01.17 at 19:20, <venu.busireddy@oracle.com> wrote:
> >> > + overlap = false;
> >> > + list_for_each_entry(rmrru, &acpi_rmrr_units, list)
> >> > + {
> >> > + if ( pfn_to_paddr(base) <= rmrru->end_address &&
> >> > + rmrru->base_address <= pfn_to_paddr(end) )
> >>
> >> So this now looks correct as long as rmrru->base_address is
> >> page aligned (as required by the spec), which should be good
> >> enough for now (considering that we make this assumption
> >> elsewhere). Nevertheless it would have been nice if you had,
> >> following the subsequent discussion with Elena, accounted for
> >> spec violations here.
> >>
> >> > + rmrr->segment = seg;
> >> > + rmrr->base_address = pfn_to_paddr(user_rmrrs[i].base_pfn);
> >> > + /* Align the end_address to the end of the page */
> >> > + rmrr->end_address = pfn_to_paddr(user_rmrrs[i].end_pfn) |
> > ~PAGE_MASK_4K;
> >>
> >> Hmm, Ive just checked - in my reply to Elena I had intentionally used
> >> PAGE_MASK here (and I recall correcting it from PAGE_MASK_4K).
> >> What has led you to use PAGE_MASK_4K here, when pfn_to_paddr()
> >> uses PAGE_SHIFT?
> >
> > Elena suggested to use PAGE_MASK_4K because the functions in
> > drivers/passthrough/vtd/iommu.c (including rmrr_identity_mapping())
> > use the _4K. With the current assumptions, both will work.
>
> Granted this is somewhat of a mess, but I'd prefer if at least within
> a single statement things would be consistent in which page size is
> being meant.
>
> > If you would like me to change this to PAGE_MASK, I will do so before
> > committing. Please let me know.
>
> As said, I don't see a need for you to re-submit, unless there are
> other issues in need of taking care of.
Sure. I will change it to PAGE_MASK, but I will not resubmit the
patches. I will change it and commit it. Of course, assuming that there
are no other changes suggested by others.
Do I understand that I have your Ack?
>
> Jan
>
Venu
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-01-24 15:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-23 18:20 [PATCH v14 0/3] iommu: add rmrr Xen command line option Venu Busireddy
2017-01-23 18:20 ` [PATCH v14 1/3] iommu VT-d: separate rmrr addition function Venu Busireddy
2017-01-24 8:33 ` Jan Beulich
2017-01-25 2:26 ` Tian, Kevin
2017-01-23 18:20 ` [PATCH v14 2/3] pci: add wrapper for parse_pci Venu Busireddy
2017-01-23 18:20 ` [PATCH v14 3/3] iommu: add rmrr Xen command line option for extra rmrrs Venu Busireddy
2017-01-24 8:46 ` Jan Beulich
2017-01-24 15:35 ` Venu Busireddy
2017-01-24 15:52 ` Jan Beulich
2017-01-24 15:58 ` Venu Busireddy [this message]
2017-01-24 16:08 ` Jan Beulich
2017-01-24 20:30 ` Venu Busireddy
2017-01-25 2:28 ` Tian, Kevin
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=20170124155813.GA3018@lenovo \
--to=venu.busireddy@oracle.com \
--cc=JBeulich@suse.com \
--cc=elena.ufimtseva@oracle.com \
--cc=feng.wu@intel.com \
--cc=kevin.tian@intel.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.