From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FD6DC47E48 for ; Thu, 15 Jul 2021 05:01:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 036056128B for ; Thu, 15 Jul 2021 05:01:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238811AbhGOFER (ORCPT ); Thu, 15 Jul 2021 01:04:17 -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-Google-Smtp-Source: ABdhPJwkpF4TSDI5DZm/B2bv9bWVuNXDKhmhRtseurS2rxggrCDnmBokVeS6bdawuICnE0MaFRu/xw== 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 >