From: Andrew Cooper <andrew.cooper3@citrix.com>
To: "Wu, Feng" <feng.wu@intel.com>
Cc: "Tian, Kevin" <kevin.tian@intel.com>,
"ian.campbell@citrix.com" <ian.campbell@citrix.com>,
"Dong, Eddie" <eddie.dong@intel.com>,
"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
Jan Beulich <JBeulich@suse.com>,
"Nakajima, Jun" <jun.nakajima@intel.com>
Subject: Re: [PATCH v3 7/9] x86: Enable Supervisor Mode Access Prevention (SMAP) for Xen
Date: Mon, 28 Apr 2014 10:53:15 +0100 [thread overview]
Message-ID: <535E250B.10900@citrix.com> (raw)
In-Reply-To: <E959C4978C3B6342920538CF579893F001F487EF@SHSMSX104.ccr.corp.intel.com>
On 28/04/14 10:50, Wu, Feng wrote:
>>>> if ( unlikely(current->domain->arch.suppress_spurious_page_faults) )
>>>> {
>>>> - pf_type = spurious_page_fault(addr, error_code);
>>>> - if ( pf_type == smep_fault )
>>>> + pf_type = spurious_page_fault(addr, regs);
>>>> + if ( (pf_type == smep_fault) || (pf_type == smap_fault))
>>>> {
>>>> - gdprintk(XENLOG_ERR, "Fatal SMEP fault\n");
>>>> + printk(XENLOG_G_ERR "%p fatal %s fault\n",
>>>> + current, (pf_type == smep_fault) ? "SMEP" :
>> "SMAP");
>>
>> That should be %pv rather than %p, which is an automagic format
>> parameter which will get you "d<domid>v<vcpuid>" formatted.
> Thanks Andrew, I thought it was a typo in your last review:)
We are slowly accumulating useful custom %p formatting, similar to Linux.
docs/misc/printk-formats.txt shows the current extensions supported.
~Andrew
next prev parent reply other threads:[~2014-04-28 9:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-28 3:17 [PATCH v3 7/9] x86: Enable Supervisor Mode Access Prevention (SMAP) for Xen Feng Wu
2014-04-28 9:40 ` Jan Beulich
2014-04-28 9:48 ` Andrew Cooper
2014-04-28 9:50 ` Wu, Feng
2014-04-28 9:53 ` Andrew Cooper [this message]
2014-04-28 9:54 ` Wu, Feng
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=535E250B.10900@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=eddie.dong@intel.com \
--cc=feng.wu@intel.com \
--cc=ian.campbell@citrix.com \
--cc=jun.nakajima@intel.com \
--cc=kevin.tian@intel.com \
--cc=xen-devel@lists.xen.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.