Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp3075824lqo; Tue, 14 May 2024 21:03:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3lXqRsHljBClpHaMZWDFRsTJAugYawx3BSSQGoo8UAC3DzenXQKYUeDg4fZsiEQnGIa09d9KXbxt/vXfxU0Afqj3YEk1vBzG2taEmLg== X-Google-Smtp-Source: AGHT+IFAiRBw8o4nv8yBNr6NrqB8RdO9CUb6Vv9dp5Zv0BszmLi+fE2oOp5mqVv5p2mzJjjqI/5+ X-Received: by 2002:a05:6214:5788:b0:6a0:7a42:128a with SMTP id 6a1803df08f44-6a1680bc1ddmr165006886d6.0.1715745837172; Tue, 14 May 2024 21:03:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715745837; cv=pass; d=google.com; s=arc-20160816; b=HB1VNAg7XWCegx94Ql0sIhVLKEdGTfQNIF0bk65Lp6isoyAPPRjvTLLq6O2rcRURGW TJV7HXnupkb3TD+5lD7lmbNSI8R0GnnSUY1t3z8reviHhuNBGml011h4Nuu1Xq0AcTVE kVAhwN1lDhG9u7NrJY3zjKRwIRd+/iSCNTOTOGsamj0wPnNXOh6gqFTWHilofZ8Qz9cx cdZz4Z9c3f/Ag9DGYPkNCULnHH54IULeil3E/Vd906jwC1t0NsQ9Q1NKhyW6h17UrVv3 lY/q95SQ4+NNSHhJM6RXTA1cStfdBh80oGAnlRVr71yYjYcCX8C2En+2JG0VhS1eJ6FY XMXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:in-reply-to:message-id:date; bh=Vtf95kF6BZFeQtI/kJmza2jVp9OvY7NeaPTBAe0wa8A=; fh=ptZz9pt3gAesf2U+D6Vpg4GDb5nWUgIfyoC52stKSkY=; b=x6tBctMu4kqe6LSSK1ILLVN7Roh9/oSj0eL8mDXMnd8HBSPk32NpOu/IXZdolj7jBr FL/XBWhb3pmNM6ycXwpPDeMlpz1o0h9fvIQCRM4G5eQ1gIkfON7Gct6RwY+aY3rjF4mP GFlkvH/+zqDSgoo7tKfl8a0WL53by13HdeKbRfQKOF2B29MVw5RylkEnbPYBF9F/C2VA NAEZgRF20GJXXyKYKiRz90CfqfZeIOy+MLtVhlN6dMyNEfvr7VPZUKZRKvuFXqoEF9Yi i/PSFMwHqiPQiK49KkQxv2l8ldz0G1iR8WE5xk+cLumLLnmYdfHjRPJh+opWrV176k1D FAOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=zte.com.cn dmarc=pass fromdomain=zte.com.cn); spf=pass (google.com: domain of linux-kernel+bounces-179387-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6a15f2f0c48si132175666d6.509.2024.05.14.21.03.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 21:03:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179387-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zte.com.cn dmarc=pass fromdomain=zte.com.cn); spf=pass (google.com: domain of linux-kernel+bounces-179387-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179387-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DD9101C21AFD for ; Wed, 15 May 2024 04:03:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0398383AE; Wed, 15 May 2024 04:03:46 +0000 (UTC) Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1B76381B9; Wed, 15 May 2024 04:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=63.216.63.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715745826; cv=none; b=KxMXq4et7UMtyq7IAI88PwGWpYG17Xz+3e6yyR5VCpdWT2MlzAYXvqqqyAy3V4DpAGpyk+cMaLDl8AaznWsyyk9q2TIhtGTSIW792EV7ktAMU2KTybr6odotlQH0qFNNpJRVt5NPgeOIq264g3qKXnfsn9dHI4H4H0uGyq5UneQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715745826; c=relaxed/simple; bh=O88tAcTlnEuDEVNLDeD9ZcVV/l6h4nyW0awA4mXMQh8=; h=Date:Message-ID:In-Reply-To:References:Mime-Version:From:To:Cc: Subject:Content-Type; b=YkfGRBbYWKtbb6fDS0m28LiYg/V1NzmWRTS5li3WdATcRVg863CBmUWLwD7w498wQvQ/EWA7bpOBLXdEzwYiXAmwJm3b+IJUkRx/5sFQpdPo1ROWRIXAfaHZGWxEspudiYWci1zl94nBU3chZyS0HD7GPzo3pXYeYhSM4GWYlos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn; spf=pass smtp.mailfrom=zte.com.cn; arc=none smtp.client-ip=63.216.63.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zte.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zte.com.cn Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4VfKMw1LbVz4xPBc; Wed, 15 May 2024 12:03:40 +0800 (CST) Received: from szxlzmapp03.zte.com.cn ([10.5.231.207]) by mse-fl2.zte.com.cn with SMTP id 44F43WO1087412; Wed, 15 May 2024 12:03:32 +0800 (+08) (envelope-from cheng.lin130@zte.com.cn) Received: from mapi (szxlzmapp06[null]) by mapi (Zmail) with MAPI id mid14; Wed, 15 May 2024 12:03:33 +0800 (CST) Date: Wed, 15 May 2024 12:03:33 +0800 (CST) X-Zmail-TransId: 2b0866443415ffffffffb5b-22ebd X-Mailer: Zmail v1.0 Message-ID: <20240515120333724v7bc656U_mnZJaYDZd3vt@zte.com.cn> In-Reply-To: References: Zj4qEG5QfbX4mo48@google.com,202405111034432081zGPU1OUESImLVeboZ0zQ@zte.com.cn,ZkPfB2VpGkRmMLsi@google.com Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 From: To: Cc: , , , , , Subject: =?UTF-8?B?UmU6IFtQQVRDSF0gS1ZNOiBpbnRyb2R1Y2Ugdm0ncyBtYXhfaGFsdF9wb2xsX25zIHRvIGRlYnVnZnM=?= Content-Type: text/plain; charset="UTF-8" X-MAIL:mse-fl2.zte.com.cn 44F43WO1087412 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 6644341C.000/4VfKMw1LbVz4xPBc > > > Yes, but _why_? I know _what_ a debugs knob allows, but you have yet to explain > > > why this > > I think that if such an interface is provided, it can be used to check the source of > > vm's max_halt_poll_ns, general module parameter or per-vm configuration. > > When configured through per-vm, such an interface can be used to monitor this > > configuration. If there is an error in the setting through KVMCAP_HALL_POLL, such > > an interface can be used to fix or reset it dynamicly. > But again, that argument can be made for myriad settings in KVM. And unlike many > settings, a "bad" max_halt_poll_ns can be fixed simply by redoing KVM_CAP_HALL_POLL. Yes, Whether it is convenient to redo it will depend on the userspace. > It's not KVM's responsibility to police userspace for bugs/errors, and IMO a > backdoor into max_halt_poll_ns isn't justified. Yes, It's not KVM's responsibility to police userspace. In addition to depend on userspace redo, it can be seen as a planB to ensure that the VM works as expected.