Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp602193ybg; Wed, 23 Oct 2019 03:02:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyE1zwlzdw4Z5LzQWwHiTv8LDtpRLeTcCz9yqL/vfXZunSCESEG1B9p2yhbvJClweThQLB7 X-Received: by 2002:a50:f096:: with SMTP id v22mr20759904edl.149.1571824938321; Wed, 23 Oct 2019 03:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571824938; cv=none; d=google.com; s=arc-20160816; b=m2ZBukQ/L67CMwwYpz6x5Lmmx45HNSHychwo8TlmyPl175/6cDMq89fzjcj99GLegA ZbpOYTUU4dhV8MAmpD674E3PkoW47p63zWpNCwbC6aRzIaUoPF+H+RutrR98cSOoMADF pgNN6cuszZD9NsYVi/uVEDvLin3gPRx0S8tPUwk+kAaGLcNT1kh9e/eKLbc5dmbK4Wct g9DlaYJlzZoGnOYoQ9wc/vLSZUUdqlkOpXqeILn2J+HAt9+uX6g2kf34NW2ZiZwNpkUP JAVwHWU4sO//PxHul5TVoiPRvhpwOVH2F8TfQiRTUEc6j9o4qEDlST8s7mXQfolmbOFr cULw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=JJgYQZfotgXlLYk+1TQwpLuAuYDxrmw6K+/7q0UstaI=; b=YEMWgUEbwgVly2atvRgMT+6UWA6JEeJcmOPhBbG//sgLqXN2iMY/Yh65THjSHKKHSi MOfh4jEk3Ez2JYlL740JENNtSWibz8czNNMOGPL6ZSOFy8l/+kQ51nlpVj8vFanUOFem X4gJO/XGTZI86YX9DsSAnOVCcjSvj/8WHEnyY8iOZaPTo9fP0SxKr9u0vJdnv+eFJC2Y sRYUV9Q0qQ74AJFO8N/bDaIN//jMvjMsGOKyR2kf24BVwo6t/W0pihlBlqBW4E3GUnOl jqOwQ6ZKcP/vdnu5vHayLpGnsg3sAZBynjIvIfcc8/jKpLDfHTHH+LBufBFpoYQRtES8 fn7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=brWXG4kD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 26si13550526ejl.292.2019.10.23.03.01.50; Wed, 23 Oct 2019 03:02:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=brWXG4kD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S2391097AbfJWJ6z (ORCPT + 99 others); Wed, 23 Oct 2019 05:58:55 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:30617 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404195AbfJWJ6M (ORCPT ); Wed, 23 Oct 2019 05:58:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571824691; 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=JJgYQZfotgXlLYk+1TQwpLuAuYDxrmw6K+/7q0UstaI=; b=brWXG4kD2MwlNsF8gDS/Wr6qiqU7/QCq7vblIsFiFsBVzPCfH91JOuO7W0VQir9SxcLb0x UEE9QS9oFacryyr9ZOEwJSSWeDHH47DWuujShXgwRLxdWej4XtKtzVSXmdwtFsOjA4SHbV AKPv6+uKGhwV6aiLdBBdhzGIpyB6grU= 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-284-QeJcTTHPPBCURHnAdXrw0Q-1; Wed, 23 Oct 2019 05:58:08 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9756780183D; Wed, 23 Oct 2019 09:58:06 +0000 (UTC) Received: from [10.72.12.79] (ovpn-12-79.pek2.redhat.com [10.72.12.79]) by smtp.corp.redhat.com (Postfix) with ESMTP id E145B5D6C8; Wed, 23 Oct 2019 09:58:01 +0000 (UTC) Subject: Re: [RFC 2/2] vhost: IFC VF vdpa layer To: "Zhu, Lingshan" , mst@redhat.com, alex.williamson@redhat.com Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, netdev@vger.kernel.org, dan.daly@intel.com, cunming.liang@intel.com, tiwei.bie@intel.com, jason.zeng@intel.com, zhiyuan.lv@intel.com References: <20191016013050.3918-1-lingshan.zhu@intel.com> <20191016013050.3918-3-lingshan.zhu@intel.com> <9495331d-3c65-6f49-dcd9-bfdb17054cf0@redhat.com> <1cae60b6-938d-e2df-2dca-fbf545f06853@redhat.com> From: Jason Wang Message-ID: <3c6c0319-7961-67ae-61d3-13771162dba7@redhat.com> Date: Wed, 23 Oct 2019 17:58:00 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: QeJcTTHPPBCURHnAdXrw0Q-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/23 =E4=B8=8B=E5=8D=885:24, Zhu, Lingshan wrote: >>>>> >>>>> >>>>> set_config/get_config is missing. It looks to me they are not=20 >>>>> hard, just implementing the access to dev_cfg. It's key to make=20 >>>>> kernel virtio driver to work. >>>>> >>>>> And in the new version of virito-mdev, features like _F_LOG_ALL=20 >>>>> should be advertised through get_mdev_features. >>>> IMHO, currently the driver can work without set/get_config,=20 >>>> vhost_mdev doesn't call them for now. >>> >>> >>> Yes, but it was required by virtio_mdev for host driver to work, and=20 >>> it looks to me it's not hard to add them. If possible please add=20 >>> them and "virtio" type then we can use the ops for both the case of=20 >>> VM and containers. >> sure > > Hello Jason, > > Just want to double confirm the implementation of set/get_config, for=20 > now, dev_cfg only contains mac[6], status and max_virtqueue_pairs, is=20 > that enough to support virtio_mdev? > > THanks! Yes, and it depends on the features that you want to advertise. If you=20 don't want to advertise MQ, there's no need to expose max_virtqueue_pairs. Thanks