From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Tamas K Lengyel <tamas.lengyel@zentific.com>,
xen-devel@lists.xenproject.org
Cc: kevin.tian@intel.com, ian.campbell@citrix.com,
stefano.stabellini@eu.citrix.com, jun.nakajima@intel.com,
eddie.dong@intel.com, ian.jackson@eu.citrix.com,
Aravind.Gopalakrishnan@amd.com, suravee.suthikulpanit@amd.com,
boris.ostrovsky@oracle.com
Subject: Re: [PATCH v3 2/2] tools/xen-access: Print gla valid/fault information
Date: Fri, 08 Aug 2014 09:07:33 +0100 [thread overview]
Message-ID: <53E48545.90005@citrix.com> (raw)
In-Reply-To: <1407453172-10785-2-git-send-email-tamas.lengyel@zentific.com>
On 08/08/2014 00:12, Tamas K Lengyel wrote:
> Extend the print-out of the memory violations to show gla valid/fault information.
>
> v2: Update to new fields and change printing 1/0 to y/n.
>
> Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
> ---
> tools/tests/xen-access/xen-access.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tools/tests/xen-access/xen-access.c b/tools/tests/xen-access/xen-access.c
> index 090df5f..378b205 100644
> --- a/tools/tests/xen-access/xen-access.c
> +++ b/tools/tests/xen-access/xen-access.c
> @@ -566,13 +566,16 @@ int main(int argc, char *argv[])
> }
>
> printf("PAGE ACCESS: %c%c%c for GFN %"PRIx64" (offset %06"
> - PRIx64") gla %016"PRIx64" (vcpu %d)\n",
> + PRIx64") gla %016"PRIx64" (valid: %c) fault in gpt: %c gpa has gla: %c (vcpu %d)\n",
As you likely need to repsin this patch, please correct %d to %u as
req.vcpu_id is unsigned.
~Andrew
> req.access_r ? 'r' : '-',
> req.access_w ? 'w' : '-',
> req.access_x ? 'x' : '-',
> req.gfn,
> req.offset,
> req.gla,
> + req.gla_valid ? 'y' : 'n',
> + req.fault_in_gpt ? 'y' : 'n',
> + req.fault_gla ? 'y': 'n',
> req.vcpu_id);
>
> if ( default_access != after_first_access )
next prev parent reply other threads:[~2014-08-08 8:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 23:12 [PATCH v3 1/2] x86/mem_event: Deliver gla fault EPT violation information Tamas K Lengyel
2014-08-07 23:12 ` [PATCH v3 2/2] tools/xen-access: Print gla valid/fault information Tamas K Lengyel
2014-08-08 8:07 ` Andrew Cooper [this message]
2014-08-07 23:33 ` [PATCH v3 1/2] x86/mem_event: Deliver gla fault EPT violation information Tian, Kevin
2014-08-08 7:00 ` Jan Beulich
2014-08-08 8:04 ` Andrew Cooper
2014-08-08 8:36 ` Tamas Lengyel
2014-08-08 8:57 ` Jan Beulich
2014-08-08 9:02 ` Andrew Cooper
2014-08-08 9:17 ` Tamas Lengyel
2014-08-08 8:48 ` Tamas Lengyel
2014-08-08 10:28 ` Tamas Lengyel
2014-08-08 10:34 ` Jan Beulich
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=53E48545.90005@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Aravind.Gopalakrishnan@amd.com \
--cc=boris.ostrovsky@oracle.com \
--cc=eddie.dong@intel.com \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jun.nakajima@intel.com \
--cc=kevin.tian@intel.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=tamas.lengyel@zentific.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).