Re: [PATCH 07/21] KVM: x86: Emulator considers imm as memory operand

2014-11-05 Thread Paolo Bonzini
On 02/11/2014 10:54, Nadav Amit wrote: > The emulator mistakenly considers some of the immediate operands as memory > operands, performs memory read and uses the wrong data. By default, every > operand is marked as OP_MEM, so if it is not changed, memory read may be > wrongly emulated and the wron

[PATCH 07/21] KVM: x86: Emulator considers imm as memory operand

2014-11-02 Thread Nadav Amit
The emulator mistakenly considers some of the immediate operands as memory operands, performs memory read and uses the wrong data. By default, every operand is marked as OP_MEM, so if it is not changed, memory read may be wrongly emulated and the wrong value would be used. Consider for instance t