On Fri, Oct 1, 2010 at 7:29 AM, Avi Kivity <avi@xxxxxxxxxx> wrote: > On 10/01/2010 08:16 AM, Neo Jia wrote: >> >> On Wed, Sep 29, 2010 at 1:38 AM, Avi Kivity<avi@xxxxxxxxxx> wrote: >> > On 09/28/2010 08:40 PM, Neo Jia wrote: >> >> >> >> I found the instruction that caused this problem: >> >> >> >> emulation failed (failure) rip 71f14651 66 0f 7f 07 >> >> >> >> And according to Intel, this is a MOVDQA. So, do we already have this >> >> instruction emulated as I am using a pretty old version of KVM >> >> (release 88)? If yes, could you point me to the file I need to look at >> >> for that specific patch? >> >> >> > >> > movdqa is not emulated. >> >> I am going to give a try to emulate this instruction. BTW, do we have >> any unit test for those emulated x86 instruction sets? > > Indeed we do: > > http://git.kernel.org/?p=virt/kvm/kvm-unit-tests.git;a=summary > > Check out x86/emulator.c. BTW, I have a question about saving FPU, especially those XMM registers. I don't see an explicit save FPU after exiting guest due to an exception (MMIO writes). The only thing I saw about fpu operation is fpu restore right before loading guest. Is there anything I missed here? Thanks, Neo > > -- > I have a truly marvellous patch that fixes the bug which this > signature is too narrow to contain. > > -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! -- 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