lkml.org 
[lkml]   [2021]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 03/19] drivers/hv: minimal mshv module (/dev/mshv/)
From
Date

On 6/27/2021 5:00 AM, Wei Liu wrote:
> 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;

Good point - will do.

>
> Wei.
>

\
 
 \ /
  Last update: 2021-07-06 17:42    [W:1.541 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site