On Sun, Jul 13, 2008 at 9:47 PM, Nakajima, Jun <[EMAIL PROTECTED]> wrote:
> On 7/13/2008 8:31:44 AM, Avi Kivity wrote:
>> Avi Kivity wrote:
>> >
>> > Well, xen and bochs do not push an error code for real mode #GP.  I
>> > tried running the attached test program but it doesn't work on real
>> > hardware (it does work on bochs).
>> >
>>
>> Jun, perhaps you can clarify? do #GP exceptions in real-mode push an
>> error code?
>
> Avi,
>
> Exceptions in real-mode do not push an error code in the stack. In vm86 mode 
> #GP exceptions push an error code, triggering a protected-mode handler in the 
> monitor, as you know. Is it possible that the guest is actually using vm86 
> mode?
>
>>
>> --
>> error compiling committee.c: too many arguments to function
>>
>             .
> Jun Nakajima | Intel Open Source Technology Center
>

Yes it is. FreeDOS runs in real mode, and KVM uses vm86 mode instead
of fully emulating real mode. If you check the register dump caused by
the exception you'll find the VM bit set in the guest's eflags.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to