Re: [PATCH] KVM: x86: Generate #UD when memory operand is required

2014-11-27 Thread Radim Krčmář
2014-11-26 15:47+0200, Nadav Amit: > Certain x86 instructions that use modrm operands only allow memory operand > (i.e., mod012), and cause a #UD exception otherwise. KVM ignores this fact. > Currently, the instructions that are such and are emulated by KVM are MOVBE, > MOVNTPS, MOVNTPD and MOVNTI.

Re: [PATCH] KVM: x86: Generate #UD when memory operand is required

2014-11-26 Thread Paolo Bonzini
On 26/11/2014 14:47, Nadav Amit wrote: > Certain x86 instructions that use modrm operands only allow memory operand > (i.e., mod012), and cause a #UD exception otherwise. KVM ignores this fact. > Currently, the instructions that are such and are emulated by KVM are MOVBE, > MOVNTPS, MOVNTPD and M

[PATCH] KVM: x86: Generate #UD when memory operand is required

2014-11-26 Thread Nadav Amit
Certain x86 instructions that use modrm operands only allow memory operand (i.e., mod012), and cause a #UD exception otherwise. KVM ignores this fact. Currently, the instructions that are such and are emulated by KVM are MOVBE, MOVNTPS, MOVNTPD and MOVNTI. MOVBE is the most blunt example, since it