Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp29709ybt; Tue, 16 Jun 2020 15:36:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW+XHDNRsJwDN+1NW2mEuPNBpE7ZssWOepFsYMp/JrcwNjDJt8Krn6cVgZUo2ZwyD+D2WL X-Received: by 2002:a17:906:1386:: with SMTP id f6mr4857844ejc.66.1592347002170; Tue, 16 Jun 2020 15:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592347002; cv=none; d=google.com; s=arc-20160816; b=bp5fWLfowD7YIIEQh9HjwvOdKjdgi8clcK0eKPPnHB/AOjQcqNxfAgzMV0xlj9tvfV Z1rWXE7N/uZ5XHHdKU0DmYvtWwlTK8uo7lWLRyfIRbfWTyfdO4Ht6vRJ3babkfObujNi DIj4L5eAgs11cebv0mFbY+0YL8rIfKGlsga0zp94SK6DMCQMfpqjJANQO4PuHTTWGSez VYpCfoiMpqjiPgCpLUni3xe0ZFfoaGwleMHkQxoyAGMNTZgP+SadOPBY8VjeAgYbA2ur H2zrdh1F6JUHD/c+bRpwI4bVQXkOCUVh/wm0Xlvus1DeDfj9k6BeCiBkUPwnsRmqVhkO MNUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=ZmNYWaeeFv3Dc6ixQjxLv5HuZewlv2Zg/Sr+cvRX4hE=; b=Oi6nq3CHhYo176MU50i3xWUZuP2A9o9nRN4nCF2yqtVNlObnlPDE5qdh/JPM58l7j9 UFmHv3JmW0fHx1f+bIEK8GtsCksyFbXvtEQuYLeUAfFRqJ1ywIZ5sM9gcGoKBiyI+LO+ WGVStkrP6rFVhTyApvM86y+kb3wvskHent40eGorq+lGMUomEU4yqJOpyW7rZhHkwYrI Hl4RAfJQ2oAYzWdXAoO4Zf2DmpT30jVAp72j/fDJ0UE3dSgb7DiwObrGeUISEhey0Iwd bSfyDcHOc6npQkX7h8dQtwqpeKNniZYMjX7mjUHWbPG4uahMsMW0fTXcHHr3RRH9mREM YDKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=dUQr4L49; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si12269311ejc.60.2020.06.16.15.36.20; Tue, 16 Jun 2020 15:36:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=dUQr4L49; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbgFPWeZ (ORCPT + 99 others); Tue, 16 Jun 2020 18:34:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbgFPWeY (ORCPT ); Tue, 16 Jun 2020 18:34:24 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE08C061573 for ; Tue, 16 Jun 2020 15:34:24 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id c12so36068qtq.11 for ; Tue, 16 Jun 2020 15:34:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=ZmNYWaeeFv3Dc6ixQjxLv5HuZewlv2Zg/Sr+cvRX4hE=; b=dUQr4L49bnG3TuO9sz7aMFKYmqT3jGcXug9D9Wz7YNyvjOUwLYpuAGD9Mh3newVIQT vmrteic9VcFxcfGU8whoIXVqjQ6N6+uhZ93vQGklZiJa87U4gaU550pTpETcdOjkU48v f5DWiZNxQxTDblR1EtgQZz2INcQvf2zQAeQAiUnWwSghBr0giZsBXwYLZcxy+dNyYo7j Rvo6xjVR8Vk+ze54yxhJPip3EU6WuqrgnDILtr8qnNbIebPDD8XzwSBo3VxlQ59wCwq/ uw6aV9Wa60yECrEYI1QfQgb6iqskMa+hNsjjY1IMSnZOTr3wP0y7q6qKUVvWfz6/PxSY yETw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=ZmNYWaeeFv3Dc6ixQjxLv5HuZewlv2Zg/Sr+cvRX4hE=; b=ZZFQYwMajfzWnm74xQmeu/qaE+Gz4e5g7+mmP2X9vtDareJD4Dogn4Vs09FkrmMFZp IpFkpdzsQ0lvVakOMpTr1cnxbqScNYMfSEhUGH4eiVcH7q/7/huLkimmtAl1OIyZokH3 m9VI2PhfTZ1OuqxS2GRDK5T6VD61sovJATQ0evxI6+QgnTFiEfcb0t6LLId3aYyN2mRi 9uCorkUDrINhx6kJ9yADhjPkSbRHu3vdZoKkN2qzYsWJmwo+vIGFgl/QTMWjv5DaghZO 51dSB4IHsmTa+VHPQEDENyW5hYDuSL1UwR5FLIyd7VrahldS802Qz5C+k7213wliuYaE Q+JA== X-Gm-Message-State: AOAM530Lxe4gom897eHpoExtymU5+MmJVbXrtXkqOByX6vRhqAWiZrV7 aLYBmuRP/fJTMnTlUhnGRVAUZA== X-Received: by 2002:aed:3f17:: with SMTP id p23mr23854259qtf.346.1592346863537; Tue, 16 Jun 2020 15:34:23 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id a191sm15221083qkc.66.2020.06.16.15.34.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jun 2020 15:34:23 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] vfio/pci: Clear error and request eventfd ctx after releasing Date: Tue, 16 Jun 2020 18:34:22 -0400 Message-Id: <5F40A3A0-1C05-4411-B353-3D4F2E488EE7@lca.pw> References: <159234276956.31057.6902954364435481688.stgit@gimli.home> Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, cohuck@redhat.com, dwagner@suse.de In-Reply-To: <159234276956.31057.6902954364435481688.stgit@gimli.home> To: Alex Williamson X-Mailer: iPhone Mail (17F80) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jun 16, 2020, at 5:26 PM, Alex Williamson w= rote: >=20 > The next use of the device will generate an underflow from the > stale reference. Thanks Alex for taking care of this. I suppose my tests were too basic and n= ever able to catch this underflow in the first place.=