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

Peter Zijlstra
2021-02-05T12:35:16Z

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.