]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: add support for vector alignment
authorAvi Kivity <avi@redhat.com>
Mon, 9 Apr 2012 15:39:59 +0000 (18:39 +0300)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 16 Apr 2012 23:36:15 +0000 (20:36 -0300)
commit67f9c8823d4e1ffc8543347fd9aa6930c05124a5
tree7919993ec26af1038a0aae32f8682c3f723ba5d6
parent3749cb2343ac68fe2f4e1cbb044da7a257d3d101
KVM: x86 emulator: add support for vector alignment

x86 defines three classes of vector instructions: explicitly
aligned (#GP(0) if unaligned, explicitly unaligned, and default
(which depends on the encoding: AVX is unaligned, SSE is aligned).

Add support for marking an instruction as explicitly aligned or
unaligned, and mark MOVDQU as unaligned.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/emulate.c