|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenPPC] performance profiling current and future steps
Jimi Xenidis wrote: ... Ensure MMCR0[FCH] for this first step:-(ensure) set MMCR[FCH] always in xen when entering xen space. This should prevent a domainmessing up MMCR0[FCH] ->EXCEPTION_HEAD in exception.S set MMCR0[FCH] always
Yep, I had those already:
mfspr r0,SPRN_MMCR0 /* ensure MMCR0[FCH]=1 */
ori r0,r0,MMCR0_FCH
mtspr SPRN_MMCR0, r0
Do you mean to insert a branch to PMU_SAVE_STATE from EXCEPTION_HEAD or
to put a PMU_SAVE_STATE branch to every section calling EXCEPTION_HEAD ?
Can someone please point at a code piece that does a similar macro
definition and branch already.
Alternatively we could setup an "assist" session with screen -x
developing this part together if there is a volunteer.
I created this one blindly now as a start
.macro PMU_SAVE_STATE save scratch
mfspr \scratch,SPRN_MMCR0 /* ensure MMCR0[FCH]=1,
not yet saving anything */
ori \scratch,\scratch,MMCR0_FCH
mtspr SPRN_MMCR0, \scratch
.endm
and added the following to EXCEPTION_HEAD, but I guess it it wrong that
way ;)
PMU_SAVE_STATE r0 r0
--
Grüsse / regards,
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization +49 7031/16-3385 Ehrhardt@xxxxxxxxxxxxxxxxxxx Ehrhardt@xxxxxxxxxx IBM Deutschland Entwicklung GmbHVorsitzender des Aufsichtsrats: Johann Weihen Geschäftsführung: Herbert Kircher Sitz der Gesellschaft: Böblingen Registergericht: Amtsgericht Stuttgart, HRB 243294 _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |