On Sat, Apr 7, 2012 at 6:18 AM, R <19890121wr@xxxxxxxxx> wrote: > I try to use the x86_emulate_instruction() function. > But it seems like that it fails to emulate some instruction. > My program gets stuck in somewhere. It keeps emulating > one instructions. > Is there some instructions that this function can not emulate? Yes there are instructions that are not supported by the emulator but they should produce a kernel message. Check dmesg(1) to see if an error was logged. You can also enable the kvm:* tracepoints in the kernel to get detailed information on guest behavior, including emulated instruction opcodes. Stefan -- 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