Bochs's bug in handling Page Table Entries
Posted: Sat Jun 09, 2007 9:04 am
I allocate some PTEs and, using my Relocate function, I will change the location of the allocated memory to somewhere else in the memory and thus get a new pointer to the memory block. If I have not written something to the first memory that was allocated and then try to relocate the memory, everything will work fine but if I have already written something to the initial memory block and then try to relocate the memory, Bochs will not show me a Page Fault Exception even though the PTE that maps the memory that I am addressing neither has its Present flag nor its Read/Write bits set. Does anybody have any idea why?
I tried my code on VMWare and I got a Page Fault Exception meaning that VMWare noticed that the PTE that I just set as not present is not really present! MS Virtual PC didn't give me a PF, just like Bochs.
I tried my code on VMWare and I got a Page Fault Exception meaning that VMWare noticed that the PTE that I just set as not present is not really present! MS Virtual PC didn't give me a PF, just like Bochs.