Module Name: src Committed By: cherry Date: Sun Nov 18 10:24:10 UTC 2018
Modified Files: src/sys/arch/x86/include: cpu.h src/sys/arch/xen/x86: hypervisor_machdep.c src/sys/arch/xen/xen: clock.c Log Message: Save the interrupt trap/clockframe to a per-cpu copy. We can use this copy to pass on the trapframe to hardclock(9) from within the xen timer handler. This delinks the current dependency between MD code and the handler, which is specially prototyped to take the clockframe unlike any other handler. This change has performance implications, as each interrupt entry will copy the entire trapframe over to the per-cpu cached copy. This can be mitigated by selectively copying just the parts of the clockframe that are used by hardclock() et. al. Tested on amd64 XEN domU To generate a diff of this commit: cvs rdiff -u -r1.98 -r1.99 src/sys/arch/x86/include/cpu.h cvs rdiff -u -r1.30 -r1.31 src/sys/arch/xen/x86/hypervisor_machdep.c cvs rdiff -u -r1.72 -r1.73 src/sys/arch/xen/xen/clock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.