]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63bfc69c7c75cb167516806fa1dba6748a5c0eaf
treee93153a04096bf907dee183cc4b2260c5752991f
parent71535ca16eff352ba28a41bf4560a61be1193f85
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