Re: [PATCH v2 14/15] asm-generic: hyperv: Use mshv headers conditionally. Add asm-generic/hyperv-defs.h

From: Wei Liu
Date: Fri Aug 18 2023 - 19:31:49 EST


On Thu, Aug 17, 2023 at 03:01:50PM -0700, Nuno Das Neves wrote:
> Add hyperv-defs.h to replace some inclusions of hyperv-tlfs.h.
>
> It includes hyperv-tlfs.h or hvhdk.h depending on a compile-time constant
> HV_HYPERV_DEFS which will be defined in the mshv driver.
>
> This is needed to keep unstable Hyper-V interfaces independent of
> hyperv-tlfs.h. This ensures hvhdk.h replaces hyperv-tlfs.h in the mshv driver,
> even via indirect includes.
>
> Signed-off-by: Nuno Das Neves <nunodasneves@xxxxxxxxxxxxxxxxxxx>

Acked-by: Wei Liu <wei.liu@xxxxxxxxxx>