public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* kvm: emulation failure
@ 2009-06-19 19:23 Ram Pai
  2009-06-22  5:12 ` Sheng Yang
  0 siblings, 1 reply; 6+ messages in thread
From: Ram Pai @ 2009-06-19 19:23 UTC (permalink / raw)
  To: kvm; +Cc: Anthony Liguori

I see this problem with a x86 sles10 guest running on x86_64 intel host.
If the guest is reset abruptly and rebooted, some where 
before grub sequence it hangs and the following message is seen in the
logs

emulation failed (pagetable) rip 7ed5 66 60 ac 20.

I located this instruction sequence in isolinux.bin on the iso ;if that
is relevant.


I did some analysis and find that there is an ept violation, which is
handled and then the next instruction '66 60' is attempted to decode 
and emulate. But decode fails. kvm continues loops in the kernel
in __vcpu_run().

the code path is 

kvm_run() -> __vcpu_run() -> vcpu_enter_guest() -> kvm_handle_exit() ->
handle_ept_violation() -> kvm_mmu_page_fault() -> emulate_instruction() ->
x86_decode_insn()


Any insights here on how to fix the problem is appreciated. And if a fix already exists even better :)

thanks,
RP


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

end of thread, other threads:[~2009-06-22 18:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-19 19:23 kvm: emulation failure Ram Pai
2009-06-22  5:12 ` Sheng Yang
2009-06-22  6:55   ` Ram Pai
2009-06-22  7:11     ` Sheng Yang
2009-06-22  8:26     ` Avi Kivity
2009-06-22 18:20       ` Ram Pai

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