From: Avi Kivity <avi@redhat.com>
To: the uni <uni.the@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: Boot Problem (and fix)
Date: Tue, 11 Nov 2008 19:09:40 +0200 [thread overview]
Message-ID: <4919BC54.1030002@redhat.com> (raw)
In-Reply-To: <e623f0a40811110856i44323e5fr64d9c4e390ff585e@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
the uni wrote:
>> Can you try modules from older versions (keeping userspace and the bios) to
>> see which version introduced the fix?
>>
>
>
> Keeping userspace and bios, versions 71 and up are fixed... 70 is broken.
>
Please try kvm-70 with the attached patch attached.
(from 214fc251236fd1d0e0f2b7c3b7b7ad5243928fa9)
--
error compiling committee.c: too many arguments to function
[-- Attachment #2: fix-halt.patch --]
[-- Type: text/plain, Size: 1043 bytes --]
commit 214fc251236fd1d0e0f2b7c3b7b7ad5243928fa9
Author: Mohammed Gamal <m.gamal005@gmail.com>
Date: Sun Jul 6 16:51:26 2008 +0300
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>
diff --git a/kernel/x86_emulate.c b/kernel/x86_emulate.c
index dd4efe1..62e71b6 100644
--- a/kernel/x86_emulate.c
+++ b/kernel/x86_emulate.c
@@ -1732,7 +1732,7 @@ special_insn:
break;
case 0xf4: /* hlt */
ctxt->vcpu->arch.halt_request = 1;
- goto done;
+ break;
case 0xf5: /* cmc */
/* complement carry flag from eflags reg */
ctxt->eflags ^= EFLG_CF;
next prev parent reply other threads:[~2008-11-11 17:09 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-05 23:43 Boot Problem (and fix) the uni
2008-11-06 15:32 ` Avi Kivity
2008-11-06 17:33 ` the uni
2008-11-06 17:45 ` Avi Kivity
2008-11-06 18:42 ` the uni
2008-11-06 19:00 ` the uni
2008-11-09 10:23 ` Avi Kivity
2008-11-09 17:54 ` the uni
2008-11-10 9:33 ` Avi Kivity
2008-11-10 12:55 ` the uni
2008-11-10 13:54 ` Avi Kivity
2008-11-10 17:28 ` the uni
2008-11-11 11:03 ` Avi Kivity
2008-11-11 16:56 ` the uni
2008-11-11 17:09 ` Avi Kivity [this message]
2008-11-11 17:20 ` the uni
2008-11-11 17:22 ` Avi Kivity
2008-11-11 18:51 ` Avi Kivity
2008-11-11 22:28 ` the uni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4919BC54.1030002@redhat.com \
--to=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=uni.the@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox