From nobody Sun Sep 28 15:28:17 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1758568245; cv=none; d=zohomail.com; s=zohoarc; b=l53LWNnyNNS1SGJRj1ToLrRppu1YfbpxSOd8GBLiYaOpPLUV9Zb5xA4ms5fT9fIor7oxXVf3x+gVJa8JWeUSk3mJJPDMz2cNU2oqGgnqPTKJANMGoybgsYxsLD66SUtIT1kWCDizjg4eJPrLhg9p1tROVHYOcaXF3i0CyzEePE4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1758568245; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Sender:Subject:Subject:To:To:Message-Id; bh=gWqBjPac9MQ4nOmbKfRXHChHhHanQb7Dz0xUBqUVMmc=; b=IXW3eF3RoiaZ/d2YiPgbkLBicyCnq7QavzljDdkhqOdGuKydeeLagu34j4YDLfEa2GQsiOUySLphMUo3xgsJ4gF7CdCh0VXvV6swDQzSf/UkB5y2Zb1zrlj3nAcFzDOHb2VK8XMhztyAbHHDWKWG7v0Kaki0J/10mscNu1f4SWI= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1758568245370622.1318922407049; Mon, 22 Sep 2025 12:10:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1v0lt5-0003uy-3K; Mon, 22 Sep 2025 15:07:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v0iZU-0002Gf-Gu for qemu-devel@nongnu.org; Mon, 22 Sep 2025 11:35:20 -0400 Received: from mx24.baidu.com ([111.206.215.185] helo=baidu.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v0iZR-0001tR-Hj for qemu-devel@nongnu.org; Mon, 22 Sep 2025 11:35:20 -0400 To: qemu-devel CC: "Michael S . Tsirkin" , Stefano Garzarella , Li Zhaoxin , Gao Shiyuan Subject: [PATCH] vhost: Do not actively send a config interrupt Date: Mon, 22 Sep 2025 23:19:32 +0800 Message-ID: <19ac5fa24777515f9f0878e6874dc9f6edec45a3.1758552835.git.lizhaoxin04@baidu.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.127.73.8] X-ClientProxiedBy: bjhj-exc9.internal.baidu.com (172.31.3.19) To bjhj-exc18.internal.baidu.com (172.31.4.16) X-FEAS-Client-IP: 172.31.4.16 X-FE-Policy-ID: 52:10:53:SYSTEM Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=111.206.215.185; envelope-from=lizhaoxin04@baidu.com; helo=baidu.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 22 Sep 2025 15:07:33 -0400 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Li Zhaoxin From: Li Zhaoxin via Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1758568247848116600 Content-Type: text/plain; charset="utf-8" From: lizhaoxin After the VM is suspended/resumed or live-migrated, we do not want the guest to output information such as the capacity of the block device, as this is noticeable to the tenant. Also, there is no need to immediately send a config notifier for the virtio device after vhost_dev_start. Co-developed-by: Gao Shiyuan Signed-off-by: Gao Shiyuan Signed-off-by: Li Zhaoxin --- hw/virtio/vhost.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index 6557c58d12..1f8a495ef8 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -1847,15 +1847,10 @@ static void vhost_stop_config_intr(struct vhost_dev= *dev) =20 static void vhost_start_config_intr(struct vhost_dev *dev) { - int r; - assert(dev->vhost_ops); int fd =3D event_notifier_get_fd(&dev->vdev->config_notifier); if (dev->vhost_ops->vhost_set_config_call) { - r =3D dev->vhost_ops->vhost_set_config_call(dev, fd); - if (!r) { - event_notifier_set(&dev->vdev->config_notifier); - } + dev->vhost_ops->vhost_set_config_call(dev, fd); } } =20 --=20 2.34.1