From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>
Cc: Keir Fraser <keir@xen.org>
Subject: Re: [PATCH RFC 5/4] x86: #PF error code adjustments
Date: Wed, 11 Nov 2015 16:30:28 +0000 [thread overview]
Message-ID: <56436D24.9040206@citrix.com> (raw)
In-Reply-To: <56430B8602000078000B3A58@prv-mh.provo.novell.com>
On 11/11/15 08:33, Jan Beulich wrote:
> Add a definition for the (for now unused) protection key related error
> code bit, moving our own custom ones out of the way. In the course of
> checking the uses of the latter I realized that while right now they
> can only get set on their own, callers would better not depend on that
> property and check just for the bit rather than matching the entire
> value.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
For the code presented, Reviewed-by: Andrew Cooper
<andrew.cooper3@citrix.com>
> ---
> RFC because I noticed that nothing seems to ever set PFEC_page_paged,
> so I wonder whether we really need that flag.
It is set in hap_p2m_ga_to_gfn() for frames with types of P2M_PAGING_TYPES
Did you miss this, or wish to imply that it is actually dead code?
>
> It also seems to me that the part of paging_gva_to_gfn() dealing with
> the nested case can't be quite right: Neither is there any check after
> mode->gva_to_gfn() (namely ignoring INVALID_GFN being returned), nor
> does the handling of the two involved error code values seem
> reasonable. One of the many reasons why nested HVM can't be expected to
> reach "supported" state any time soon, I guess.
I concur. Yet another item on the "nested" todo list.
next prev parent reply other threads:[~2015-11-11 16:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-10 17:35 [PATCH 0/4] x86: XSA-156 follow-ups Jan Beulich
2015-11-10 17:38 ` [PATCH 1/4] x86/HVM: don't inject #DB with error code Jan Beulich
2015-11-10 17:42 ` Andrew Cooper
2015-12-03 7:46 ` Tian, Kevin
2015-12-03 8:14 ` Jan Beulich
2015-12-03 8:38 ` Tian, Kevin
2015-12-03 9:09 ` Jan Beulich
2015-11-10 17:39 ` [PATCH 2/4] x86/HVM: unify and fix #UD intercept Jan Beulich
2015-11-10 17:51 ` Andrew Cooper
2015-12-03 7:49 ` Tian, Kevin
2015-11-10 17:40 ` [PATCH 3/4] x86/SVM: don't exceed segment limit when fetching instruction bytes Jan Beulich
2015-11-10 18:27 ` Boris Ostrovsky
2015-11-11 16:01 ` Andrew Cooper
2015-11-10 17:40 ` [PATCH 4/4] x86/traps: honor EXT bit in error codes Jan Beulich
2015-11-10 18:20 ` Andrew Cooper
2015-11-11 8:50 ` Jan Beulich
2015-11-11 9:23 ` [PATCH v2 " Jan Beulich
2015-11-11 15:50 ` Andrew Cooper
2015-12-03 9:04 ` Tian, Kevin
2015-11-11 8:33 ` [PATCH RFC 5/4] x86: #PF error code adjustments Jan Beulich
2015-11-11 16:30 ` Andrew Cooper [this message]
2015-11-12 10:12 ` Jan Beulich
2015-11-11 8:39 ` [PATCH 6/4] x86/event: correct debug event generation Jan Beulich
2015-11-11 8:47 ` Razvan Cojocaru
2015-11-11 16:09 ` Andrew Cooper
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=56436D24.9040206@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@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.