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=-7.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS 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 C0945C4338F for ; Tue, 17 Aug 2021 12:41:01 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 78A2660EFF for ; Tue, 17 Aug 2021 12:41:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 78A2660EFF Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=xenproject.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.167826.306379 (Exim 4.92) (envelope-from ) id 1mFyOc-0003C8-RZ; Tue, 17 Aug 2021 12:40:46 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 167826.306379; Tue, 17 Aug 2021 12:40:46 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mFyOc-0003C1-Oc; Tue, 17 Aug 2021 12:40:46 +0000 Received: by outflank-mailman (input) for mailman id 167826; Tue, 17 Aug 2021 12:40:45 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mFyOb-0003Bv-Aq for xen-devel@lists.xenproject.org; Tue, 17 Aug 2021 12:40:45 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mFyOb-0005bP-8Q for xen-devel@lists.xenproject.org; Tue, 17 Aug 2021 12:40:45 +0000 Received: from iwj (helo=mariner.uk.xensource.com) by xenbits.xenproject.org with local-bsmtp (Exim 4.92) (envelope-from ) id 1mFyOb-0003gU-7O for xen-devel@lists.xenproject.org; Tue, 17 Aug 2021 12:40:45 +0000 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.89) (envelope-from ) id 1mFyOX-00041S-Ub; Tue, 17 Aug 2021 13:40:41 +0100 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=References:In-Reply-To:Subject:To:Date: Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:From; bh=jptwKW6gHB9qUK7dXWcMKuxzHbYUFvhXn6ufoZROtgY=; b=3dVjpvcUhqRPeXK7SU1N/bG9zR YeSqdjj+7wHlo7kMj3H0ERYH2r/biglIxfprNBt9pz/TX68IjqkfinMkQxh4ZwX+JvnE1zmMd5cf+ A/8pqpOxJWzOlT4/Bz4VW+H4mhk+dhPHLls/MDKueS7JvWbBFT5LhqER0M+4r8IeVqHQ=; From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24859.44617.658107.36709@mariner.uk.xensource.com> Date: Tue, 17 Aug 2021 13:40:41 +0100 To: Jason Andryuk , xen-devel@lists.xenproject.org, pdurrant@amazon.com, Wei Liu , Anthony PERARD , Juergen Gross , Oleksandr Andrushchenko , Marek =?iso-8859-1?Q?Marczykowski-G=F3recki?= , Stefano Stabellini Subject: Re: [PATCH v2] libxl: Fix stubdom PCI passthrough In-Reply-To: <24859.43747.87671.739214@mariner.uk.xensource.com> References: <20210812005700.3159-1-jandryuk@gmail.com> <24859.43747.87671.739214@mariner.uk.xensource.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) > I looked through the git history. Also there are some doc comments in libxl_internal.h. In particular "Algorithm for handling device removal" (near l.2844 in my tree) and the following I don't think that diagram has been modified since I drew it, so it may well be out of date. Indeed I hope at least the new QMP arrangements aren't racy... And, "As of Xen 4.5 we maintain various information" which describes the various locks and has a proof sketch for correct operation. Ian.