On Sun, Sep 12, 2010 at 11:06:34AM +0200, Avi Kivity wrote: > On 09/10/2010 06:34 PM, Joerg Roedel wrote: >> + /* >> + * If we are here the test failed, not sure what to do now because we >> + * are not in guest-mode anymore so we can't trigger an intercept. >> + * Trigger a tripple-fault for now. >> + */ >> + printf("sel_cr0 test failed. Can not recover from this - exiting\n"); >> + exit(1); > > Don't understand - we're still in guest mode (only running very > slowly...). All you have to do is fall off the end here, and you'll > exit with VMMCALL. The bug I fixed was, that the guest continues to run in l1 mode with the l2 rip, rsp, and rax. So if the bug is there, it continues to run in this function, but with no chance to intercept anymore because the guest is not longer in emulated guest mode. I agree that this is a test specific to that bug. I should probably add another test to check if the correct intercepts are reported. Joerg -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html