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=-5.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 68138C433E1 for ; Thu, 28 May 2020 15:37:09 +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 4652D207D3 for ; Thu, 28 May 2020 15:37:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4652D207D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jeKaa-0003mm-1d; Thu, 28 May 2020 15:37:00 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jeKaZ-0003mh-AJ for xen-devel@lists.xenproject.org; Thu, 28 May 2020 15:36:59 +0000 X-Inumbo-ID: 10ec624c-a0f9-11ea-9947-bc764e2007e4 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 10ec624c-a0f9-11ea-9947-bc764e2007e4; Thu, 28 May 2020 15:36:58 +0000 (UTC) Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: fW9UcRnGtaSb/vQbF641kwn586xwA1LwZHfddXB+nK3WepsVMyx1sDlsiOEs32UkPyqbzyc1NT fm3wZkgmXhG2Zq7OFSfRho9E86TMfhtFiqN1QSBQTlUj8omLtRSrYyCS0oH8WJFGU10loMclO0 RBPaq0CI6ZInpHkMQhEzjDQWeWeOv0byxapIs+rS3m0r6RMPzzD3RanE4MHsTMScv9GZ9YxYpF FOUgd/FkjxPvGtyurdGDK4EDopUZRTzIBYWg3IybRLiMJUeT+KlXJgAIlFsjzlIQYO0QndLzj+ m44= X-SBRS: 2.7 X-MesageID: 18969184 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.73,445,1583211600"; d="scan'208";a="18969184" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <24271.55958.888390.570837@mariner.uk.xensource.com> Date: Thu, 28 May 2020 16:36:54 +0100 To: Jason Andryuk Subject: Re: [OSSTEST PATCH 01/38] ts-logs-capture: Cope if xl shutdown leaves domain running for a bit In-Reply-To: References: <20200519190230.29519-1-ian.jackson@eu.citrix.com> <20200519190230.29519-2-ian.jackson@eu.citrix.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: xen-devel Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Jason Andryuk writes ("Re: [OSSTEST PATCH 01/38] ts-logs-capture: Cope if xl shutdown leaves domain running for a bit"): > My understanding is shutdown happens first when the guest stops and > destruction happens afterward when all the resources are cleaned up. > So your race is that the domain shutdown, but it still shows up in `xl > list` since it hasn't been destroyed. > > OpenXT has a hack to only wait for destruction > https://github.com/OpenXT/xenclient-oe/blob/master/recipes-extended/xen/files/xl-shutdown-wait-for-domain-death.patch. > I didn't write it, and the explanation isn't specific, but I think the > purpose is to all resources are released before the OpenXT toolstack > proceeds with (blktap) cleanup. > > Maybe a new `xl shutdown` flag to wait for domain destruction would be > worthwhile? Yes! Repeating the -w flag maybe. Ian.