From: Gleb Natapov <gleb@redhat.com>
To: Mohammed Gamal <m.gamal005@gmail.com>
Cc: Avi Kivity <avi@redhat.com>, mtosatti@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH] VMX: Invalid guest state detection enhancements and bug fixes
Date: Tue, 11 May 2010 14:06:09 +0300 [thread overview]
Message-ID: <20100511110609.GI2504@redhat.com> (raw)
In-Reply-To: <v2x52d4a3891005110353o68caa7dfl459a5a2039e548e@mail.gmail.com>
On Tue, May 11, 2010 at 01:53:51PM +0300, Mohammed Gamal wrote:
> >> if (err != EMULATE_DONE) {
> >> + kvm_report_emulation_failure(vcpu, "invalid guest
> >> state handler");
> >> vcpu->run->exit_reason = KVM_EXIT_INTERNAL_ERROR;
> >> vcpu->run->internal.suberror =
> >> KVM_INTERNAL_ERROR_EMULATION;
> >> vcpu->run->internal.ndata = 0;
> >>
> >
> > Uneeded, userspace can report it.
>
> Userspace does report the address at which a VM fails, it doesn't for
> instance show the contents of RIP which is necessary for knowing which
> instruction failed, this is at least needed for testing purposes. IIRC
> I've seen some trace_kvm_failed_insn() functions somewhere. But I
> don't know how to use tracing utilities so I'd be delighted if someone
> could point me to some relevant documentation or something.
Userspace can be extended to print instruction at RIP on emulation
failure. Furthermore userspace can even disassemble it for you. IIRC
kvm_report_emulation_failure() was once removed from here and I've
actually sent patch to remove kvm_report_emulation_failure() at all.
--
Gleb.
next prev parent reply other threads:[~2010-05-11 11:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-10 15:51 [PATCH] VMX: Invalid guest state detection enhancements and bug fixes Mohammed Gamal
2010-05-11 9:24 ` Avi Kivity
2010-05-11 10:53 ` Mohammed Gamal
2010-05-11 11:06 ` Gleb Natapov [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-05-09 20:45 Mohammed Gamal
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=20100511110609.GI2504@redhat.com \
--to=gleb@redhat.com \
--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;
as well as URLs for NNTP newsgroup(s).