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)
commit1c11b37669a5209bd11fb857a103634afef971e8
tree7919993ec26af1038a0aae32f8682c3f723ba5d6
parentae75954457eee0a608072368c5b477e40f378d7b
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