Re: [PATCH 03/19] drivers/hv: minimal mshv module (/dev/mshv/)
From: Wei Liu
Date: Sun Jun 27 2021 - 08:00:11 EST
On Fri, May 28, 2021 at 03:43:23PM -0700, Nuno Das Neves wrote:
[...]
> +
> +static int
> +__init mshv_init(void)
> +{
> + int ret;
Please check if Linux is running on Microsoft Hypervisor here. If not,
this module should not be loaded.
Something like:
if (!hv_is_hyperv_initialized())
return -ENODEV;
Wei.