Woller, Thomas
2006-Oct-19 22:28 UTC
[Xen-devel] [HVM][XENOPROFILE][PATCH][0/4] Xenoprofile support for HVM guests
The following 4 patches replace the previous Xenoprofile passive profiling patches posted to xen-devel. These modifications provide proper mode and eip/rip for the oprofile logic if the NMI occurs during the HVM guest context. You must use oprofile 0.9.2 with the addition of Renato Santos'' patch from here: http://xenoprof.sourceforge.net The athlon oprofile NMI handler now checks for a specific eip/rip to determine if the NMI occurred in the context of the guest. 1) NMI occurs in context of guest 2) NMI causes vmexit (NMI intercepted) 3) NMI held pending until STGI instruction 4) STGI instruction executes causing NMI on instruction immediately following 5) NMI handler in op_module_athlon.c checks label of code after STGI 6) if eip/rip matches then call specific xenoprofile code instead of usual mainline oprofiling code. This redesign is basically Kier''s, thanks for the rework :) Additional input and assistance from Rento Santos and Mats Petersson. This code has been tested on AMD-V 32bit and 64bit hypervisors, with 32bit and 64bit HVM guests. The code has not been fully verified on a VT box (patch 4/4). --Tom _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel