Re: [RFC: timer passthrough 1/9] KVM: vmx: hook set_next_event for getting the host tscd

From: Peter Zijlstra
Date: Fri Feb 05 2021 - 07:35:10 EST


On Fri, Feb 05, 2021 at 06:03:09PM +0800, Zhimin Feng wrote:
> diff --git a/kernel/time/tick-common.c b/kernel/time/tick-common.c
> index 6c9c342dd0e5..bc50f4a1a7c0 100644
> --- a/kernel/time/tick-common.c
> +++ b/kernel/time/tick-common.c
> @@ -26,6 +26,7 @@
> * Tick devices
> */
> DEFINE_PER_CPU(struct tick_device, tick_cpu_device);
> +EXPORT_SYMBOL_GPL(tick_cpu_device);
> /*
> * Tick next event: keeps track of the tick time
> */

Oh heck no. Modules have no business what so ever accessing this.