Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp720145rwl; Wed, 9 Aug 2023 23:58:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqPAbzPVWpjqkmeEhhWuyKjy9h2qIdVnysbGJcPGvlNBlub6oj4Fmy8slkEEFUf9AeJF3Q X-Received: by 2002:a17:903:22d1:b0:1bc:98dd:e866 with SMTP id y17-20020a17090322d100b001bc98dde866mr1569193plg.31.1691650725821; Wed, 09 Aug 2023 23:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691650725; cv=none; d=google.com; s=arc-20160816; b=f0f7xc9tKAOYhXkdeMKW6AGIv9CPw4wG10wgcYSuMKXr5731vSun+ApkvekyKbQxm6 gwkdOpzH8xBe23zXyeoG37ttEUHvDy26t6g1uxKzRdoGiW3lEYIa3QWoAoMw7SQzi1XW +ekgOzuaAD/IjyE8rX7irpQNQ0QN7IVZmSSlNNrZaraFRhDy71ToFRmku7TFmWNHs1FL dZL3NbwTQSdkKnhmMxZMj3Uiq3agi2/UDH34hEY+0Ma7U1UTiFR3ScmPjHgA0lmEkpzQ 01vZFqZl3bmf75OUSCkiTtwd6S7R+4zfyCaOJxDJsuHvLz3/2+gkanrTWNnaH29xFF+i qjfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=JYg4N2cTD1bncmrEnBEjPILwUHjTLbfPIwnDaJGyyps=; fh=TQQO7oiI8yaj1lIkf3/1Ru4HMZbCnyXAaFM3OXVCd6c=; b=Lqh8xhVIl/BMMu6ohlIu277jsfcnul4BkRqvaN4gc6+Vxsugi8/b0KAf1qnjUNRep0 7te1QeETlXb4Q0kYy1ZBQ2Mw5D8al1+wC9TAtA3Zr/UdVd5wHEg8SrpqvmcpQ0vQJDlT mGMUe34DYdfszYU+6jZoDiTU0rSTKnSciIHuT6h19Yt9uSyzIbG/QilTfVbwrRVQsSGG EMWP3/pMXh/KIL2fGV8ajwoSbqNzGF9TEIxHeJT+bi+K4guAnRCFwshxs2MqRDUUp4uW rATS2L3PukbmD4LAQLclkA6Uyr/ncfnxNoW1n7Ups1jdKq21FqlZoZbtIctjPvjFsvk2 jFnA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a1709027fcc00b001b20e2ba8e1si864453plb.23.2023.08.09.23.58.34; Wed, 09 Aug 2023 23:58:45 -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; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231610AbjHJGK0 (ORCPT + 99 others); Thu, 10 Aug 2023 02:10:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbjHJGKZ (ORCPT ); Thu, 10 Aug 2023 02:10:25 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19EEB1704 for ; Wed, 9 Aug 2023 23:10:24 -0700 (PDT) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RLxJq2rLsztRvb; Thu, 10 Aug 2023 14:06:51 +0800 (CST) Received: from [10.67.103.158] (10.67.103.158) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 10 Aug 2023 14:10:21 +0800 Subject: Re: [PATCH v12 4/4] Documentation: add debugfs description for vfio To: Alex Williamson CC: Jason Gunthorpe , , , , , References: <20230728072104.64834-1-liulongfang@huawei.com> <20230728072104.64834-5-liulongfang@huawei.com> <3c557239-447f-116d-3687-cc6e419f2dcc@huawei.com> <20230807160352.0b7a57bf.alex.williamson@redhat.com> From: liulongfang Message-ID: <02d72031-6d09-19a4-6c6d-0e43141e66d0@huawei.com> Date: Thu, 10 Aug 2023 14:10:20 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20230807160352.0b7a57bf.alex.williamson@redhat.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.158] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS 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 On 2023/8/8 6:03, Alex Williamson wrote: > The vfio//migration/state file can provide useful monitoring of > the device progress during a migration, but I think the point Jason is > trying to make is that these hisi_acc seqfiles aren't really doing > anything that couldn't be done by a simple userspace test driver. >The state file was originally used to provide a migration state. When the migration fails, it is used to locate the problem. For it, we have no other functional demands. > Based on my review of the previous patch, we're playing pretty loose > with concurrency and data buffers. Access to the migration data of > the device outside of the process that owns the device is also a > concern. > > The value-add here needs to be that there's something useful about the > kernel being able to dump this data rather than either a simple > userspace program or instrumenting a userspace driver like QEMU, where > we can avoid the complexity that's going to be required to resolve the > issues in the previous patch and ensure that sensitive data from the > device isn't available through debugfs. The question of whether the migrated data is sensitive data. It is up to the device driver to choose which data can be output. Currently, the data that can be output through debugfs in this HiSilicon device driver does not involve sensitive data. Thanks, Longfang.