From: Patrick Colp <pjcolp@cs.ubc.ca>
To: xen-devel@lists.xensource.com
Subject: [PATCH 3 of 3] xenpaging: Add check to xenpaging tool for EPT error from Xen
Date: Tue, 27 Jul 2010 14:21:27 -0700 [thread overview]
Message-ID: <4c37dd3811993b1ce173.1280265687@talisker.cs.ubc.ca> (raw)
In-Reply-To: <patchbomb.1280265684@talisker.cs.ubc.ca>
# HG changeset patch
# User Patrick Colp <pjcolp@cs.ubc.ca>
# Date 1280265109 25200
# Node ID 4c37dd3811993b1ce173b3f5573be85cba1a53d9
# Parent 5a5bfb95a437cd860ab2da71c6534a2bef8fa558
xenpaging: Add check to xenpaging tool for EPT error from Xen.
Add a check in the xenpaging tool for the specific return code from Xen
indicating that the target guest isn't using EPT. Return an appropriate
error message so the user knows why xenpaging has failed.
Signed-off-by: Patrick Colp <pjcolp@cs.ubc.ca>
diff -r 5a5bfb95a437 -r 4c37dd381199 tools/xenpaging/xenpaging.c
--- a/tools/xenpaging/xenpaging.c Tue Jul 27 14:11:49 2010 -0700
+++ b/tools/xenpaging/xenpaging.c Tue Jul 27 14:11:49 2010 -0700
@@ -121,7 +121,10 @@
paging->mem_event.ring_page);
if ( rc != 0 )
{
- ERROR("Error initialising shared page");
+ if ( errno == ENODEV )
+ ERROR("EPT not supported for this guest");
+ else
+ ERROR("Error initialising mem-event connection");
goto err;
}
next prev parent reply other threads:[~2010-07-27 21:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 21:21 [PATCH 0 of 3] xenpaging: Check that EPT is enabled for target guest Patrick Colp
2010-07-27 21:21 ` [PATCH 1 of 3] xenpaging: Add a check to Xen for EPT Patrick Colp
2010-07-28 13:58 ` Ian Jackson
2010-07-28 13:59 ` Ian Jackson
2010-07-28 14:35 ` Patrick Colp
2010-07-28 15:19 ` Ian Jackson
2010-07-27 21:21 ` [PATCH 2 of 3] xenpaging: Fix-up xenpaging tool code Patrick Colp
2010-07-28 14:00 ` Ian Jackson
2010-07-28 14:57 ` Patrick Colp
2010-07-28 15:01 ` Gianni Tedesco
2010-07-28 15:28 ` Patrick Colp
2010-07-28 16:27 ` Patrick Colp
2010-07-28 15:06 ` Keir Fraser
2010-07-27 21:21 ` Patrick Colp [this message]
2010-09-15 8:37 ` [PATCH 3 of 3] xenpaging: Add check to xenpaging tool for EPT error from Xen Jiang, Yunhong
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=4c37dd3811993b1ce173.1280265687@talisker.cs.ubc.ca \
--to=pjcolp@cs.ubc.ca \
--cc=xen-devel@lists.xensource.com \
/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).