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

Wei Liu wei.liu at kernel.org
Fri Aug 18 16:30:52 PDT 2023


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 at linux.microsoft.com>

Acked-by: Wei Liu <wei.liu at kernel.org>



More information about the linux-arm-kernel mailing list