Re: LEAVE emulation infinite loop

2011-04-26 Thread Avi Kivity
On 04/25/2011 12:05 PM, Matteo Signorini wrote: Hi to All, I fixed the previously highlighted error, calling the right pop emulation function but still get the same error, an infinite leave emulation loop. IMHO this is not an emulation error since x86_decode_insn and x86_emulate_insn return a

Re: LEAVE emulation infinite loop

2011-04-25 Thread Matteo Signorini
Hi to All, I fixed the previously highlighted error, calling the right pop emulation function but still get the same error, an infinite leave emulation loop. IMHO this is not an emulation error since x86_decode_insn and x86_emulate_insn return a correct value ( r=0 ) so I don't understand what

LEAVE emulation infinite loop

2011-04-24 Thread Matteo Signorini
Hello everybody, I have a problem with an opcode emulation not yet emulated in kvm-kmod 2.6.38-rc7. The opcode is the LEAVE that as Intel Manual says: Set RSP to RBP, then pop RBP The problem is that despite to the fact that the opcode of the leave (C9) is correctly fetched and decoded, it falls

Re: LEAVE emulation infinite loop

2011-04-24 Thread Avi Kivity
On 04/24/2011 10:08 AM, Matteo Signorini wrote: Hello everybody, I have a problem with an opcode emulation not yet emulated in kvm-kmod 2.6.38-rc7. The opcode is the LEAVE that as Intel Manual says: Set RSP to RBP, then pop RBP The problem is that despite to the fact that the opcode of the