Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1714214

Re: [PATCH] vsock: only load vmci transport on VMware hypervisor by default

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] vsock: only load vmci transport on VMware hypervisor by default
Date 2017-08-17 19:10 +0200
Message-ID <ufwsX-7Rh-27@gated-at.bofh.it> (permalink)
References <uftv4-5CX-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Dexuan Cui <decui@microsoft.com>
Date: Thu, 17 Aug 2017 08:00:29 +0000

> @@ -73,6 +74,10 @@ struct vmci_transport_recv_pkt_info {
>  	struct vmci_transport_packet pkt;
>  };
>  
> +static bool skip_hypervisor_check;
> +module_param(skip_hypervisor_check, bool, 0444);
> +MODULE_PARM_DESC(hot_add, "If set, attempt to load on non-VMware platforms");
> +

I would avoid module parameters at all costs.

It is the worst possible interface for users of your software.

You really need to fundamentally solve the problems related to making
sure the proper modules for the VM actually present on the system get
loaded when necessary rather than adding hacks like this.

Unlike a proper solution, these hacks are ugly but have to stay around
forever once you put them in place.

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH] vsock: only load vmci transport on VMware hypervisor  by default David Miller <davem@davemloft.net> - 2017-08-17 19:10 +0200

csiph-web