KVM: x86 emulator: Add Virtual-8086 mode of emulation
authorGleb Natapov <gleb@redhat.com>
Wed, 10 Feb 2010 12:21:31 +0000 (14:21 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:11 +0000 (12:36 -0300)
commita0044755679f3e761b8b95995e5f2db2b7efd0f6
tree3a4db9d3e0512109130c2f4f1f425305378c0a27
parent60a29d4ea4e7b6b95d9391ebc8625b0426f3a363
KVM: x86 emulator: Add Virtual-8086 mode of emulation

For some instructions CPU behaves differently for real-mode and
virtual 8086. Let emulator know which mode cpu is in, so it will
not poke into vcpu state directly.

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