Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2962143pxb; Mon, 17 Jan 2022 09:04:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY/U4F1x631AQhfhUVUfJJ226/mQUEIhOQjTXyRSlsYwrAM6Vc2bsZU/hKTyp3Ut26aM9V X-Received: by 2002:a17:902:7617:b0:149:9c02:f260 with SMTP id k23-20020a170902761700b001499c02f260mr23174243pll.30.1642439057855; Mon, 17 Jan 2022 09:04:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642439057; cv=none; d=google.com; s=arc-20160816; b=jbHIucbPjYDgZ3jEa8NtOrB9VZBZzAMOhpWlAzmyAuo+gCgsGmBX/CH53yCSJZri6w xSvU4ztleVb/b07M7ppAcrrnEnbN91+8fSHBgbPYYmCPCq58LIQCbyybTyiusMb5YW2r h8HpCYjCFVZq7zEgGgIPuCHz29eIaMcVfmjv5/8Y9abhlb/bz56Or2znnLg6qzZDNne0 y0UU1F8CrYAI1y8pKw3H1g1KjBbSo3nhO7ZU+j1jS4Mpmys29wVSIETBz41XcItj6Abt 284lh0lAsKlViA440YCmafuZaeC3loKxj5fSgd48s5k0YiizGsV3IvROuCnD8bxNMBAC e/6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=4IJvRFU1eWtQdMYXcdXJcOu1I8+SaovBEr9aQ4FpRz0=; b=S3IzgDBabznaV+BgU8WVUJUUmRVvnT/6xPqEG1Q4Xmwljhkh0WhjWtqKUa3Tk3Q0H9 pL+qpNcoEC1gPwLIAGFo6qDJFqNO0HcdpViysN8mLvm7ECe48VyqRThRSGvGKHcOJmvq GcbpkAIjVDjNIx6phgHyxtzBhHwv7nLDSusgHlfWDYFRstdNV8w+YCrBtGWk4zm58UjT AKhc4RizyAJeKAmaKlffQYHTYtsb/Stys9HXLLbyABUkr7NH0N6oJSAQWtWbZOhgsXsh JDtv55KJZqpIiDo5j+kB1Bpg1Er8qB4F5r1wjSOQ860856iaE+QTyA0clR3myERfcjXN zWRw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si2259523pgv.305.2022.01.17.09.04.05; Mon, 17 Jan 2022 09:04:17 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235723AbiAQJ32 (ORCPT + 99 others); Mon, 17 Jan 2022 04:29:28 -0500 Received: from szxga08-in.huawei.com ([45.249.212.255]:31097 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235593AbiAQJ32 (ORCPT ); Mon, 17 Jan 2022 04:29:28 -0500 Received: from dggpeml500022.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4JcmjM59W0z1FCfC; Mon, 17 Jan 2022 17:25:43 +0800 (CST) Received: from dggpeml100016.china.huawei.com (7.185.36.216) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 17 Jan 2022 17:29:26 +0800 Received: from DESKTOP-27KDQMV.china.huawei.com (10.174.148.223) by dggpeml100016.china.huawei.com (7.185.36.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Mon, 17 Jan 2022 17:29:25 +0800 From: "Longpeng(Mike)" To: , , , CC: , , , , , , , Longpeng Subject: [RFC 0/3] vdpa: add two ioctl commands to support generic vDPA Date: Mon, 17 Jan 2022 17:29:18 +0800 Message-ID: <20220117092921.1573-1-longpeng2@huawei.com> X-Mailer: git-send-email 2.25.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.148.223] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml100016.china.huawei.com (7.185.36.216) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Longpeng To support generic vdpa deivce[1], we need add the following ioctls: - GET_CONFIG_SIZE: the size of the virtio config space (Patch 1) - GET_VQS_COUNT: the count of virtqueues that exposed (Patch 2) Patch 3 supports ctrl vq for vdpasim_net, then guys can test the generic vDPA device on the vdpasim_net/blk. [1] https://lore.kernel.org/all/20220105005900.860-1-longpeng2@huawei.com/ Longpeng (3): vdpa: support exposing the config size to userspace vdpa: support exposing the count of vqs to userspace vdpasim_net: control virtqueue support drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 83 +++++++++++++++++++++++++++- drivers/vhost/vdpa.c | 30 ++++++++++ include/uapi/linux/vhost.h | 7 +++ 3 files changed, 118 insertions(+), 2 deletions(-) -- 2.23.0