xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, Xiong Zhang <xiong.y.zhang@intel.com>
Cc: andrew.cooper3@citrix.com, paul.durrant@citrix.com,
	yu.c.zhang@linux.intel.com, zhiyuan.lv@intel.com,
	xen-devel@lists.xen.org
Subject: Re: [PATCH V2] x86/ioreq server: Fix XenGT couldn't reboot when XenGT use p2m_ioreq_server p2m_type
Date: Tue, 9 May 2017 11:21:39 +0100	[thread overview]
Message-ID: <2bf60a83-7119-316c-e94c-c101677f74f2@citrix.com> (raw)
In-Reply-To: <5911B1350200007800158216@prv-mh.provo.novell.com>

On 09/05/17 11:08, Jan Beulich wrote:
>>>> On 09.05.17 at 11:44, <george.dunlap@citrix.com> wrote:
>> On 09/05/17 22:22, Xiong Zhang wrote:
>>> --- a/xen/arch/x86/mm/p2m-ept.c
>>> +++ b/xen/arch/x86/mm/p2m-ept.c
>>> @@ -502,7 +502,7 @@ static int ept_invalidate_emt_range(struct p2m_domain *p2m,
>>>   * - zero if no adjustment was done,
>>>   * - a positive value if at least one adjustment was done.
>>>   */
>>> -static int resolve_misconfig(struct p2m_domain *p2m, unsigned long gfn)
>>> +static int ept_resolve_misconfig(struct p2m_domain *p2m, unsigned long gfn)
>>
>> I think while we're renaming this I'd rename this to ept_do_recalc().
> 
> Which gets me to ask (once again) what purpose the ept_ prefix
> has for a static function. I'd rather see this called do_recalc(), and
> the p2m-pt variant could be left unchanged altogether.

Well we should have them both named do_recalc() (no prefix), or have
them both tagged to specify which version they're for.  ISTR people
complaining about duplicate static symbols making things harder to debug
(i.e., is this do_recalc() in the stack trace the p2m-pt version or the
p2m-ept version?), so the latter is probably preferable.

"p2m_pt_" does seem like kind of a long prefix, but that seems to be
what the rest of the p2m_pt.c functions are called, so at this point
it's probably best to follow suit.

 -George

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2017-05-09 10:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-09 21:22 [PATCH V2] x86/ioreq server: Fix XenGT couldn't reboot when XenGT use p2m_ioreq_server p2m_type Xiong Zhang
2017-05-09  9:44 ` George Dunlap
2017-05-09 10:08   ` Jan Beulich
2017-05-09 10:21     ` George Dunlap [this message]
2017-05-09 10:51       ` Jan Beulich
2017-05-09 11:02         ` George Dunlap
2017-05-10 22:57           ` [PATCH V3] x86/ioreq_server: Make p2m_finish_type_change actually work Xiong Zhang
2017-05-10 10:34             ` George Dunlap
2017-05-10 10:41             ` Jan Beulich
2017-05-12  2:42             ` [PATCH V4] " Xiong Zhang
2017-05-11 11:12               ` Jan Beulich
2017-05-11 17:46                 ` Julien Grall
2017-05-13  0:34                   ` [PATCH V5] " Xiong Zhang
2017-05-15 13:47                     ` George Dunlap
2017-05-17 13:58                       ` Julien Grall
2017-05-15 13:46               ` [PATCH V4] " George Dunlap
2017-05-09 10:22     ` [PATCH V2] x86/ioreq server: Fix XenGT couldn't reboot when XenGT use p2m_ioreq_server p2m_type Zhang, Xiong Y

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=2bf60a83-7119-316c-e94c-c101677f74f2@citrix.com \
    --to=george.dunlap@citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=paul.durrant@citrix.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xiong.y.zhang@intel.com \
    --cc=yu.c.zhang@linux.intel.com \
    --cc=zhiyuan.lv@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 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).