From: Wei Liu <wei.liu2@citrix.com>
To: Julien Grall <julien.grall@arm.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
oleksandr_tyshchenko@epam.com, Jan Beulich <JBeulich@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>,
"andrii_anisov@epam.com" <andrii_anisov@epam.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH for-next 8/9] xen: Introduce HAS_M2P config and use to protect mfn_to_gmfn call
Date: Thu, 18 Apr 2019 12:46:27 +0100 [thread overview]
Message-ID: <20190418114627.GC30543@zion.uk.xensource.com> (raw)
In-Reply-To: <fefbf936-c28d-8ae9-0560-8c0b0d6bc75a@arm.com>
On Wed, Apr 17, 2019 at 06:42:47PM +0100, Julien Grall wrote:
> Hi,
>
> @Wei, @Ian: Do you have any input?
Sorry I haven't been following this closely, but shouldn't we fix the
interface to return gfn instead? And then the mapping of it should
interpret the value properly per guest type.
I don't see immediately how user space program will need to access this
page for autotranslated guests though.
Wei.
>
> On 14/03/2019 07:55, Jan Beulich wrote:
> > > > > On 13.03.19 at 18:30, <julien.grall@arm.com> wrote:
> > > On 13/03/2019 15:20, Jan Beulich wrote:
> > > > > > > On 18.02.19 at 12:35, <julien.grall@arm.com> wrote:
> > > > > --- a/xen/common/domctl.c
> > > > > +++ b/xen/common/domctl.c
> > > > > @@ -205,7 +205,7 @@ void getdomaininfo(struct domain *d, struct
> > > xen_domctl_getdomaininfo *info)
> > > > > info->outstanding_pages = d->outstanding_pages;
> > > > > info->shr_pages = atomic_read(&d->shr_pages);
> > > > > info->paged_pages = atomic_read(&d->paged_pages);
> > > > > - info->shared_info_frame = mfn_to_gmfn(d, virt_to_mfn(d->shared_info));
> > > > > + info->shared_info_frame = gfn_x(domain_shared_info_gfn(d));
> > > >
> > > > I think this change wants to be accompanied by a warning attached
> > > > to the field declaration in the public header.
> > >
> > > Make sense.
> > >
> > > >
> > > > But I'd also like to have the tool stack maintainers' view on making
> > > > this field effectively unusable for Arm.
> > >
> > > The value in shared_info_frame was plain wrong since the creation of Xen Arm. So
> > > this is just making the error more obvious. I don't expect any user of it on Arm.
> >
> > Well, my request for tool stack maintainer input wasn't to put under
> > question that the field can't currently be used sensibly on Arm.
> > Instead I'm meaning to know whether it can be sensibly expected
> > for the tool stack to want to use the field uniformly, in which case
> > rather than making it more obviously not work it should be fixed
> > instead.
> >
> > Jan
> >
> >
>
> --
> Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
WARNING: multiple messages have this Message-ID (diff)
From: Wei Liu <wei.liu2@citrix.com>
To: Julien Grall <julien.grall@arm.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
oleksandr_tyshchenko@epam.com, Jan Beulich <JBeulich@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>,
"andrii_anisov@epam.com" <andrii_anisov@epam.com>,
Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [Xen-devel] [PATCH for-next 8/9] xen: Introduce HAS_M2P config and use to protect mfn_to_gmfn call
Date: Thu, 18 Apr 2019 12:46:27 +0100 [thread overview]
Message-ID: <20190418114627.GC30543@zion.uk.xensource.com> (raw)
Message-ID: <20190418114627.azqx6nEs_dm-KO7DXEyIN04cPXqBcgnpIahK6AtLY68@z> (raw)
In-Reply-To: <fefbf936-c28d-8ae9-0560-8c0b0d6bc75a@arm.com>
On Wed, Apr 17, 2019 at 06:42:47PM +0100, Julien Grall wrote:
> Hi,
>
> @Wei, @Ian: Do you have any input?
Sorry I haven't been following this closely, but shouldn't we fix the
interface to return gfn instead? And then the mapping of it should
interpret the value properly per guest type.
I don't see immediately how user space program will need to access this
page for autotranslated guests though.
Wei.
>
> On 14/03/2019 07:55, Jan Beulich wrote:
> > > > > On 13.03.19 at 18:30, <julien.grall@arm.com> wrote:
> > > On 13/03/2019 15:20, Jan Beulich wrote:
> > > > > > > On 18.02.19 at 12:35, <julien.grall@arm.com> wrote:
> > > > > --- a/xen/common/domctl.c
> > > > > +++ b/xen/common/domctl.c
> > > > > @@ -205,7 +205,7 @@ void getdomaininfo(struct domain *d, struct
> > > xen_domctl_getdomaininfo *info)
> > > > > info->outstanding_pages = d->outstanding_pages;
> > > > > info->shr_pages = atomic_read(&d->shr_pages);
> > > > > info->paged_pages = atomic_read(&d->paged_pages);
> > > > > - info->shared_info_frame = mfn_to_gmfn(d, virt_to_mfn(d->shared_info));
> > > > > + info->shared_info_frame = gfn_x(domain_shared_info_gfn(d));
> > > >
> > > > I think this change wants to be accompanied by a warning attached
> > > > to the field declaration in the public header.
> > >
> > > Make sense.
> > >
> > > >
> > > > But I'd also like to have the tool stack maintainers' view on making
> > > > this field effectively unusable for Arm.
> > >
> > > The value in shared_info_frame was plain wrong since the creation of Xen Arm. So
> > > this is just making the error more obvious. I don't expect any user of it on Arm.
> >
> > Well, my request for tool stack maintainer input wasn't to put under
> > question that the field can't currently be used sensibly on Arm.
> > Instead I'm meaning to know whether it can be sensibly expected
> > for the tool stack to want to use the field uniformly, in which case
> > rather than making it more obviously not work it should be fixed
> > instead.
> >
> > Jan
> >
> >
>
> --
> Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2019-04-18 11:46 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-18 11:35 [PATCH for-next 0/9] xen/arm: Properly disable M2P on Arm Julien Grall
2019-02-18 11:35 ` [PATCH for-next 1/9] xen/arm: Use mfn_to_pdx instead of pfn_to_pdx when possible Julien Grall
2019-04-15 21:55 ` Stefano Stabellini
2019-04-15 21:55 ` [Xen-devel] " Stefano Stabellini
2019-04-15 22:03 ` Julien Grall
2019-04-15 22:03 ` [Xen-devel] " Julien Grall
2019-04-15 22:25 ` Stefano Stabellini
2019-04-15 22:25 ` [Xen-devel] " Stefano Stabellini
2019-04-15 22:42 ` Julien Grall
2019-04-15 22:42 ` [Xen-devel] " Julien Grall
2019-04-17 17:07 ` Julien Grall
2019-04-17 17:07 ` [Xen-devel] " Julien Grall
2019-04-25 11:20 ` Jan Beulich
2019-04-25 11:20 ` [Xen-devel] " Jan Beulich
2019-04-29 16:30 ` Julien Grall
2019-04-29 16:30 ` [Xen-devel] " Julien Grall
2019-02-18 11:35 ` [PATCH for-next 2/9] xen/x86: Constify the parameter "d" in mfn_to_mfn Julien Grall
2019-03-13 14:40 ` Jan Beulich
2019-02-18 11:35 ` [PATCH for-next 3/9] xen/x86: Use mfn_to_gfn rather than mfn_to_gmfn Julien Grall
2019-03-13 14:45 ` Jan Beulich
2019-03-13 15:13 ` Julien Grall
2019-02-18 11:35 ` [PATCH for-next 4/9] xen/grant-table: Make arch specific macros typesafe Julien Grall
2019-03-13 14:51 ` Jan Beulich
2019-04-15 22:03 ` Stefano Stabellini
2019-04-15 22:03 ` [Xen-devel] " Stefano Stabellini
2019-04-15 22:07 ` Julien Grall
2019-04-15 22:07 ` [Xen-devel] " Julien Grall
2019-02-18 11:35 ` [PATCH for-next 5/9] xen: Convert hotplug page function to use typesafe MFN Julien Grall
2019-03-13 14:57 ` Jan Beulich
2019-03-13 16:26 ` Julien Grall
2019-02-18 11:35 ` [PATCH for-next 6/9] xen: Convert is_xen_fixed_mfn " Julien Grall
2019-03-13 14:58 ` Jan Beulich
2019-04-15 22:05 ` Stefano Stabellini
2019-04-15 22:05 ` [Xen-devel] " Stefano Stabellini
2019-02-18 11:35 ` [PATCH for-next 7/9] xen: Convert is_xen_heap_mfn " Julien Grall
2019-03-13 15:04 ` Jan Beulich
2019-03-13 17:24 ` Julien Grall
2019-03-14 7:52 ` Jan Beulich
2019-03-14 10:12 ` Julien Grall
2019-03-14 10:14 ` Andrew Cooper
2019-03-14 10:19 ` Julien Grall
2019-03-14 11:47 ` Jan Beulich
2019-03-14 12:18 ` Andrew Cooper
2019-04-15 22:08 ` Stefano Stabellini
2019-04-15 22:08 ` [Xen-devel] " Stefano Stabellini
2019-02-18 11:35 ` [PATCH for-next 8/9] xen: Introduce HAS_M2P config and use to protect mfn_to_gmfn call Julien Grall
2019-03-13 15:20 ` Jan Beulich
2019-03-13 17:30 ` Julien Grall
2019-03-14 7:55 ` Jan Beulich
2019-04-17 17:42 ` Julien Grall
2019-04-17 17:42 ` [Xen-devel] " Julien Grall
2019-04-18 11:46 ` Wei Liu [this message]
2019-04-18 11:46 ` Wei Liu
2019-04-18 15:09 ` Julien Grall
2019-04-18 15:09 ` [Xen-devel] " Julien Grall
2019-04-24 15:28 ` Julien Grall
2019-04-24 15:28 ` [Xen-devel] " Julien Grall
2019-04-25 10:03 ` Wei Liu
2019-04-25 10:03 ` [Xen-devel] " Wei Liu
2019-04-15 22:17 ` Stefano Stabellini
2019-04-15 22:17 ` [Xen-devel] " Stefano Stabellini
2019-04-25 10:06 ` Jan Beulich
2019-04-25 10:06 ` [Xen-devel] " Jan Beulich
2019-02-18 11:36 ` [PATCH for-next 9/9] xen: Remove mfn_to_gmfn macro Julien Grall
2019-03-13 15:22 ` Jan Beulich
2019-03-13 15:24 ` Julien Grall
2019-03-13 15:40 ` Jan Beulich
2019-03-13 15:48 ` Julien Grall
2019-03-13 15:59 ` Jan Beulich
2019-03-13 17:34 ` Andrew Cooper
2019-03-13 17:42 ` Julien Grall
2019-03-13 18:41 ` Andrew Cooper
2019-03-14 8:05 ` Jan Beulich
2019-03-14 7:59 ` Jan Beulich
2019-05-07 14:35 ` Julien Grall
2019-05-07 14:35 ` [Xen-devel] " Julien Grall
2019-04-15 22:19 ` Stefano Stabellini
2019-04-15 22:19 ` [Xen-devel] " Stefano Stabellini
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=20190418114627.GC30543@zion.uk.xensource.com \
--to=wei.liu2@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=andrii_anisov@epam.com \
--cc=julien.grall@arm.com \
--cc=konrad.wilk@oracle.com \
--cc=oleksandr_tyshchenko@epam.com \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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.