Walk and print EPT tables on an unexpected EPT violation
PATCH 1/1 Walk and print EPT tables on an unexpected EPT violation
Wrote this when I was tracking down the HAP-PoD problem, figured it might come in handy sometime.
Signed-off-by George Dunlap <[email protected]>
xen/arch/x86/hvm/vmx/vmx.c +2 -0
@@ -2116,6 +2116,8 @@ (qualification &EPT_EFFECTIVE_EXEC ) ?'x' :'-' , gpa, mfn_x(mfn), p2mt); +ept_walk_table (current->domain, gfn); +if ( qualification &EPT_GLA_VALID ) { gla =__vmread (GUEST_LINEAR_ADDRESS );
xen/arch/x86/mm/hap/p2m-ept.c +49 -0
55 lines not on this page · raw message
xen/include/asm-x86/hvm/vmx/vmx.h +1 -0
@@ -357,6 +357,7 @@void vmx_inject_nmi (void );void ept_p2m_init (struct domain *d); +void ept_walk_table (struct domain *d,unsigned long gfn);/* EPT violation qualifications definitions */ #define _EPT_READ_VIOLATION 0
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel