All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Lai, Paul C" <paul.c.lai@intel.com>
To: Tamas K Lengyel <tamas.k.lengyel@gmail.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	"Sahita, Ravi" <ravi.sahita@intel.com>,
	"george.dunlap@citrix.com" <george.dunlap@citrix.com>,
	Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH Altp2m cleanup v4 2/4] altp2m cleanup work
Date: Thu, 8 Sep 2016 16:45:13 +0000	[thread overview]
Message-ID: <8CA46881B83C354B99AD61C20C93EB1BE45078@ORSMSX109.amr.corp.intel.com> (raw)
In-Reply-To: <CABfawh=w83+UDMe-F=vprqY_bc1T-Ym8CyHdXtmwvhu+xRiUaw@mail.gmail.com>

[Paul2] in-line

-----Original Message-----
From: Tamas K Lengyel [mailto:tamas.k.lengyel@gmail.com] 
Sent: Thursday, September 8, 2016 9:07 AM
To: Lai, Paul C <paul.c.lai@intel.com>
Cc: Jan Beulich <JBeulich@suse.com>; xen-devel <xen-devel@lists.xenproject.org>; Sahita, Ravi <ravi.sahita@intel.com>; george.dunlap@citrix.com
Subject: Re: [Xen-devel] [PATCH Altp2m cleanup v4 2/4] altp2m cleanup work

On Thu, Sep 8, 2016 at 9:50 AM, Lai, Paul C <paul.c.lai@intel.com> wrote:
> [Paul] in-line
>
> -----Original Message-----
> From: Jan Beulich [mailto:JBeulich@suse.com]
> Sent: Thursday, September 8, 2016 7:47 AM
> To: Lai, Paul C <paul.c.lai@intel.com>
> Cc: george.dunlap@citrix.com; Sahita, Ravi <ravi.sahita@intel.com>; 
> xen-devel <xen-devel@lists.xenproject.org>
> Subject: Re: [PATCH Altp2m cleanup v4 2/4] altp2m cleanup work
>
>>>> On 08.09.16 at 00:04, <paul.c.lai@intel.com> wrote:
>> Indent goto labels by one space
>> Inline (header) altp2m functions
>> Define default behavior in switch
>> Define max and min for range of altp2m macroed values
>>
>> Signed-off-by: Paul Lai <paul.c.lai@intel.com>
>> ---
>
> Missing a brief summary of changes from previous version here.
>
>> @@ -5413,6 +5426,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();
>>      }
>
> Did you test anything using HVMOP_altp2m_change_gfn with this change, on a debug build? There's obviously an unintended fall- through right now.
>
> [Paul] - Yes, this patch series was tested with Tamas's HVMOP_altp2m_change_gfn in a debug build.

Not sure what you used here, the xen-access tool right now in Xen doesn't (yet) exercise the gfn remapping, only the mem-access parts.
Sergej has a patch for this in the arm-altp2m series though.

Tamas

[Paul2] All I was testing was if xen-access behaved as before the gfn remapping patch was introduced.  After the gfn remapping patch was introduced, 'xen-acess -m 1 altp2m_write' hanged the system.  Now, with your fix, it doesn't and the output of xen-access appears as before.   Thanks, -Paul
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

  reply	other threads:[~2016-09-08 16:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-07 22:04 [PATCH Altp2m cleanup v4 0/4] Cleaning up altp2m code Paul Lai
2016-09-07 22:04 ` [PATCH Altp2m cleanup v4 1/4] x86/HVM: adjust feature checking in MSR intercept handling Paul Lai
2016-09-08 10:32   ` Jan Beulich
2016-09-08 15:38     ` Lai, Paul C
2016-09-07 22:04 ` [PATCH Altp2m cleanup v4 2/4] altp2m cleanup work Paul Lai
2016-09-08 14:46   ` Jan Beulich
2016-09-08 15:50     ` Lai, Paul C
2016-09-08 16:06       ` Tamas K Lengyel
2016-09-08 16:45         ` Lai, Paul C [this message]
2016-09-12 10:47           ` George Dunlap
2016-09-13 17:38             ` Lai, Paul
2016-09-14 13:39               ` George Dunlap
2016-09-07 22:04 ` [PATCH Altp2m cleanup v4 3/4] Move altp2m specific functions to altp2m files Paul Lai
2016-09-08 15:02   ` Jan Beulich
2016-09-08 18:04     ` Lai, Paul C
2016-09-07 22:04 ` [PATCH Altp2m cleanup v4 4/4] Making altp2m struct 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=8CA46881B83C354B99AD61C20C93EB1BE45078@ORSMSX109.amr.corp.intel.com \
    --to=paul.c.lai@intel.com \
    --cc=JBeulich@suse.com \
    --cc=george.dunlap@citrix.com \
    --cc=ravi.sahita@intel.com \
    --cc=tamas.k.lengyel@gmail.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 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.