Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp145520pxv; Thu, 15 Jul 2021 00:49:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDdx1YLZ4B9Mf7lH6Qk64ne8+k5ACkj4jDjYSKbS4nq3YPFglnocK5SLZvS/dYhnzJ3UX8 X-Received: by 2002:a17:906:f0d8:: with SMTP id dk24mr4035890ejb.432.1626335385453; Thu, 15 Jul 2021 00:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626335385; cv=none; d=google.com; s=arc-20160816; b=efJ6yEfCuAWW0G1DlR/rrBJKy7JUzNGy1wP59vNk+sJvo+jNN7Gz3EUbgLcFdeD+MJ 2CyluQWnDn0G4/bs9NpEDzX78BsjG4VM++FnUSaKywGo4SY62+UwddAlmGP6Gzg2CR56 aIcBpSvXDgU/RI0KSWdxW2sDFQY1FgsgrADjeT/DXocGd4HVeeQRapFRToWoMtNkSLmc 7T2I//8J8jKKSxuejubnSNRrb95VAao8KjoO9VCiOEGG+PwEte9ZUoR6flqwB1Ybaofc wc9qaRypNhQjNlbFi2UtJU4hsWHnO0n8sm0DuT6XzqWR4hMigIw9M4JGgVKXdW0ls68c 6OQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=WtjoUKLcgmL3bnw/gxqCJv6EYfcYaY0E3bn8JDpe3PI=; b=mbe2UEOOyFjCWsu6ovlpUWf7364OZCRe9kfM2YFxwoXR6jxddoixDQXiCGtg3mnYUg lOqFNa1oTVJeSUoF22iArD6f1CII6OVAC2DcldiznuY0JPfC5ksoOfXslfP+QwWYQT4+ VsxUBVNxoP16aM7q5+icYliYTE/ygYgigdXlppckdwdkMHT8G/wh4RI9ScfZxe2b2/eF 1gafAwBvbh4IwxGbwf7+7XAWGK762bqqGFpcHvxC0gXGaFQym9ak2+b7nTp3syq8xhs5 qmeO8FFMCEE7Tt+I+c7KWQ0bMYza/cVROeTQN1ZbFlUrEBJlmGpN4jpZEP89Oms/LdU/ UL5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NRHwQ0mf; 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 r24si6601094edp.42.2021.07.15.00.49.23; Thu, 15 Jul 2021 00:49:45 -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=NRHwQ0mf; 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 S238862AbhGOFEQ (ORCPT + 99 others); Thu, 15 Jul 2021 01:04:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:21176 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238953AbhGOFEK (ORCPT ); Thu, 15 Jul 2021 01:04:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626325277; 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=WtjoUKLcgmL3bnw/gxqCJv6EYfcYaY0E3bn8JDpe3PI=; b=NRHwQ0mfc+N910GwrP2+5WyQPvU2t5lzubt6aOZSL5Ifo9QIYZw+Y70g8fS7B/odNKMhL+ YgHnyPxgSnJiLx3r6rtfTgNcxoK+HHU5xfmijkaGRsIynHXh546pJVcCTptqOACMHpORfz +q58YkukocLMtw/XtdJdEwWOSq4ksI8= Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-176-G5qJp7RiN7abnJGnC_95fw-1; Thu, 15 Jul 2021 01:01:14 -0400 X-MC-Unique: G5qJp7RiN7abnJGnC_95fw-1 Received: by mail-pj1-f69.google.com with SMTP id f7-20020a17090a6547b0290173de25d141so5086831pjs.4 for ; Wed, 14 Jul 2021 22:01:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=WtjoUKLcgmL3bnw/gxqCJv6EYfcYaY0E3bn8JDpe3PI=; b=M0F83+XFExnAl/PIhrLG6TTJYvgpW8f9g4qq5B8ULtyNCbV22/QdZoYBYBgcJ+60cQ C74CsE0nP4ARna7Xy47Z8VB251cyKGI0KvrWz49FfiiyZfJQroOmm2VRLec0IfVCBZpl EBwyPsbSY/LhM2YbTo8hk4gXlOIYMs6fLTxHduob66atiHY/lk4JA1cgxUYe6NNdMJes 2A3flUI0TLxTHD9fQduC2cC3C77EbdYqJIUXTkQMdWqe0RxvfEPcJwVGjQFrP87SnPHz BsAbGWS3waZGUpcuVQYERskksuhZTpbrTc3KCjnGb4nvxImL62MOB30vlE0muWwXUGni i7JA== X-Gm-Message-State: AOAM532peURdsxbuZTh8VKEqob//UUBAIWRdYRdLNblN8IYdJ91WZ/hF b2/BrOMcSecwLn+Up27rAPafTnIlF2FVFPUFkzSo67Jshfrt8mOVGIHqytpDH2W1KqHNXjbjO2I X8CN0yBbfebNMd/15V9bHThZzGzXbeU8DI/0zFY2mcuLx+uPOLB5GXPT4nbDQc6+1oGpU4NQo0M J+ X-Received: by 2002:a63:1e5c:: with SMTP id p28mr2391202pgm.3.1626325272934; Wed, 14 Jul 2021 22:01:12 -0700 (PDT) X-Received: by 2002:a63:1e5c:: with SMTP id p28mr2391148pgm.3.1626325272634; Wed, 14 Jul 2021 22:01:12 -0700 (PDT) Received: from wangxiaodeMacBook-Air.local ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id o20sm5070990pgv.80.2021.07.14.22.01.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Jul 2021 22:01:12 -0700 (PDT) Subject: Re: [PATCH v9 16/17] vduse: Introduce VDUSE - vDPA Device in Userspace To: Yongji Xie Cc: "Michael S. Tsirkin" , Stefan Hajnoczi , Stefano Garzarella , Parav Pandit , Christoph Hellwig , Christian Brauner , Randy Dunlap , Matthew Wilcox , Al Viro , Jens Axboe , bcrl@kvack.org, Jonathan Corbet , =?UTF-8?Q?Mika_Penttil=c3=a4?= , Dan Carpenter , joro@8bytes.org, Greg KH , He Zhe , Liu Xiaodong , songmuchun@bytedance.com, virtualization , netdev@vger.kernel.org, kvm , linux-fsdevel@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel References: <20210713084656.232-1-xieyongji@bytedance.com> <20210713084656.232-17-xieyongji@bytedance.com> <26116714-f485-eeab-4939-71c4c10c30de@redhat.com> From: Jason Wang Message-ID: <5d756360-b540-2faf-6e52-e7e6e863ca0b@redhat.com> Date: Thu, 15 Jul 2021 13:00:56 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2021/7/15 下午12:03, Yongji Xie 写道: >> Which ioctl can be used for this? >> > I mean we can introduce a new ioctl for that in the future. Ok, I see. > >>>> I wonder if it's better to do something similar to ccw: >>>> >>>> 1) requires the userspace to update the status bit in the response >>>> 2) update the dev->status to the status in the response if no timeout >>>> >>>> Then userspace could then set NEEDS_RESET if necessary. >>>> >>> But NEEDS_RESET does not only happen in this case. >> Yes, so you need an ioctl for userspace to update the device status >> (NEEDS_RESET) probably. >> > Yes, but I'd like to do that after the initial version is merged since > NEEDS_RESET is not supported now. Right. Thanks >