]> 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)
commit94bce12581806992d26de4c606b5e22b5a1bee63
treee93153a04096bf907dee183cc4b2260c5752991f
parentd4c843a8b48d9c6f6404524827defdf587b8ac01
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