Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4004341ybl; Mon, 9 Dec 2019 03:55:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxKWW3LNez5E/Qq7/KoQir3DrTccdGGgUX/8q2b+Z3Nuv5rjujIq4czmL/oANs8DD0TCbQE X-Received: by 2002:aca:bd85:: with SMTP id n127mr18367706oif.136.1575892546335; Mon, 09 Dec 2019 03:55:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575892546; cv=none; d=google.com; s=arc-20160816; b=DE6qc2TOAonKCpkWwGbzvOnQyGWnzY0saLGeq5PtccJbJNDoKUzrlDT/NQbdU2Jm8C tYKrIa//IvMzDVLMSGlHRc9HI/lx/r4LaNjGo0PznRTlPIrGVlrJ6tAL+6BE3uIfUEYc NJdlxW/KA2fqnG1on27IxUuMFu3F4xgtT98Fm1rZUWCC+fEnozHKSjV9MUgYS/YZn+PG /3lbWhkRNdMV6iTQYTaWW+269JX25WGSAqnub83d1igJesoCvF3lQEPEdF6QoXICagkr ECZPWpxuUS4Tdk4JJjBC0fvRlrOdxVEN7hya6KMjlebn0A1187wx78A6OJAiWbWwaQCF AhYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=fI5XR0Oc7iH0Njtfd5p3Zo0glYibOB9BG3KQJ2a/aI4=; b=TaXmbdmjgzM2xRC2oihTrbct1e5L1nbkz9ezEnCkQE5xTcXsQLsrPTRzQS2vZMA4jH OsOqS2fK7r4Dba8Dbq6ohQpXFzzg0eI7EprvDGQWJdE6EQF4gkVZYcedQ+3lcEz3fjZ6 ZXFFHwR8vSt2uskul7zPvGWmo8Cria7go/nTiLrVY8OUxg85beVMKbvpNSFz/8RwyZlI AzqTqtSkr5EMsTtC4mTYti2dGmze7TelwpTF7Tb09ozLcLr3o1AJwlD5S6ekazb+smyO QbzM9Vsn515SGIhqgvXPCt8CFUJEb8W6bFEP7Te/n2rJXrwZEp2xYTsl9n9zdLtISetr BxlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si11483274oik.171.2019.12.09.03.55.33; Mon, 09 Dec 2019 03:55:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727598AbfLILzE (ORCPT + 99 others); Mon, 9 Dec 2019 06:55:04 -0500 Received: from mx2.suse.de ([195.135.220.15]:45070 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727328AbfLILzD (ORCPT ); Mon, 9 Dec 2019 06:55:03 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1914EAEE9; Mon, 9 Dec 2019 11:55:02 +0000 (UTC) Subject: Re: [Xen-devel] [PATCH 2/4] xenbus: limit when state is forced to closed To: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= , Paul Durrant Cc: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, Stefano Stabellini , Boris Ostrovsky References: <20191205140123.3817-1-pdurrant@amazon.com> <20191205140123.3817-3-pdurrant@amazon.com> <20191209113926.GS980@Air-de-Roger> From: =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= Message-ID: Date: Mon, 9 Dec 2019 12:55:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191209113926.GS980@Air-de-Roger> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.12.19 12:39, Roger Pau Monné wrote: > On Thu, Dec 05, 2019 at 02:01:21PM +0000, Paul Durrant wrote: >> Only force state to closed in the case when the toolstack may need to >> clean up. This can be detected by checking whether the state in xenstore >> has been set to closing prior to device removal. > > I'm not sure I see the point of this, I would expect that a failure to > probe or the removal of the device would leave the xenbus state as > closed, which is consistent with the actual driver state. > > Can you explain what's the benefit of leaving a device without a > driver in such unknown state? And more concerning: did you check that no frontend/backend is relying on the closed state to be visible without closing having been set before? Juergen