Improve shadow paging performance for 64 bit solaris guests
PATCH 1/1 Improve shadow paging performance for 64 bit solaris guests
The following patch provides a 'fast-path' for sh_remove_write_access() for 64 bit Solaris HVM guests. This provides a significant performance boost for such guests; our testing shows a 200-400% improvement in microbenchmarks such as fork(), exit(), etc...
The patch was developed against 3.1.4 and I've checked that it still applies against xen-unstable. Could you please also apply the patch to 3.2?
BTW: The change to multi.c isn't strictly part of the patch, it was just a bit of cleanup I spotted when I was developing the patch and testing out enabling/disabling different optimisations.
Thanks,
Gary
Signature · 4 lines
Gary Pennington Solaris Core OS Sun Microsystems [email protected]
xen/arch/x86/mm/shadow/common.c +5 -0
@@ -1820,6 +1820,11 @@ gfn =mfn_to_gfn (v->domain, gmfn);GUESS (0xffff810000000000UL + (gfn <<PAGE_SHIFT ),4 );GUESS (0x0000010000000000UL + (gfn <<PAGE_SHIFT ),4 ); +/* +* 64bit Solaris kernel page map at +* kpm_vbase; 0xfffffe0000000000UL +*/ +GUESS (0xfffffe0000000000UL + (gfn <<PAGE_SHIFT ),4 ); }#endif /* CONFIG_PAGING_LEVELS >= 4 */ #endif /* CONFIG_PAGING_LEVELS >= 3 */
xen/arch/x86/mm/shadow/multi.c +2 -0
@@ -3821,7 +3821,9 @@shadow_l1e_t *sl1e;int done =0 ;int flags; +#if SHADOW_OPTIMIZATIONS &SHOPT_WRITABLE_HEURISTIC mfn_t base_sl1mfn = sl1mfn;/* Because sl1mfn changes in the foreach */ +#endif SHADOW_FOREACH_L1E(sl1mfn, sl1e, 0, done, {
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel