netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: "Hsu, Chiahao" <andyhsu@amazon.com>
Cc: netdev@vger.kernel.org, wei.liu@kernel.org, paul@xen.org,
	davem@davemloft.net, kuba@kernel.org,
	xen-devel@lists.xenproject.org
Subject: Re: [net-next 1/2] xen-netback: add module parameter to disable ctrl-ring
Date: Fri, 12 Mar 2021 21:36:59 +0100	[thread overview]
Message-ID: <YEvQ6z5WFf+F4mdc@lunn.ch> (raw)
In-Reply-To: <ec5baac1-1410-86e4-a0d1-7c7f982a0810@amazon.com>

On Fri, Mar 12, 2021 at 04:18:02PM +0100, Hsu, Chiahao wrote:
> 
> Andrew Lunn 於 2021/3/12 15:52 寫道:
> > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
> > 
> > 
> > 
> > On Thu, Mar 11, 2021 at 10:59:44PM +0000, ChiaHao Hsu wrote:
> > > In order to support live migration of guests between kernels
> > > that do and do not support 'feature-ctrl-ring', we add a
> > > module parameter that allows the feature to be disabled
> > > at run time, instead of using hardcode value.
> > > The default value is enable.
> > Hi ChiaHao
> > 
> > There is a general dislike for module parameters. What other mechanisms
> > have you looked at? Would an ethtool private flag work?
> > 
> >       Andrew
> 
> 
> Hi Andrew,
> 
> I can survey other mechanisms, however before I start doing that,
> 
> could you share more details about what the problem is with using module
> parameters? thanks.

It is not very user friendly. No two kernel modules use the same
module parameters. Often you see the same name, but different
meaning. There is poor documentation, you often need to read the
kernel sources it figure out what it does, etc.

Ideally, you want a mechanism which is shared by multiple drivers and
is well documented.

Does virtio have the same problems? What about VmWare? HyperV? Could
you make a generic solution which works for all these technologies?
Is this just a networking problem? Or does disk, graphics etc, need
something similar?

    Andrew

  reply	other threads:[~2021-03-12 20:37 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11 22:59 [net-next 1/2] xen-netback: add module parameter to disable ctrl-ring ChiaHao Hsu
2021-03-12  7:32 ` Paul Durrant
2021-03-12 14:52 ` Andrew Lunn
2021-03-12 15:18   ` Hsu, Chiahao
2021-03-12 20:36     ` Andrew Lunn [this message]
2021-03-14 10:04       ` Leon Romanovsky
2021-03-16 15:22         ` Hsu, Chiahao
2021-03-17 17:22           ` Leon Romanovsky
2021-03-21 16:31             ` Hsu, Chiahao
2021-03-21 17:22               ` Leon Romanovsky
2021-03-21 17:54                 ` Hsu, Chiahao
2021-03-21 20:29                   ` Andrew Lunn
2021-03-21 21:00                     ` Hsu, Chiahao
2021-03-22  5:39                   ` Leon Romanovsky
2021-03-22  5:58                     ` Jürgen Groß
2021-03-22  6:48                       ` Leon Romanovsky
2021-03-22  7:01                         ` Jürgen Groß
2021-03-22  7:13                           ` Leon Romanovsky
2021-03-28 20:46                             ` Hsu, Chiahao
2021-03-29  5:03                               ` Juergen Gross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YEvQ6z5WFf+F4mdc@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=andyhsu@amazon.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=paul@xen.org \
    --cc=wei.liu@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).