On Thu, Feb 07, 2008 at 08:55:59AM +0000, Paul Knowles wrote: > Hi Joerg > > The problem is this block of code in set_cr0 > > #ifdef CONFIG_X86_64 > if (vcpu->arch.shadow_efer & EFER_LME) { > if (!is_paging(vcpu) && (cr0 & X86_CR0_PG)) > enter_lmode(vcpu); > if (is_paging(vcpu) && !(cr0 & X86_CR0_PG)) > exit_lmode(vcpu); > } > #endif
Hmm, the stuff that is done in enter_lmode() is also done in vmx_set_efer() (except for the TSS fixup). I am still pretty sure it should work without your fix (also because it will likely break SVM with Nested Paging). Have you set EFER.LME *and* EFER.LMA when you called set_sregs? Joerg ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel