KVM: x86 emulator: Add Virtual-8086 mode of emulation
authorGleb Natapov <gleb@redhat.com>
Fri, 19 Mar 2010 14:47:30 +0000 (15:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:20 +0000 (07:41 -0700)
commit10a505e60e897f3f4efaf8dbe9db40b3cdca23b4
tree79b8567764b7e69b569769be99f30830e3aeda5c
parent5774cdfd3d81b8ce75be512c180dd7bd5bf5b81c
KVM: x86 emulator: Add Virtual-8086 mode of emulation

commit a0044755679f3e761b8b95995e5f2db2b7efd0f6 upstream

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>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c
arch/x86/kvm/x86.c