Thread (37 messages) 37 messages, 6 authors, 2021-07-06

Re: [PATCH 03/19] drivers/hv: minimal mshv module (/dev/mshv/)

From: Nuno Das Neves <hidden>
Date: 2021-07-06 15:41:06
Also in: lkml

On 6/27/2021 5:00 AM, Wei Liu wrote:
On Fri, May 28, 2021 at 03:43:23PM -0700, Nuno Das Neves wrote:
[...]
quoted
+
+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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help