Re: [PATCH] Drivers: hv: Use nested hypercall for post message and signal event

From: Nuno Das Neves
Date: Tue Apr 04 2023 - 12:57:30 EST


On 4/3/2023 11:45 PM, Olaf Hering wrote:
> Mon, 3 Apr 2023 16:22:58 -0700 Nuno Das Neves <nunodasneves@xxxxxxxxxxxxxxxxxxx>:
>
>> Only relevant for x86; nested functionality is not available in ARM64.
>
>> +#if defined(CONFIG_X86_64)
>> + else if (hv_nested)
>
> Should there be a hv_nested in the ARM64 code path?
> Looks like c4bdf94f97c86 provided such thing, so the Kconfig conditional could be removed.
>
> Olaf

This will not compile on ARM64 without the guard, because hv_do_nested_hypercall and
hv_do_fast_nested_hypercall8 are not defined.
These are inline functions only defined in the x86 mshyperv.h header.

The alternative to these guards would be defining dummy inline functions for the nested
versions of hv_do_hypercall in the ARM64 mshyperv.h.
I could take that approach if it is preferable.