X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fgeekos%2Fvmm_util.h;h=ae58b108c35d441bc867d820a6ef5a621ba8f60c;hb=190b2ef9470c23c275754b74745933d973f8c439;hp=5fb0aea3b0200f7c612e0492051d476d1628c3c3;hpb=ff58148c2cfbbc82405dc9ec25056cc93c773083;p=palacios.git diff --git a/palacios/include/geekos/vmm_util.h b/palacios/include/geekos/vmm_util.h index 5fb0aea..ae58b10 100644 --- a/palacios/include/geekos/vmm_util.h +++ b/palacios/include/geekos/vmm_util.h @@ -2,11 +2,12 @@ #define __VMM_UTIL_H #include +#include - -//#define PAGE_SIZE 4096 - +#ifndef PAGE_SIZE +#define PAGE_SIZE 4096 +#endif typedef union reg_ex { ullong_t r_reg; struct { @@ -18,10 +19,23 @@ typedef union reg_ex { +// These are the GPRs layed out according to 'pusha' +struct VMM_GPRs { + uint_t edi; + uint_t esi; + uint_t ebp; + uint_t esp; + uint_t ebx; + uint_t edx; + uint_t ecx; + uint_t eax; +}; + + + void PrintTraceHex(unsigned char x); void PrintTraceMemDump(unsigned char * start, int n); - #endif