From nobody Wed Nov 12 15:02:14 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1571670348; cv=none; d=zoho.com; s=zohoarc; b=X4RvluebLwbLzGZRGMujJ0Hv5QT+Jx9ZaASCptLoKQaQaoP5zoepMop2wEy0b8YiNK9nFzlUQ1RKSqeq/QkmI7aeI4dFmpphKzATEnuOHeor3KX7JOAMTuWNDCq8ysNIw7V8HpSgrL7YkPHsUy+bPGxRrzD4yDDROCcsOvla5PE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571670348; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=p/FkbIruihCuB2dCbzP3Kozlt1WA3tFVLFKrWZ6zeT0=; b=mRE9/0nkcOYRZPimzNKWTg6Nkv12r/uwe+lAbQrJnhnQmUnR4YoCLmt1kVqudh9KtxXKj63TsUu0H0AcGUbYtkbVSYEruWtFBkieXl75XVmeScyA1iGRMDk3BMM9eyinL+Eo/kuKb7Uv6b9PMirRvjdTRwY9g41/aCmz4jcMtz4= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1571670348583368.235177316344; Mon, 21 Oct 2019 08:05:48 -0700 (PDT) Received: from localhost ([::1]:43744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZFe-0005hX-5q for importer@patchew.org; Mon, 21 Oct 2019 11:05:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54445) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZE1-00040S-32 for qemu-devel@nongnu.org; Mon, 21 Oct 2019 11:04:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMZDz-0007aA-1a for qemu-devel@nongnu.org; Mon, 21 Oct 2019 11:04:00 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:60725 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iMZDy-0007Zh-IR for qemu-devel@nongnu.org; Mon, 21 Oct 2019 11:03:58 -0400 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-351-TebYvb7gPN2qwE8zIdADWg-1; Mon, 21 Oct 2019 11:03:56 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A1F31800D41 for ; Mon, 21 Oct 2019 15:03:55 +0000 (UTC) Received: from localhost (ovpn-116-128.ams2.redhat.com [10.36.116.128]) by smtp.corp.redhat.com (Postfix) with ESMTP id BD3971001DC2; Mon, 21 Oct 2019 15:03:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571670237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p/FkbIruihCuB2dCbzP3Kozlt1WA3tFVLFKrWZ6zeT0=; b=C/KdxSDlApViV8w4f9+DHP5QrQ0LQoObNjn+JP77pxyZd9XpHoSzDOc5tdpu+S+od/ODn9 woiLakyzx9+iLaePpTLH93yrnWZkno3GGo1QXtvc0NZ8u3EvclZMESAy+EnJO4Wp9Hk+1w DLq9A81NMJXSo3f/KBC24J+pX321QFo= From: Stefan Hajnoczi To: qemu-devel@nongnu.org Subject: [PATCH] virtio: drop unused virtio_device_stop_ioeventfd() function Date: Mon, 21 Oct 2019 16:03:43 +0100 Message-Id: <20191021150343.30742-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: TebYvb7gPN2qwE8zIdADWg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Stefan Hajnoczi , "Michael S. Tsirkin" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" virtio_device_stop_ioeventfd() has not been used since commit 310837de6c1e0badfd736b1b316b1698c53120a7 ("virtio: introduce grab/release_ioeventfd to fix vhost") in 2016. Nowadays ioeventfd is stopped implicitly by the virtio transport when lifecycle events such as the VM pausing or device unplug occur. Cc: Paolo Bonzini Signed-off-by: Stefan Hajnoczi Reviewed-by: Stefano Garzarella --- include/hw/virtio/virtio.h | 1 - hw/virtio/virtio.c | 8 -------- 2 files changed, 9 deletions(-) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 48e8d04ff6..14660ea30a 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -302,7 +302,6 @@ EventNotifier *virtio_queue_get_guest_notifier(VirtQueu= e *vq); void virtio_queue_set_guest_notifier_fd_handler(VirtQueue *vq, bool assign, bool with_irqfd); int virtio_device_start_ioeventfd(VirtIODevice *vdev); -void virtio_device_stop_ioeventfd(VirtIODevice *vdev); int virtio_device_grab_ioeventfd(VirtIODevice *vdev); void virtio_device_release_ioeventfd(VirtIODevice *vdev); bool virtio_device_ioeventfd_enabled(VirtIODevice *vdev); diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 527df03bfd..05186a531c 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -2773,14 +2773,6 @@ static void virtio_device_stop_ioeventfd_impl(VirtIO= Device *vdev) } } =20 -void virtio_device_stop_ioeventfd(VirtIODevice *vdev) -{ - BusState *qbus =3D qdev_get_parent_bus(DEVICE(vdev)); - VirtioBusState *vbus =3D VIRTIO_BUS(qbus); - - virtio_bus_stop_ioeventfd(vbus); -} - int virtio_device_grab_ioeventfd(VirtIODevice *vdev) { BusState *qbus =3D qdev_get_parent_bus(DEVICE(vdev)); --=20 2.21.0