KVM: x86 emulator: Decode memory operands directly into a 'struct operand'
authorAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 12:40:19 +0000 (15:40 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:50:40 +0000 (10:50 +0200)
commit2dbd0dd711e6c0ca6a2be9e6d93bbeb339386638
treea4b4cd21579263b64c4287489a59f301d2c5e667
parent1f6f05800e2fdd815ac63e3264071d26d429f491
KVM: x86 emulator: Decode memory operands directly into a 'struct operand'

Since modrm operand can be either register or memory, decoding it into
a 'struct operand', which can represent both, is simpler.

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