Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp263920pxy; Thu, 22 Apr 2021 01:21:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8qiCinm7jF1eTPO4x5uJoflp4XIVtK8s4d1YIBzULM9jf6/BTHRDOvXsJV8S61fDLQpAG X-Received: by 2002:a17:90a:4381:: with SMTP id r1mr2813263pjg.214.1619079706379; Thu, 22 Apr 2021 01:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619079706; cv=none; d=google.com; s=arc-20160816; b=fLDH9rlFdZaKZCQxdRb7RTtAL7VTHZJwouiYLTDnsFhCJvNw0JZrRCzUPWUJKx0Igs Pm1fYjLw0k+hjsVs03l8nci2hRIA84BG1jDY/QnBXNifNzFGz8ZHbdgcnG4P3k7Gen/S g6Rtilt4lnOkVvTJkQfKkFaiAWH42xZ9jRFmzNI6iowg3ufZvgVmBIs8KUkmcJI7i+hd Ln26YNOeTuezzejhy0+ddZyclmmLnGYWQXyw+UOP5wSCTuZhLDqgzzV6+D1dcXL9Ltzg Y1qfUiSthNisPJO7X26fkq3xdCIZvDJuTtlPPggK018czlOLnj9xFrPuRzKXTbIozX58 AM/Q== 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:dkim-signature; bh=xHywtxI3pNGHCs9NAnF/msLigH9rjPmkvDS5057lzus=; b=qdzHuug6PoeOVIgQRCkH3EBGzdLQqE2vSCjX5pJsia80V03GB9f9/WkTrjxyMyI44w XHr+CQhEBKSDn7H+PmQfwog7lfrQ4B0yQh7P50DYx3d1ULkPOCLUTK5PoTfhPlLzMriq hS+wayUGRjX99mxJFAt4qKEV7X1G5R1fQNktcN2iehaCBzTeqBtOWGehroGMe1zfSpz1 xviAys15rt+ttRNlZZcevwBIvc/HtQq3zQL6/aZ1KjB+J40v5Gbii+IwuaB1hONhPdap EJknVIS4gzy65iHuP3jYv5CxsrLeDxz35ay4MpF0OGbrQnBcwuOv9Lp/pGEU1O3hyMxe 03Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ezgcRXJB; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p26si2337744pgb.290.2021.04.22.01.21.34; Thu, 22 Apr 2021 01:21:46 -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=@redhat.com header.s=mimecast20190719 header.b=ezgcRXJB; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235156AbhDVIUj (ORCPT + 99 others); Thu, 22 Apr 2021 04:20:39 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:37694 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235379AbhDVIUe (ORCPT ); Thu, 22 Apr 2021 04:20:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1619079574; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xHywtxI3pNGHCs9NAnF/msLigH9rjPmkvDS5057lzus=; b=ezgcRXJBhYP5LGUHi30bWG7jM6XZrPuSx+VHawkGAVjJOJg1SfxsDXHNtXZZXVO4m4azF5 8vJ0SIJA1FldOTUA+TcxPRUezBgxleL6E1VeSBPxC9hewjaxqwy/Q/ydmbdWaBBP799kPN Z01tkfPPrn4ENBE4HgaFJsHuDH58Dfk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-47-yyTTz9KuMi29o3s8dGVJbQ-1; Thu, 22 Apr 2021 04:19:30 -0400 X-MC-Unique: yyTTz9KuMi29o3s8dGVJbQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D5692107ACC7; Thu, 22 Apr 2021 08:19:28 +0000 (UTC) Received: from wangxiaodeMacBook-Air.local (ovpn-13-214.pek2.redhat.com [10.72.13.214]) by smtp.corp.redhat.com (Postfix) with ESMTP id 95228100AE2C; Thu, 22 Apr 2021 08:19:18 +0000 (UTC) Subject: Re: [RFC PATCH 0/7] Untrusted device support for virtio To: Christoph Hellwig Cc: mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, xieyongji@bytedance.com, stefanha@redhat.com, file@sect.tu-berlin.de, ashish.kalra@amd.com, martin.radev@aisec.fraunhofer.de, konrad.wilk@oracle.com, kvm@vger.kernel.org References: <20210421032117.5177-1-jasowang@redhat.com> <20210422063128.GB4176641@infradead.org> From: Jason Wang Message-ID: <0c61dcbb-ac5b-9815-a4a1-5f93ae640011@redhat.com> Date: Thu, 22 Apr 2021 16:19:16 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20210422063128.GB4176641@infradead.org> Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ?? 2021/4/22 ????2:31, Christoph Hellwig ะด??: > On Wed, Apr 21, 2021 at 11:21:10AM +0800, Jason Wang wrote: >> The behaivor for non DMA API is kept for minimizing the performance >> impact. > NAK. Everyone should be using the DMA API in a modern world. So > treating the DMA API path worse than the broken legacy path does not > make any sense whatsoever. I think the goal is not treat DMA API path worse than legacy. The issue is that the management layer should guarantee that ACCESS_PLATFORM is set so DMA API is guaranteed to be used by the driver. So I'm not sure how much value we can gain from trying to 'fix' the legacy path. But I can change the behavior of legacy path to match DMA API path. Thanks