From nobody Sun Feb 8 18:30:15 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1641848959; cv=none; d=zohomail.com; s=zohoarc; b=YadpeIAdd7LNxGLXJdGiFGxXOEM8UoNncjyR0tKLJDP9Y3+wJfO8wKTAzoF8XEJDqS6PKFKMxwuJIa9Esc5aJ33O3g+As0WCn3av38lZqoI6Ih3Wyju43U9Z0zcNmdvqgzBqsppO1SabNNKWv3RMUmt0xsLLo740yI9idmdNj5o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641848959; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=BAJ+KG3jYTMVyAFjeLpjh/nWVc+IFbPXKDIrO0tfKro=; b=FziPNqrC/2hfxk3ujvt37hNKjBcNj4PLRuVASuDV+B0yy/KurVTPPwUvf4pUaXJlkuZI7SuQ1eAVm699+Qrlg5bfaH5OaRhGoEuikGOPIgs2MvW6pjvapX1BDtDR8InAYyCrVA1dYnpF+j8FUdzsRCHvKhFkhX2cpgxNffZ4xrQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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 1641848959775868.4060303431319; Mon, 10 Jan 2022 13:09:19 -0800 (PST) Received: from localhost ([::1]:41412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n71uo-0002Ra-Cl for importer@patchew.org; Mon, 10 Jan 2022 16:09:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n71qf-0007rT-0C for qemu-devel@nongnu.org; Mon, 10 Jan 2022 16:05:01 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:46734) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n71qc-0004OU-6B for qemu-devel@nongnu.org; Mon, 10 Jan 2022 16:04:59 -0500 Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-538-ajgu4CATONO8uRUGvqpzVQ-1; Mon, 10 Jan 2022 16:04:56 -0500 Received: by mail-wm1-f72.google.com with SMTP id j18-20020a05600c1c1200b003335872db8dso2650796wms.2 for ; Mon, 10 Jan 2022 13:04:55 -0800 (PST) Received: from redhat.com ([2.55.19.241]) by smtp.gmail.com with ESMTPSA id c11sm8830698wmq.48.2022.01.10.13.04.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jan 2022 13:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641848697; 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: in-reply-to:in-reply-to:references:references; bh=BAJ+KG3jYTMVyAFjeLpjh/nWVc+IFbPXKDIrO0tfKro=; b=HrkNWqnATLGWQAFnlLvAA6WvwCZvox8/25kOschScnKmM7jH1ZdTkQMjKwUbF1HqvjLATi lyTMV2RalDFizr+sr4NZrrwwor0bcyrrKV6BB9AwNqahTixfdNdXODEZ4eT43BeVfHg/oW xWLqHJAvn8O9Bo3tV7kguK942XkiOUA= X-MC-Unique: ajgu4CATONO8uRUGvqpzVQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BAJ+KG3jYTMVyAFjeLpjh/nWVc+IFbPXKDIrO0tfKro=; b=sK8a+K2nqQMzzoWEcOtY+ds/nHh4vAVgz0ReTOKesdn+k1y/CdFBPr8A/fD2cW7H/R aLy6D28UYAoP/qxgI7qxfouBX7NEv2ZIz2FaV2MneudY6sh7goLn6uJvOAp5kYkZsPPe wFhWC7quhz2itt3Ng+QES3hCwX2HeGqgQ+FqLGIJdO7a58V4WoOTsXCsRJN4U3a67xlR vV9wBSFH1Rsbvrdav9LbeVSeoZt8UFG7FChp7X5oVHkbtPwMvrvzQ38H5OzolnVlqvfJ PlGNrJKScMU6vYE/eYxXn9p8Zsu265LkaX4WywIwmCt6zgzngJfhvbnf50RW+93FstA6 alaA== X-Gm-Message-State: AOAM531nRRj65BEhq0o4C2Js0B0BnVubZjMFP87RZZLWXaYC1mXSxKi7 RFoilF2xwccOK8vENmf1uikUDWZJsSDD3UJMqPsSh9w0tGle+B+4X7xJ0PmXx2PMxGT6qnzBaeI TIiZpY/vzusRy5G9Q/+L+rgVhBDHg5kbPvQSEu7+/MaotJOslaY74RNzo6L6N X-Received: by 2002:a1c:c915:: with SMTP id f21mr1047903wmb.39.1641848694623; Mon, 10 Jan 2022 13:04:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzt6Y9nbLnVQlPjrvkA6VnZueCjLxH54XRIPpLs4LGFVPItDMXlVcP/BHmc7MWGdjg4qQXIyw== X-Received: by 2002:a1c:c915:: with SMTP id f21mr1047883wmb.39.1641848694380; Mon, 10 Jan 2022 13:04:54 -0800 (PST) Date: Mon, 10 Jan 2022 16:04:52 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PULL v2 02/10] Revert "virtio-mmio: add support for configure interrupt" Message-ID: <20220110210416.18779-3-mst@redhat.com> References: <20220110210416.18779-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20220110210416.18779-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline 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=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.597, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Cc: Peter Maydell , Cindy Lu Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1641848961809100001 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This reverts commit d48185f1a40d4e4ed2fa2873a42b2a5eb8748256. Fixes: d48185f1a4 ("virtio-mmio: add support for configure interrupt") Cc: "Cindy Lu" Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-mmio.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c index 809132018b..72da12fea5 100644 --- a/hw/virtio/virtio-mmio.c +++ b/hw/virtio/virtio-mmio.c @@ -673,30 +673,7 @@ static int virtio_mmio_set_guest_notifier(DeviceState = *d, int n, bool assign, =20 return 0; } -static int virtio_mmio_set_config_guest_notifier(DeviceState *d, bool assi= gn) -{ - VirtIOMMIOProxy *proxy =3D VIRTIO_MMIO(d); - VirtIODevice *vdev =3D virtio_bus_get_device(&proxy->bus); - VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_GET_CLASS(vdev); - bool with_irqfd =3D false; - EventNotifier *notifier =3D virtio_config_get_guest_notifier(vdev); - int r =3D 0; =20 - if (assign) { - r =3D event_notifier_init(notifier, 0); - if (r < 0) { - return r; - } - virtio_config_set_guest_notifier_fd_handler(vdev, assign, with_irq= fd); - } else { - virtio_config_set_guest_notifier_fd_handler(vdev, assign, with_irq= fd); - event_notifier_cleanup(notifier); - } - if (vdc->guest_notifier_mask && vdev->use_guest_notifier_mask) { - vdc->guest_notifier_mask(vdev, VIRTIO_CONFIG_IRQ_IDX, !assign); - } - return r; -} static int virtio_mmio_set_guest_notifiers(DeviceState *d, int nvqs, bool assign) { @@ -718,10 +695,6 @@ static int virtio_mmio_set_guest_notifiers(DeviceState= *d, int nvqs, goto assign_error; } } - r =3D virtio_mmio_set_config_guest_notifier(d, assign); - if (r < 0) { - goto assign_error; - } =20 return 0; =20 --=20 MST