Message ID | 20210205150135.94643-6-mst@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Gmnr7S6l; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DXJff74M1z9sWW for <incoming@patchwork.ozlabs.org>; Sat, 6 Feb 2021 02:06:50 +1100 (AEDT) Received: from localhost ([::1]:41828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1l82h4-0005zY-Ge for incoming@patchwork.ozlabs.org; Fri, 05 Feb 2021 10:06:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mst@redhat.com>) id 1l82eJ-0003nD-A1 for qemu-devel@nongnu.org; Fri, 05 Feb 2021 10:03:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:27767) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from <mst@redhat.com>) id 1l82eG-0002x4-S4 for qemu-devel@nongnu.org; Fri, 05 Feb 2021 10:03:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612537432; 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: in-reply-to:in-reply-to:references:references; bh=Ong1GkdT0BdhwEoV9qdLEHGI9i35eWRtkFgpntdqfWY=; b=Gmnr7S6lKVQ96OvrEfuCjtpMEac6c9om2unr4TrUtzouQk6NVYM7KDn9eOgLU8rqJnlMej 7Yl2Iw6vGhjMLlZDpzbJzDWnmfnBLKS1zbrGr4rybgsqwpJdwEcBE68mVjTw4eAPMZRhyC mibWBx4chiMVs5kjBgyQqL6/94G4gmE= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-37-CcO889jPOHm6HCsinfbOuA-1; Fri, 05 Feb 2021 10:03:48 -0500 X-MC-Unique: CcO889jPOHm6HCsinfbOuA-1 Received: by mail-ed1-f72.google.com with SMTP id u24so4054727eds.13 for <qemu-devel@nongnu.org>; Fri, 05 Feb 2021 07:03:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=Ong1GkdT0BdhwEoV9qdLEHGI9i35eWRtkFgpntdqfWY=; b=nF9Ehevres1H9dcldqzRM1eiHoce3BFlo69gqI2N6BxVxBt4X8YbiWWL/edjbMXlm0 ueO0g5zcc+tSgXHM09NkWPvodouWvOsDdBzExzT3to5Axxamovfz/LT4B7+5FHQaE8+k EAuD6jWHZCo4I/Uisv8XjX28n6pv7SNyrojQCfqLVEhPDfgZBWhWOJrIJVoB5xM2kRR6 3D+Dz1INjsJrlIzCHQStRiFX0XfP5qQCjCDlwM95v4vr+IScXmEaIP85L8J2Tp1iSMo7 iPKnS3zavvLbeiKEuAiMXd9FHQssDvex5dIiIWyqXaBrEBeIhnl/h8q+bot7HcHgTc6w NbbQ== X-Gm-Message-State: AOAM531bs49uH8Fnz+qxQ6To+DHftx/Dte0B02l74wsQIqf7pU45zgXw vANT/lyxXqe/IcugGmU4meQajhU8uTMZbv2rifkDju5PEB4eSBL9qSXXKiB0aOG3zMATGi9AuiY a/+XoO6Top9GQzD8bRZoRv1hx0E1TnY2IIM+ueQUVxRkQJMkKfQ/liSIAm04+ X-Received: by 2002:aa7:d755:: with SMTP id a21mr3810034eds.301.1612537426753; Fri, 05 Feb 2021 07:03:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzN7scbcxPqpIzJH2isJ0Wa2pxDZ/uBlqyJIFD2KtdaApfbPDhpVWMsbgQNaQln2l05SA4lLQ== X-Received: by 2002:aa7:d755:: with SMTP id a21mr3810012eds.301.1612537426546; Fri, 05 Feb 2021 07:03:46 -0800 (PST) Received: from redhat.com (bzq-79-180-2-31.red.bezeqint.net. [79.180.2.31]) by smtp.gmail.com with ESMTPSA id bm2sm3992188ejb.87.2021.02.05.07.03.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Feb 2021 07:03:45 -0800 (PST) Date: Fri, 5 Feb 2021 10:03:43 -0500 From: "Michael S. Tsirkin" <mst@redhat.com> To: qemu-devel@nongnu.org Subject: [PULL v2 05/16] virtio: Add corresponding memory_listener_unregister to unrealize Message-ID: <20210205150135.94643-6-mst@redhat.com> References: <20210205150135.94643-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20210205150135.94643-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-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=216.205.24.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.352, 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.23 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Peter Maydell <peter.maydell@linaro.org>, Jason Wang <jasowang@redhat.com>, Stefano Garzarella <sgarzare@redhat.com>, Peter Xu <peterx@redhat.com>, Eugenio =?utf-8?b?UMOpcmV6?= <eperezma@redhat.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,v2,01/16] pci: reject too large ROMs
|
expand
|
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index b308026596..1fd1917ca0 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -3680,6 +3680,7 @@ static void virtio_device_unrealize(DeviceState *dev) VirtIODevice *vdev = VIRTIO_DEVICE(dev); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(dev); + memory_listener_unregister(&vdev->listener); virtio_bus_device_unplugged(vdev); if (vdc->unrealize != NULL) { @@ -3710,7 +3711,6 @@ static void virtio_device_instance_finalize(Object *obj) { VirtIODevice *vdev = VIRTIO_DEVICE(obj); - memory_listener_unregister(&vdev->listener); virtio_device_free_virtqueues(vdev); g_free(vdev->config);