views:

105

answers:

1

Hello guys,

I am writing a VMM for intel x86 architecture. Most of the code contains x86 platform specific assembly and c code. Can some one help me how to debug the assembly code please including hardware data structures.

A: 

If this VMM is supposed to run on a Windows host, you should be able to debug the assembly using Visual Studio.

If your problem is that you're unfamiliar with the necessary hardware structures, such as the VMCS, GDT, LDT, IDT, TSS and such, then I suggest you take the time to familiarize yourself with IA32, especially the Software Developer's Guide. It's a long read with many details, but I don't see how you can write a VMM without it.

Nathan Fellman
@Nathan Fellman Actually the problem is debugging x86 instructions. currently what I am doing is checking eax, ebx, ecx etc instructions and printing them. Is there a better way of debugging this ?
brett