]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: x86 emulator: Fix HLT instruction
authorMohammed Gamal <m.gamal005@gmail.com>
Wed, 23 Jul 2008 08:43:41 +0000 (11:43 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Aug 2008 19:42:59 +0000 (12:42 -0700)
commit205cb93409b6c0d6e66cce8fdf5eef8744d687eb
treeefca27d7d407bf8dabea91286f7e5fc56eb1f3b4
parent5c9e0efda1c7a7a96614cffa9a5ba33f21ac7599
KVM: x86 emulator: Fix HLT instruction

Original-Commit-Hash: bcc542267538e9ba933d08b4cd4ebd796e03a3d7

This patch fixes issue encountered with HLT instruction
under FreeDOS's HIMEM XMS Driver.

The HLT instruction jumped directly to the done label and
skips updating the EIP value, therefore causing the guest
to spin endlessly on the same instruction.

The patch changes the instruction so that it writes back
the updated EIP value.

Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/x86_emulate.c