From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by dpdk.org (Postfix) with ESMTP id 9CDE02A6A for ; Mon, 25 Feb 2019 14:53:30 +0100 (CET) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190225135329euoutp02903f45b4f4d536b503943b535de301b8~Gn8mCLAUH0492404924euoutp02R for ; Mon, 25 Feb 2019 13:53:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190225135329euoutp02903f45b4f4d536b503943b535de301b8~Gn8mCLAUH0492404924euoutp02R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1551102809; bh=+1NFQikeZWuPAAYs3ztYfhxOhTzu9ut3Oldah5jniOQ=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=s1fDi4S8tnu0WcDtV+3FS+60KjbF6pTgtUsXZ5fwFyW8e9D/tic0SwLOvlP/vJXSm U0wpzDZ+kCYifWF9q2EUDM/t+7pokaXxySWmrFOpMtIhqJUa/1G7XxyfoGj+Bue/x6 bix1q+nDuzNIplDPTWJ4EHfwaZM/7s5gxkEI5pKs= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190225135329eucas1p115a573381f1d2e2e09edf0a9d202e46f~Gn8ln1bz82208422084eucas1p1c; Mon, 25 Feb 2019 13:53:29 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 3F.49.04441.853F37C5; Mon, 25 Feb 2019 13:53:28 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190225135328eucas1p1560252488ef0f0db87f0509d2bb7813c~Gn8k0ynmb1454514545eucas1p1u; Mon, 25 Feb 2019 13:53:28 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190225135327eusmtrp1ac59c3afa7fb63c58a5692ddfa4c7bb8~Gn8kmcUIL0588705887eusmtrp1v; Mon, 25 Feb 2019 13:53:27 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-9f-5c73f358bfba Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 92.E2.04284.753F37C5; Mon, 25 Feb 2019 13:53:27 +0000 (GMT) Received: from [106.109.129.180] (unknown [106.109.129.180]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190225135327eusmtip2a97b7158e023d748eca62394534bf11b~Gn8kHafU20720607206eusmtip2Z; Mon, 25 Feb 2019 13:53:27 +0000 (GMT) To: Changpeng Liu , dev@dpdk.org Cc: dariusz.stojaczyk@intel.com, maxime.coquelin@redhat.com, tiwei.bie@intel.com, zhihong.wang@intel.com, Jason Wang From: Ilya Maximets Message-ID: <06988862-778e-3ab4-880b-0dfb35fc4d4e@samsung.com> Date: Mon, 25 Feb 2019 16:53:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1551081095-14286-1-git-send-email-changpeng.liu@intel.com> Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLKsWRmVeSWpSXmKPExsWy7djPc7oRn4tjDJ48NbC4+PMru8X732sY Ld592s5kcaX9J7vFskufmSyOde5hsdja8J/JYvPFSUwOHB6/Fixl9Vi85yWTx/t9V9k8+ras YgxgieKySUnNySxLLdK3S+DK2Hu9g61gCk9F++5pLA2MM7m6GDk5JARMJG4eWc/YxcjFISSw glFicuskdgjnC6PErVuL2CCcz4wSmzfsYINpeXPrDBNEYjmjxKLD/6GqPjJK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1fATuLS5/NgcRYBVYnD21+BxUUFIiQ+Pt3HBFEjKHFy5hOwBZwCHhKn v98Fm8ksoC7xZ94lZghbXKLpy0pWCFteYvvbOcwTGIVmIWmfhaRlFpKWWUhaFjCyrGIUSS0t zk3PLTbUK07MLS7NS9dLzs/dxAiMu23Hfm7ewXhpY/AhRgEORiUeXoVHxTFCrIllxZW5hxgl OJiVRHjj3gOFeFMSK6tSi/Lji0pzUosPMZoCPTeRWUo0OR+YEvJK4g1NDc0tLA3Njc2NzSyU xHnPG1RGCQmkJ5akZqemFqQWwfQxcXBKNTD21crEPF529N2b906cZ+/t4Pj6vi3s86RmZbX/ rBsf8vZbvDr1aaNnmlXn07SN3/U9Hin2CpozXWTZwGKosz984rW1PHkt/xUPOevrHZs87yjX J9nmyedj7u7zvbrMbNFUxq1Nbj/Y1fZvFzVsWWJl/+j9up73U/NX7NDkO9WSIfLuSbOHhGC5 EktxRqKhFnNRcSIATVthXtECAAA= X-CMS-MailID: 20190225135328eucas1p1560252488ef0f0db87f0509d2bb7813c X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190225135328eucas1p1560252488ef0f0db87f0509d2bb7813c X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190225135328eucas1p1560252488ef0f0db87f0509d2bb7813c References: <1551081095-14286-1-git-send-email-changpeng.liu@intel.com> Subject: Re: [dpdk-dev] vhost: add virtio configuration space access socket messages X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2019 13:53:30 -0000 On 25.02.2019 10:51, Changpeng Liu wrote: > This patch adds new vhost user messages GET_CONFIG and SET_CONFIG > used to get/set virtio device's PCI configuration space. > > Signed-off-by: Changpeng Liu > Reviewed-by: Darek Stojaczyk > --- > lib/librte_vhost/rte_vhost.h | 8 ++++++++ > lib/librte_vhost/vhost_user.c | 44 +++++++++++++++++++++++++++++++++++++++++++ > lib/librte_vhost/vhost_user.h | 16 ++++++++++++++++ > 3 files changed, 68 insertions(+) > > diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h > index 2753670..ab710ce 100644 > --- a/lib/librte_vhost/rte_vhost.h > +++ b/lib/librte_vhost/rte_vhost.h > @@ -63,6 +63,10 @@ > #define VHOST_USER_PROTOCOL_F_PAGEFAULT 8 > #endif > > +#ifndef VHOST_USER_PROTOCOL_F_CONFIG > +#define VHOST_USER_PROTOCOL_F_CONFIG 9 > +#endif > + > #ifndef VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD > #define VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD 10 > #endif > @@ -173,6 +177,10 @@ struct vhost_device_ops { > > int (*vring_state_changed)(int vid, uint16_t queue_id, int enable); /**< triggered when a vring is enabled or disabled */ > > + int (*get_config)(int vid, uint8_t *config, uint32_t config_len); > + int (*set_config)(int vid, uint8_t *config, uint32_t offset, > + uint32_t len, uint32_t flags); 'struct vhost_device_ops' is user visible. This changes API and ABI. You need to update docs/rel_notes and bump the library version accordingly. Best regards, Ilya Maximets.