KVM: x86 emulator: handle "far address" source operand
authorGleb Natapov <gleb@redhat.com>
Wed, 28 Apr 2010 16:15:26 +0000 (19:15 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:35:30 +0000 (10:35 +0300)
commit414e6277fd148f6470261cef50a7fed0d88a2825
treec105f8a33e9f744695d0ffd2172f6d2a9e859258
parentb8a98945ea5b735e083eaf92906aa0ff9ece92e8
KVM: x86 emulator: handle "far address" source operand

ljmp/lcall instruction operand contains address and segment.
It can be 10 bytes long. Currently we decode it as two different
operands. Fix it by introducing new kind of operand that can hold
entire far address.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c