Re: [v2 PATCH 2/4] x86/kvm: Add definitions for virtual suspend time injection

From: Thomas Gleixner
Date: Tue Aug 10 2021 - 11:15:02 EST


On Fri, Aug 06 2021 at 19:07, Hikaru Nishida wrote:

> Add definitions of MSR, KVM_FEATURE bit, IRQ and a structure called
> kvm_suspend_time that are used by later patchs to support the
> virtual suspend time injection mechanism.

Why does this need to include kvm_host.h in the timekeeping core?

> --- a/kernel/time/timekeeping.c
> +++ b/kernel/time/timekeeping.c
> @@ -22,6 +22,7 @@
> #include <linux/pvclock_gtod.h>
> #include <linux/compiler.h>
> #include <linux/audit.h>
> +#include <linux/kvm_host.h>
>
> #include "tick-internal.h"
> #include "ntp_internal.h"

Thanks,

tglx