From: "Lai, Paul" <paul.c.lai@intel.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
ravi.sahita@intel.com, george.dunlap@citrix.com
Subject: Re: [PATCH Altp2m cleanup v5 1/3] altp2m cleanup work.
Date: Mon, 26 Sep 2016 10:25:35 -0700 [thread overview]
Message-ID: <20160926172534.GA10686@intel.com> (raw)
In-Reply-To: <57E9628E02000078001129C6@prv-mh.provo.novell.com>
On Mon, Sep 26, 2016 at 10:01:50AM -0600, Jan Beulich wrote:
> >>> On 13.09.16 at 18:46, <paul.c.lai@intel.com> wrote:
> > Indent goto labels by one space.
> > Inline (header) altp2m functions.
> > In do_altp2m_op(), during the sanity check of the passed command,
> > return -ENONSYS if not a valid command.
> > In do_altp2m_op(), when evaluating a command, ASSERT_UNREACHABLE()
> > if the command is not recognizable. The sanity check above should
> > have triggered the return of -ENOSYS.
> > Make altp2m_vcpu_emulate_ve() return actual bool_t (rather than return
> > void()).
> >
> > Signed-off-by: Paul Lai <paul.c.lai@intel.com>
> > ---
>
> It is very disappointing to find that there is still no information here
> on what changed from the previous version.
>
> > @@ -5349,6 +5362,8 @@ static int do_altp2m_op(
> > rc = p2m_change_altp2m_gfn(d, a.u.change_gfn.view,
> > _gfn(a.u.change_gfn.old_gfn),
> > _gfn(a.u.change_gfn.new_gfn));
> > + default:
> > + ASSERT_UNREACHABLE();
> > }
>
> And it is even worse that the bug pointed out here is still present.
I reread the comment in
https://lists.xenproject.org/archives/html/xen-devel/2016-09/msg00937.html
and missed the "unintended fallthrough".
Will correct.
>
> > /* emulates #VE */
> > -bool_t altp2m_vcpu_emulate_ve(struct vcpu *v);
> > +static inline bool_t altp2m_vcpu_emulate_ve(struct vcpu *v)
>
> Nor did you switch to plain bool here, as was requested during both
> v3 and v4 review.
I did not know "bool" existed, and thought "plain bool" was "bool_t".
I have looked around and see that "bool" is better defined ({0,1} instead of
{0, !0}) and hopefully understand your motivation for using/requiring it.
>
> Please do not resubmit this series until you have taken care of
> _all_ review comments you've received so far. As with the
> previous version I'm not going to spend time looking at the other
> two patches due to this fundamental requirement, despite
> having been pointed out before, not being met.
>
> Jan
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-09-26 17:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-13 16:46 [PATCH Altp2m cleanup v5 0/3] Cleaning up altp2m code Paul Lai
2016-09-13 16:46 ` [PATCH Altp2m cleanup v5 1/3] altp2m cleanup work Paul Lai
2016-09-26 16:01 ` Jan Beulich
2016-09-26 17:25 ` Lai, Paul [this message]
2016-09-13 16:46 ` [PATCH Altp2m cleanup v5 2/3] Move altp2m specific functions to altp2m files Paul Lai
2016-09-13 16:46 ` [PATCH Altp2m cleanup v5 3/3] Making altp2m domain dynamically allocated Paul Lai
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=20160926172534.GA10686@intel.com \
--to=paul.c.lai@intel.com \
--cc=JBeulich@suse.com \
--cc=george.dunlap@citrix.com \
--cc=ravi.sahita@intel.com \
--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 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).