Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp359659pxb; Wed, 14 Apr 2021 17:48:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/VJJ2VWPuUmyIrj99vH3aO/o8P+QKAToyVy2pSbTj4wlhz4ghX6mp34JTyUjAv4RyKomx X-Received: by 2002:a17:907:3ac1:: with SMTP id fi1mr739098ejc.139.1618447681429; Wed, 14 Apr 2021 17:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618447681; cv=none; d=google.com; s=arc-20160816; b=Z9rRbGkd4Z1N1cyWxUnDqkKbOeKc9S9+e9Ji7ClNHh/y6OIT3g4sKxKJe4IAlsrsIu eScQPMsW2t8kJRUmNzJ2iUkSqAct9RvxeMLwAjkqxdeUnHRKLMja6rukktxqBDPlBUZa 4l+htM47c58Fn3yTJApbqEBHCPo7FnKoh043A8GbHfwBYUJ1b7Mh5lX/RX2q4XJ+VY9W An8rw0aGnOz0sSZTonbqaLfUKDuNEUBKS9RjuEmNqHpWl2DEN/fSP3yV8N4xBzmnpYZi CXo7iz3rwLjZVBvTQmZdk2uAcmHOOAu8ihZFzBJRyoH5q82g0KQb45IL4KaEXMrN2Zn5 t/rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZylcG8gLvFNIkglYp5Xb+SZrmXw8uOYOYoFsEhIqSSQ=; b=T+eDuyEvjSZZD/GOxDMVt05qN+aCcY7jmln1C2lAVOkE+F+K5/p4FyalWWIpMMkX8a 0it6HTmF7qeemTz9DaG3ylwc/hDFcEFgQuNnNVTdlTxRVgZ9BWn1zB1E/6DqAWvVrLLI QA2htjEThH7N6toYkunGG8z28v6xydhFqSJKzqTffv3diiXfxZoAOlZPqSIvTVJvAt2X 88a9BO2tonRdB97AArT4EQ+U/m1ZmRncJynr1IeVu4p6xa4NCEM6w5y3Bban50zzXKoF wfVqKRPJriblnednJaTJmxj1PXLig2Pbp4nOPkmNw+Ew79eMbnHrhyxclevDZA/9m3RU nfqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tBCuUu5e; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si826917ejm.240.2021.04.14.17.47.38; Wed, 14 Apr 2021 17:48:01 -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=@google.com header.s=20161025 header.b=tBCuUu5e; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240066AbhDNUM6 (ORCPT + 99 others); Wed, 14 Apr 2021 16:12:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231773AbhDNUM4 (ORCPT ); Wed, 14 Apr 2021 16:12:56 -0400 Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A538C061574 for ; Wed, 14 Apr 2021 13:12:31 -0700 (PDT) Received: by mail-vs1-xe2f.google.com with SMTP id u22so1867vsu.6 for ; Wed, 14 Apr 2021 13:12:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZylcG8gLvFNIkglYp5Xb+SZrmXw8uOYOYoFsEhIqSSQ=; b=tBCuUu5ebtiahNV5/ZHRzBlNBI4dgYJSEuBfVp5V3JQjWXsSc30TA4UPEw2Brzr/LW AV7r9dz7+13mXvZ9xgsgDFD4i4Dv7Kv7AiLEgF6PKbmLOAXD2ng6iN1nWyc9ve8eiijV 6SmIBLUJzkbrEgFNq9Bo1ak4ZmEAJPFQRWxqd7E+e7JkYvL5i4vD3tPw6i3PJISx/bLe u63EuKeujieZnQ1SNAiwMnpFCbbx/eAV5Co3E53rtZR+n9BOk0HFNyd98kv84yauUumm gepP8hpz22Ih6JFBcPOSouGNQq86s34o3ngNTP1rkrfJNWcPnpfYvB+C6Z4wTTol/SKu 0g9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZylcG8gLvFNIkglYp5Xb+SZrmXw8uOYOYoFsEhIqSSQ=; b=n3CPX0VI0vcbc05tT0wZX9MEA94NdIQKmrmgnKM1pIOYx4jH8mb8MMURXvL1sWsp2z AMglLJzz5e3nKS8/3CrXvc6xsDZ+Wca0YZdE+Ho1n2Z347Aoshp4FJMyCukrz4cXey3c MV7Qr2LprL0uwVkfNR9EC0iF2izQGAPb0twP/mvisq48Ldw8lR4HECkYK6SsxvWA49me aAm5YUHYKt2kki00kFWrlfJykfvwPqSbm2Y5lOhqJb4owXKgeqnbNgYCuUBGg/2dwAEa c01mmnvMwbt7bD3KngpKSd679GhDp+L9lYeO9DLz5aUaxzXy8mMFsKL2ugRKw6Tp1ZPY YyzA== X-Gm-Message-State: AOAM532kztBU3rgXJC7HtRSWlR9+uSvH/gI6MhcXKEN/A3CdYkzzvDlt 30fW/iQVK62vSLYKIMvn6PbDwll7fTkmHKycbDFNPg== X-Received: by 2002:a67:ee48:: with SMTP id g8mr11738347vsp.23.1618431150228; Wed, 14 Apr 2021 13:12:30 -0700 (PDT) MIME-Version: 1.0 References: <20210330231602.1223216-1-egranata@google.com> <20210412094217.GA981912@infradead.org> In-Reply-To: From: Enrico Granata Date: Wed, 14 Apr 2021 14:12:18 -0600 Message-ID: Subject: Re: [PATCH] virtio_blk: Add support for lifetime feature To: Stefan Hajnoczi Cc: Christoph Hellwig , mst@redhat.com, jasowang@redhat.com, pbonzini@redhat.com, axboe@kernel.dk, virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First and foremost thanks for the feedback on the code. I will send out an up-to-date patch with those comments addressed ASAP As for the broader issue, I am definitely happy to incorporate any feedback and work to improve the spec, but looking at embedded storage devices both eMMC and UFS seem to me to be exposing the attributes that are included in the virtio-blk lifetime feature, and the same data is also used by the Android Open Source Project for Health HAL. It does seem like this format has a lot of practical adoption in the wider industry and that makes it fairly trivial to implement in a lot of common embedded systems. Having this immediate path to adoption in a variety of scenarios seems to me in and of itself valuable. Thanks, - Enrico On Wed, Apr 14, 2021 at 2:44 AM Stefan Hajnoczi wrote: > > On Mon, Apr 12, 2021 at 10:42:17AM +0100, Christoph Hellwig wrote: > > A note to the virtio committee: eMMC is the worst of all the currently > > active storage standards by a large margin. It defines very strange > > ad-hoc interfaces that expose very specific internals and often provides > > very poor abstractions. It would be great it you could reach out to the > > wider storage community before taking bad ideas from the eMMC standard > > and putting it into virtio. > > As Michael mentioned, there is still time to change the virtio-blk spec > since this feature hasn't been released yet. > > Why exactly is exposing eMMC-style lifetime information problematic? > > Can you and Enrico discuss the use case to figure out an alternative > interface? > > Thanks, > Stefan