Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5151671pxj; Wed, 26 May 2021 04:11:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+TGFNT1ME0nUwZEN7lA01tAmwdElUhdFKSY/OaIaKJL1wKaUkV83bQP4VlKSLiN1kN/Q1 X-Received: by 2002:a05:6402:268f:: with SMTP id w15mr36344524edd.321.1622027506951; Wed, 26 May 2021 04:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622027506; cv=none; d=google.com; s=arc-20160816; b=lOKs7RmvERA6T2nrruGtymucaF0GKuP5IJDb9kYdjBOQd9l+wL35nqnVXUD4jpXrTi YD+1tK/51FlF+gywzq1XRvwdepyM3CKMSQZpasjSXf95u7/YZz0lUTILsvzsWrVrOvVp Wp/TlYdWDjUS+xhgVSx4BoU+YDgZIohTQJiRtw5r+l6YgU5DujgxAzTop5z8rm9FfTJP XVuoa34URHGPbK+aylfvOQUWWxt99Rl3lvoT0ip337cFcwNh5/g5/VAlWrYwjCpr/37U oJ6V74vdtL8mWkuzJaLAuWXVTe7MVgq7/a6lVo8EwQy3Qz3FFKoZpCSArhRyVEitlo/p 89WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:to:from:subject:message-id :dkim-signature; bh=FvJbAVf0Tb1ulZyuUSwZ0lrOmeUKOAeH734xKBdluCA=; b=BAGl+RrX5Evzw1UAToOAdGHk0tSZpjovCMo1BGGcSoXn4yfe2YvMlBWi4q93Typtff Qv74rK5FR/bwvV/HLV56IcyiBgEAR1fEk3K2/SG17KocUYxJyV2v+Qgd7VHkkM0J/Pb+ pH1Czyo1tswq4f9hjKfPhUFqh3lLYLHzoWNDBQtKU/B1UI9oU/pRZXgL6XQopxIhvHHp 5JL8ThhwyQkv5sery9A1sTMNBA1OqyuJRvRqRIP5q4oYSInBM82lZCG56keejSwCbw1b 9ncJyC8qat4QN7GMAnj88L4XwgDx2ERWJjxqYBPAbTPKE5ilsG7gzuBqlg3jqJTp35dL FV3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TWYNmpTt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si21098954eji.59.2021.05.26.04.11.19; Wed, 26 May 2021 04:11:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TWYNmpTt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234108AbhEZLL4 (ORCPT + 99 others); Wed, 26 May 2021 07:11:56 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:39541 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234006AbhEZLLz (ORCPT ); Wed, 26 May 2021 07:11:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622027422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FvJbAVf0Tb1ulZyuUSwZ0lrOmeUKOAeH734xKBdluCA=; b=TWYNmpTtMYQH5LfN3Q//aBclg/kHIlaV84y5lQc54Ni4DEx07JCBVa5kFVunCnzMcCWQRE BOov1ikWWyhi5UJB7OVJ2DIcOETirNTf1qOACP4TK9c1s3KMWPHguqppNZ7r8/73dOJzHS KxT/m12iKlIEJ7oxt5P3O8TU3MeyGdk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-515-dx5q9S1fO7OcQHJE81YmsA-1; Wed, 26 May 2021 07:10:21 -0400 X-MC-Unique: dx5q9S1fO7OcQHJE81YmsA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D87AF6D5C2; Wed, 26 May 2021 11:10:19 +0000 (UTC) Received: from starship (unknown [10.40.192.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id D9A8378623; Wed, 26 May 2021 11:10:11 +0000 (UTC) Message-ID: <2fd417c59f40bd10a3446f9ed4be434e17e9a64f.camel@redhat.com> Subject: Re: Writable module parameters in KVM From: Maxim Levitsky To: Paolo Bonzini , Ben Gardon , Sean Christopherson , Jim Mattson , Junaid Shahid , Peter Xu , LKML , kvm Date: Wed, 26 May 2021 14:10:10 +0300 In-Reply-To: <35fe7a86-d808-00e9-a6aa-e77b731bd4bf@redhat.com> References: <35fe7a86-d808-00e9-a6aa-e77b731bd4bf@redhat.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-05-26 at 12:49 +0200, Paolo Bonzini wrote: > On 26/05/21 01:45, Ben Gardon wrote: > > At Google we have an informal practice of adding sysctls to control some > > KVM features. Usually these just act as simple "chicken bits" which > > allow us to turn off a feature without having to stall a kernel rollout > > if some feature causes problems. (Sysctls were used for reasons specific > > to Google infrastructure, not because they're necessarily better.) > > > > We'd like to get rid of this divergence with upstream by converting the > > sysctls to writable module parameters, but I'm not sure what the general > > guidance is on writable module parameters. Looking through KVM, it seems > > like we have several writable parameters, but they're mostly read-only. > > Sure, making them writable is okay. Most KVM parameters are read-only > because it's much simpler (the usecase for introducing them was simply > "test what would happen on old processors"). What are these features > that you'd like to control? > > > I also don't see central documentation of the module parameters. They're > > mentioned in the documentation for other features, but don't have their > > own section / file. Should they? > > They probably should, yes. > > Paolo > I vote (because I have fun with my win98 once in a while), to make 'npt' writable, since that is the only way to make it run on KVM on AMD. My personal itch only though! Best regards, Maxim Levitsky