]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Fix HLT instruction
authorMohammed Gamal <m.gamal005@gmail.com>
Sun, 6 Jul 2008 13:51:26 +0000 (16:51 +0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 20 Jul 2008 09:42:38 +0000 (12:42 +0300)
commitc57d054a2450e0c4f40baed2f65b3211b721b908
tree57264290c1b85a6b44e6d15814236f2c32051aed
parentb96607e16f0b280068d06d36fed7b954a8145fcf
KVM: x86 emulator: Fix HLT instruction

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>
arch/x86/kvm/x86_emulate.c