Bugs in qemu? accessing null descriptor not trigger #GP

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
bluemoon
Member
Member
Posts: 1761
Joined: Wed Dec 01, 2010 3:41 am
Location: Hong Kong

Bugs in qemu? accessing null descriptor not trigger #GP

Post by bluemoon »

I tried the following code in 32-bit protected mode:

Code: Select all

    xor     eax, eax
    mov     ds, ax
    mov     dword [ds:0xb8000 + 324], 0x07460746
    cli
    hlt
0xb8000 is identity mapped for debugging. The FF is shown on screen, and #GP is not triggered, is it a bug with QEmu or did I missed anything?

This is the version I'm using:

Code: Select all

qemu-system-i386 bluemoon.img --version
QEMU emulator version 1.0, Copyright (c) 2003-2008 Fabrice Bellard
deadbeef
Posts: 9
Joined: Wed Apr 11, 2012 6:03 am

Re: Bugs in qemu? accessing null descriptor not trigger #GP

Post by deadbeef »

This absolutely GP-faults on real HW.

For Qemu on my machine:
In QEMU 1.0.50 (build from most recent sources) it also GP-Faults.
In QEMU 0.12.5 via KVM (from Ubuntu repos on install of kvm) it GP-faults.
In QEMU 0.12.5 (from Ubuntu repos on install of kvm) with -no-kvm it does not GP-fault (but I can't tell right now if the emulation is still in a correct state).
Post Reply