Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6025146ioo; Wed, 1 Jun 2022 19:01:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpqt1JufOImGeId68ww4Mc1gN4Lijlu20bNzh2DojJugvo6G7kGzDUH/UK84s5wRtuHtBU X-Received: by 2002:a17:902:f552:b0:163:f64a:6154 with SMTP id h18-20020a170902f55200b00163f64a6154mr2347784plf.147.1654135273784; Wed, 01 Jun 2022 19:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654135273; cv=none; d=google.com; s=arc-20160816; b=0yOevn3d2cQbEDVAKrbnERqCmcgIuGSWBD+JM/AG9uKrRxRb1A7oxxiyVl6MfmkHhZ ShJQnXmJXttLl4gqvjgM+FkhVU/jKTQ3shhu4VrdVZDPikQV3BTfLTsLwW8Iu6fROR3E oo/SWtrhqKAVuET/ZL1lbkALIG8Bobr3bm/nfIRvGFvadqpM0P5EUAcrUoRX+WEwWDES yfbjddlGOtNUc5eQc9wzX3Hu/1p9l1gQNQXA/Z4OT9xitFEq7/s1a0ojSTvUuxOtulfh 4dvmQKcCnIhYZ0XRJILUTpTpVM2+KmimUFB9iZD4AuxMtpajOwZp1/QrHLM8XSs5NAwx RKFQ== 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=YBAqPDemohDoYgk1aoIRFIJVsyNoi84c0I5WJRZqFf4=; b=O/h9pC9JpH4tZv6jcX3rSu1edhnRhQ3YPv2LpqhU8PmVp3hqA+9LLkRK3pCqdntyzr GmnGt/tkRMZ65U557ImjjhKGUNjyQuTeIPdg35e0nrVzlgY/ZdreiMa244BGr20oJhrp 502B8q2cCdXfOiENBDb/nlJa3zgGlCg2G0LMgmey0RGmHeZ/N4vlqfMCuXPBR5l143s5 CAYVFGx8ELKx33Ct8KwaiX/U7l6AMHAh/3K0972bOhkAweMz9+SnlYNtTU5iGGUBwm8i xO5+RPXHioovZIVGN1tRAqfaZ+Re1uf20YpFMCnk9VbBG0pagYm4DypH+UfYRCS0RDV+ AGLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NXaS8eyj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y14-20020a63ad4e000000b003fb23692294si4350802pgo.218.2022.06.01.19.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 19:01:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NXaS8eyj; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B86C52A7AAB; Wed, 1 Jun 2022 19:00:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233233AbiFBCAm (ORCPT + 99 others); Wed, 1 Jun 2022 22:00:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233224AbiFBCAl (ORCPT ); Wed, 1 Jun 2022 22:00:41 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3F1F02A7A95 for ; Wed, 1 Jun 2022 19:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654135239; 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: in-reply-to:in-reply-to:references:references; bh=YBAqPDemohDoYgk1aoIRFIJVsyNoi84c0I5WJRZqFf4=; b=NXaS8eyjnLBPEoVMVgukUkDgGYVjNg0wrNQBx87jVa8MddOZB8qB0Mhzw6MsUve8V0YZ61 57XnzueQtGs+ZxXu2sBnTa+UiqdPElnXzO4U+2lMoqIVhULEsazWWso+7XqrurSzIW9PCD xUA2gn3CvTUeDzO3Zqo+9TvzlHNtzmY= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-274-BD07jeLlNZu2pcISr1gIjA-1; Wed, 01 Jun 2022 22:00:38 -0400 X-MC-Unique: BD07jeLlNZu2pcISr1gIjA-1 Received: by mail-lf1-f72.google.com with SMTP id z14-20020a056512308e00b004786d7fde66so1763076lfd.18 for ; Wed, 01 Jun 2022 19:00:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YBAqPDemohDoYgk1aoIRFIJVsyNoi84c0I5WJRZqFf4=; b=YC/pHhrNq4EtZZbdB5Yni8mC0X6S0FjDYP47D30qBaiDxIkDq7VTvqOzYHInujap7C 1DJOVbc8YizePn9V+5/743gVe97ucjbzC5bbZzycFBv6GckXPnYKSEynWxkW8pHu57jq O2F4lwAtJa1l/tTQ6xrxfxFQyKipnPe/rOLFMrlSSoY4eISehfj/cCKEIVTtRgszjmWv FDsXvO+QrJh04NfyMZtugkMxri93dyp059ZYlo/zk4qWE5UbUZfhOeT6mg6j3kRT3Sx/ y9i4wohP0pupODWXbHfgrlaxfTv4B4q60SZmncVOD2bwGzjbwGvOHneoe6NS0mFGmROv sQGg== X-Gm-Message-State: AOAM530wDswpoZLD3N2ThIQHrJEaXO1YsqJ6QBHfGvRBK7oE22jbMdEy WdnZkBibTQ/N1sp46XMaOQiWtpRmT50VCAx/7r6VIc1Ay7SNSntuGpkMioNzAmOIS3/Km5pJj9k iWlo6nZv/p4UdwA2arTA1aEELoqHndkVh6Zmv8XIx X-Received: by 2002:a05:6512:1588:b0:477:a556:4ab2 with SMTP id bp8-20020a056512158800b00477a5564ab2mr1731835lfb.376.1654135236408; Wed, 01 Jun 2022 19:00:36 -0700 (PDT) X-Received: by 2002:a05:6512:1588:b0:477:a556:4ab2 with SMTP id bp8-20020a056512158800b00477a5564ab2mr1731798lfb.376.1654135236157; Wed, 01 Jun 2022 19:00:36 -0700 (PDT) MIME-Version: 1.0 References: <20220526124338.36247-1-eperezma@redhat.com> <20220527065442-mutt-send-email-mst@kernel.org> In-Reply-To: From: Jason Wang Date: Thu, 2 Jun 2022 10:00:24 +0800 Message-ID: Subject: Re: [PATCH v4 0/4] Implement vdpasim stop operation To: Parav Pandit Cc: "Michael S. Tsirkin" , =?UTF-8?Q?Eugenio_P=C3=A9rez?= , "kvm@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "martinh@xilinx.com" , Stefano Garzarella , "martinpo@xilinx.com" , "lvivier@redhat.com" , "pabloc@xilinx.com" , Eli Cohen , Dan Carpenter , Xie Yongji , Christophe JAILLET , Zhang Min , Wu Zongyong , "lulu@redhat.com" , Zhu Lingshan , "Piotr.Uminski@intel.com" , Si-Wei Liu , "ecree.xilinx@gmail.com" , "gautam.dawar@amd.com" , "habetsm.xilinx@gmail.com" , "tanuj.kamde@amd.com" , "hanand@xilinx.com" , "dinang@xilinx.com" , Longpeng Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, Jun 2, 2022 at 2:58 AM Parav Pandit wrote: > > > > From: Jason Wang > > Sent: Tuesday, May 31, 2022 10:42 PM > > > > Well, the ability to query the virtqueue state was proposed as another > > feature (Eugenio, please correct me). This should be sufficient for making > > virtio-net to be live migrated. > > > The device is stopped, it won't answer to this special vq config done here. This depends on the definition of the stop. Any query to the device state should be allowed otherwise it's meaningless for us. > Programming all of these using cfg registers doesn't scale for on-chip memory and for the speed. Well, they are orthogonal and what I want to say is, we should first define the semantics of stop and state of the virtqueue. Such a facility could be accessed by either transport specific method or admin virtqueue, it totally depends on the hardware architecture of the vendor. > > Next would be to program hundreds of statistics of the 64 VQs through a giant PCI config space register in some busy polling scheme. We don't need giant config space, and this method has been implemented by some vDPA vendors. > > I can clearly see how all these are inefficient for faster LM. > We need an efficient AQ to proceed with at minimum. I'm fine with admin virtqueue, but the stop and state are orthogonal to that. And using admin virtqueue for stop/state will be more natural if we use admin virtqueue as a transport. Thanks > > > https://lists.oasis-open.org/archives/virtio-comment/202103/msg00008.html > > > > > Once the device is stopped, its state cannot be queried further as device > > won't respond. > > > It has limited use case. > > > What we need is to stop non admin queue related portion of the device.