lkml.org 
[lkml]   [2021]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/19] drivers/hv: minimal mshv module (/dev/mshv/)
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.

\
 
 \ /
  Last update: 2021-06-27 14:01    [W:0.362 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site