From: Ryan Harper <ryanh@us.ibm.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: avi@redhat.com, mtosatti@redhat.com, anthony@codemonkey.ws,
kvm@vger.kernel.org
Subject: Re: [PATCH] Print a user-friendly message on failed vmentry
Date: Wed, 19 May 2010 20:28:52 -0500 [thread overview]
Message-ID: <20100520012852.GK14379@us.ibm.com> (raw)
In-Reply-To: <1274303782-21497-1-git-send-email-m.gamal005@gmail.com>
* Mohammed Gamal <m.gamal005@gmail.com> [2010-05-19 16:17]:
> This patch address bug report in https://bugs.launchpad.net/qemu/+bug/530077.
>
> Failed vmentries were handled with handle_unhandled() which prints a rather
> unfriendly message to the user. This patch separates handling vmentry failures
> from unknown exit reasons and prints a friendly message to the user.
>
> Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
> ---
> qemu-kvm.c | 16 +++++++++++++++-
> 1 files changed, 15 insertions(+), 1 deletions(-)
>
> diff --git a/qemu-kvm.c b/qemu-kvm.c
> index 35a4c8a..deb4df8 100644
> --- a/qemu-kvm.c
> +++ b/qemu-kvm.c
> @@ -106,6 +106,20 @@ static int handle_unhandled(uint64_t reason)
> return -EINVAL;
> }
>
> +static int handle_failed_vmentry(uint64_t reason)
> +{
> + fprintf(stderr, "kvm: vm entry failed with error 0x%" PRIx64 "\n\n", reason);
> + fprintf(stderr, "If you're runnning a guest on an Intel machine, it can be\n");
> + fprintf(stderr, "most-likely due to the guest going into an invalid state\n");
> + fprintf(stderr, "for Intel VT. For example, the guest maybe running in big\n");
> + fprintf(stderr, "real mode which is not supported by Intel VT.\n\n");
We might want to qualify this with certain cpu versions. IIRC, the VMX
unrestricted mode should handle big real mode correctly, no? Maybe,
+ fprintf(stderr, "on some Intel processors. For example, the guest maybe running in big\n");
+ fprintf(stderr, "real mode which is not supported on most Intel processors.\n\n");
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh@us.ibm.com
next prev parent reply other threads:[~2010-05-20 1:28 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-19 21:16 [PATCH] Print a user-friendly message on failed vmentry Mohammed Gamal
2010-05-19 21:52 ` Anthony Liguori
2010-05-20 1:28 ` Ryan Harper [this message]
2010-05-20 2:06 ` Mohammed Gamal
2010-05-20 14:37 ` Chris Lalancette
2010-05-20 14:46 ` Anthony Liguori
2010-05-20 14:46 ` Mohammed Gamal
2010-05-20 15:53 ` Avi Kivity
2010-05-20 15:55 ` Mohammed Gamal
-- strict thread matches above, loose matches on Subject: below --
2010-05-20 2:27 Mohammed Gamal
2010-05-23 22:02 Mohammed Gamal
2010-06-06 11:10 Mohammed Gamal
2010-06-07 7:31 ` Avi Kivity
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=20100520012852.GK14379@us.ibm.com \
--to=ryanh@us.ibm.com \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=m.gamal005@gmail.com \
--cc=mtosatti@redhat.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