Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EF8EC3A5A2 for ; Tue, 10 Sep 2019 11:07:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2D7A0207FC for ; Tue, 10 Sep 2019 11:07:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D7A0207FC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:38052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7dzq-0003kk-7g for qemu-devel@archiver.kernel.org; Tue, 10 Sep 2019 07:07:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40965) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i7duB-000858-Ps for qemu-devel@nongnu.org; Tue, 10 Sep 2019 07:01:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i7duA-0004eU-M9 for qemu-devel@nongnu.org; Tue, 10 Sep 2019 07:01:51 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51524 helo=huawei.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i7du9-0004cl-1L for qemu-devel@nongnu.org; Tue, 10 Sep 2019 07:01:49 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 2EFE53F170FA29A0E8BB; Tue, 10 Sep 2019 19:01:41 +0800 (CST) Received: from [127.0.0.1] (10.133.216.73) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Tue, 10 Sep 2019 19:01:23 +0800 To: From: Guoheyi Message-ID: <95584103-950c-2870-b0a1-1108d54190f2@huawei.com> Date: Tue, 10 Sep 2019 19:01:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.216.73] X-CFilter-Loop: Reflected X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 45.249.212.35 Subject: [Qemu-devel] hw/vfio/pci: duplicated invocation of vfio_msix_vector_release() in vfio_msix_disable() 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: wanghaibin 00208455 , Alex Williamson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Hi folks, Recently we found there are 2 invocations of vfio_msix_vector_release() in vfio_msix_disable(). The 1st one is in msix_unset_vector_notifiers(), for we set device's msix_vector_release_notifier to vfio_msix_vector_release() in vfio_msix_enable(), while the 2nd is the explicit one in vfio_msix_disable(). Both invocations switch VFIO to use the non-bypass eventfd. Is there any special reason for doing this? Or can we remove one of them? Thanks, Heyi