IVT relocation (real-mode) problem in vmware-player

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
devel
Member
Member
Posts: 62
Joined: Wed Nov 28, 2007 4:15 am
Contact:

IVT relocation (real-mode) problem in vmware-player

Post by devel »

Hi all,

I know it is possible to relocate IVT in real mode (following Intel's manual it necessary to load IDTR with some new address).
What is a bit strange is that relocating works quite well in qemu (after deletion of original IVT the system still lives,interrupts ok, ...)
however in vmware-player deleting of original IVT gets the system freeze. This always happens even the installation of new IVT was
successful (i.e. lidt ended without any error and system behaves correctly). I have to say that relocation is done at low address (only 1st
segment) so I think this should not be a problem. So my question is that in case of vmware-player and it's BIOS is it possible that it always
requires IVT to be at 0:0 because of compatibility with 8086 or something? Did anybody have the similar problem?

Regards,
devel.
User avatar
JAAman
Member
Member
Posts: 880
Joined: Wed Oct 27, 2004 11:00 pm
Location: WA

Re: IVT relocation (real-mode) problem in vmware-player

Post by JAAman »

i would say its very likely that BIOS routines assume that the RMode IDT is always at 0...

although the CPU can relocated it, that doesnt mean that the BIOS will always check the location of the IDT whenever they need to run, (or that it will put it back to 0 when returning from PMode...)

many BIOS routines actually run in PMode (and there is no standard defining which ones do, although most likely the interrupts wont) and, worse, many BIOS routines will modify the IDT -- and i would guess that most dont check to confirm its address

both of these problems are things that could happen on some systems, and others be completely unaffected, since there is no standard defining how or when any of these should occure


personally, i find this possibility to be very risky, blindly assuming that all BIOSs will leave the system in, and understand how to use, this non-standard state
Post Reply