Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1395315rwd; Thu, 1 Jun 2023 15:09:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rkFEaCGYI4DaRhlrj7UZ6LSpedeaeEejMUJA7KtUdr/57uNoU+UmuzQdK1WFd8OPLWQ5x X-Received: by 2002:a05:6a00:1491:b0:62a:4503:53ba with SMTP id v17-20020a056a00149100b0062a450353bamr9684651pfu.26.1685657386137; Thu, 01 Jun 2023 15:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685657386; cv=none; d=google.com; s=arc-20160816; b=oxalM4etdn6/Cun8wws8xjujC/FsX4Dogwyx4uV52xhnZEm150E4KgqG9tdwagrmgd JGyMOoTnnUzKWpMUqeTGWNUA8i7qNVuQjLxm5iYtzq4MqL2o9Ha1g9wvfwRStT8MzMnH bzvvq132ZDA1jPthSh84dyJ0jxdHVRGGDCAW1/X3n9lLXHwBSK9Gl+jX5jHBcOisYuvQ 2GsezvEVNaA1YExYcLujuCfh4O0/+GwRj3YhFye2neoRSaZ/jueJMQhN8hiUEJKoFTqp sl7DK0VZ8iJ//blNOOEwqLXSCR6G3MWiaJj/is2CVNHtQlmR+aTx+BOfzEy1ABAtEODo QB5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=bdCjoPxZZnywq2ne1+ZsCnnZgLbVMiaq/286mmmutp8=; b=LRBTPlIEQo0DubeNj5iwHK6zA35hgGkbhDvPVHDEomJWZIjScJnfTPMdiyIpThzYAr 33zbmPugvo2XcEumOFj8XLC7EeZtGWedn9FLRPfNIrAB03M5g96c5o6lkE8CqhS8PzkC GgN90Q55Rw3EkkM8PbmnAXIKw44ygwFAttamZGcRglN77VZtjoDinhi5qBv0Woai20aE 68ATOAY8w4yOBAXHZV0MONyK0vU7isOK3nZbZ/Rwr1ceKBEDJc1k5oJa5fek3pq3BT4b +lp6BiCI5g0L2wVkRW7UuJmwsX8HoGuhUQoraZ3ujatHoiEcd6tDzyfhCVJyyIaG0Nzs VhiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm1 header.b="I0u/vVfS"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=nvwzhuTV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c193-20020a6335ca000000b00534919b4ca2si1159536pga.151.2023.06.01.15.09.01; Thu, 01 Jun 2023 15:09:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@invisiblethingslab.com header.s=fm1 header.b="I0u/vVfS"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=nvwzhuTV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbjFAVsf (ORCPT + 99 others); Thu, 1 Jun 2023 17:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbjFAVsd (ORCPT ); Thu, 1 Jun 2023 17:48:33 -0400 Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 424A1184; Thu, 1 Jun 2023 14:48:31 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6CF635C019F; Thu, 1 Jun 2023 17:48:30 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 01 Jun 2023 17:48:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= invisiblethingslab.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t= 1685656110; x=1685742510; bh=bdCjoPxZZnywq2ne1+ZsCnnZgLbVMiaq/28 6mmmutp8=; b=I0u/vVfS+aQQ+0NyvrXyNE7UrhtCpWYEUyH1yA0k/YaGnrGS1c4 01wX2m+YKT/91fE3cXoj2QWpReEjBxmHwt5e3iLj/NGc6cCtFq3rH3pg3YkB0uBn 1yOG7XVTHtywUBGOD7jcMvEfhcFn2XycCQ94zyBmXtvcbFAzjgCaYRINelnUIKry x8FM/Mb5Vusn8uNuo2jGxB4PXKixN2Phe7XX7Dv4WDgWxC+YSuPAB+1930fxc+CA UnVyPVrdlCOILz/V7KB8Wzxh36K1FArblj5uzC/CuaywBwsWuysCIdg9W5lHIY1f qbLdhltA9X6KZBNUAxp1PAFLsnHenkY2v2Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1685656110; x=1685742510; bh=bdCjoPxZZnywq 2ne1+ZsCnnZgLbVMiaq/286mmmutp8=; b=nvwzhuTV4f1CsVyy62FIihquWO3e0 KQQQjF3F4jxnPqzwepUo1AHzpLTusGT/UKSoj1LyX8P+/aO37Bpx8rJ3a9unNBQS QUKindqIqfnlk9gYOA77MYLpc3RjggpZv4FagjqKDzSvKaeDYUEdlZkeBqsdVrqX DwC3qhTc9+H0bwmwqMGne4mvbFzgcNidqo9TaXfjw4Pi/kmoAY2bpPR8jC7Czfkf yTDFOqv+QX/WkQCGZlCdt6cglPlOVqYaiOz9lQifAoj1p0ynbx8JlumKVndpucH7 IeBZR7GsMxR+Wzk8YHyGTFaZzdNlCLOp6W4ntfVY3O7kqGTEmbrdgcZXA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelvddgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgggfestdekredtredttdenucfhrhhomhepffgvmhhiucfo rghrihgvucfqsggvnhhouhhruceouggvmhhisehinhhvihhsihgslhgvthhhihhnghhslh grsgdrtghomheqnecuggftrfgrthhtvghrnhepvdefgeekvdekgfffgeekhfeijedtffek hefhleehfeejueetgfelgefgtdevieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepuggvmhhisehinhhvihhsihgslhgvthhhihhnghhslhgr sgdrtghomh X-ME-Proxy: Feedback-ID: iac594737:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 1 Jun 2023 17:48:29 -0400 (EDT) From: Demi Marie Obenour To: =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Jens Axboe Cc: Demi Marie Obenour , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , xen-devel@lists.xenproject.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] xen/blkback: support delete-on-close block devices Date: Thu, 1 Jun 2023 17:48:21 -0400 Message-Id: <20230601214823.1701-1-demi@invisiblethingslab.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two patches allow userspace to provide an expected diskseq of a block device and discover when blkback has opened the device. Together, these features allow using blkback with delete-on-close block devices, such as loop devices with autoclear set. Demi Marie Obenour (2): xen-blkback: Implement diskseq checks xen-blkback: Inform userspace that device has been opened drivers/block/xen-blkback/xenbus.c | 147 ++++++++++++++++++++++++----- 1 file changed, 124 insertions(+), 23 deletions(-) -- Sincerely, Demi Marie Obenour (she/her/hers) Invisible Things Lab