From: Guillaume Thouvenin <guillaume.thouvenin-Z51IpKcfGtLk1uMJSBkQmQ@public.gmane.org>
To: kvm-devel <kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Where are vmentry failure caugth?
Date: Thu, 10 Jan 2008 11:19:58 +0100 [thread overview]
Message-ID: <20080110111958.7a33661d@frecb000711> (raw)
Hello,
When a vmentry failure occurs, where is it caught? I see that
VMX_EXIT_REASONS_FAILED_VMENTRY is defined but I don't see where it is
used. Shouldn't there be something in handle_excetion() like:
static int handle_exception(struct kvm_vcpu *vcpu, struct kvm_run
*kvm_run) {
struct vcpu_vmx *vmx = to_vmx(vcpu);
u32 intr_info, error_code, exit_reason;
unsigned long cr2, rip;
u32 vect_info;
enum emulation_result er;
vect_info = vmx->idt_vectoring_info;
intr_info = vmcs_read32(VM_EXIT_INTR_INFO);
exit_reason = vmcs_readl(VM_EXIT_REASON);
if (unlikely(exit_reason & VMX_EXIT_REASONS_FAILED_VMENTRY))
/* check why and do something */
...
}
I tried but it didn't catch any vmentry failures (and I know that
there is at least one during the test).
The idea is to find failure due to invalid guest state (like with old
gfxboot bug) and emulate the code until the guest recovers a valid
state.
Regards,
Guillaume
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
next reply other threads:[~2008-01-10 10:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-10 10:19 Guillaume Thouvenin [this message]
2008-01-10 14:26 ` Where are vmentry failure caugth? Guillaume Thouvenin
2008-01-10 15:32 ` Avi Kivity
[not found] ` <47863A93.2030707-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-11 7:44 ` Guillaume Thouvenin
2008-01-12 20:12 ` Avi Kivity
[not found] ` <47891F36.1080903-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2008-01-12 20:34 ` Anthony Liguori
[not found] ` <47892444.2070903-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2008-01-14 7:11 ` Guillaume Thouvenin
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=20080110111958.7a33661d@frecb000711 \
--to=guillaume.thouvenin-z51ipkcfgtlk1umjsbkqmq@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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