public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Where are vmentry failure caugth?
@ 2008-01-10 10:19 Guillaume Thouvenin
  2008-01-10 14:26 ` Guillaume Thouvenin
  0 siblings, 1 reply; 7+ messages in thread
From: Guillaume Thouvenin @ 2008-01-10 10:19 UTC (permalink / raw)
  To: kvm-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-01-14  7:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-10 10:19 Where are vmentry failure caugth? Guillaume Thouvenin
2008-01-10 14:26 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox