kvm, emulator: Use opcode length
authorBorislav Petkov <bp@suse.de>
Sun, 22 Sep 2013 14:44:51 +0000 (16:44 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 30 Oct 2013 17:54:39 +0000 (18:54 +0100)
commit1ce19dc16ce9136cccb6087e4a383ec9321980d9
treee93153a04096bf907dee183cc4b2260c5752991f
parent9c15bb1d0a8411f9bb3395d21d5309bde7da0c1c
kvm, emulator: Use opcode length

Add a field to the current emulation context which contains the
instruction opcode length. This will streamline handling of opcodes of
different length.

Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c