Received: from eggs.gnu.org ([2001:4830:134:3::10]:53409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai9ek-0007oe-W9 for qemu-devel@nongnu.org; Mon, 21 Mar 2016 19:54:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai9eh-0003w2-PO for qemu-devel@nongnu.org; Mon, 21 Mar 2016 19:54:42 -0400 Received: from rcdn-iport-3.cisco.com ([173.37.86.74]:7852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai9eh-0003vl-Hg for qemu-devel@nongnu.org; Mon, 21 Mar 2016 19:54:39 -0400 Received: from XCH-ALN-004.cisco.com (xch-aln-004.cisco.com [173.36.7.14]) by alln-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id u2LNsbrr016271 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Mon, 21 Mar 2016 23:54:37 GMT From: "shesha Sreenivasamurthy (shesha)" Date: Mon, 21 Mar 2016 23:54:36 +0000 Message-ID: Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_D315D18D31D07sheshaciscocom_" MIME-Version: 1.0 Subject: [Qemu-devel] How to determine Q-id in VHOST_USER_SET_LOG_BASE in a Multi-Q setup ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" --_000_D315D18D31D07sheshaciscocom_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi All, I'm implementing VM migration support for open-VPP, an open source Vector P= acket Processing (VPP) technology (https://wiki.fd.io/view/VPP) - A Linux f= oundation project. In lieu of it, I have hit an issue and I need some clari= fication. In Qemu's vhost-user implementation, each queue is treated as a vhost-net d= evice and during migration, vhost_user_set_log_base is invoked per device (= queue). However, there is no information about the queue index in the API. = How should the slave determine which queue the master is referring to ? For example: If I have configured my guest with 4 queues, VHOST_USER_SET_LO= G_BASE is invoked 4 times with different SHMFDs. How to map SHMFD to queue = ID ? -- - Thanks char * (*shesha) (uint64_t cache, uint8_t F00D) { return 0x0000C0DE; } --_000_D315D18D31D07sheshaciscocom_ Content-Type: text/html; charset="iso-8859-1" Content-ID: Content-Transfer-Encoding: quoted-printable
Hi All,
I’m implementing VM migration support for open-VPP, an open sour= ce Vector Packet Processing (VPP) technology (https://wiki.fd.io/view/VPP) — A Linux foundation proj= ect. In lieu of it, I have hit an issue and I need some clarification.

In Qemu’s vhost-user implementation, each queue is treated as a = vhost-net device and during migration, vhost_user_set_log_base is invo= ked per device (queue). However, there is no information about the queue in= dex in the API. How should the slave determine which queue the master is referring to ?

For example: If I have configured my guest with 4 queues, VHOST_U= SER_SET_LOG_BASE is invoked 4 times with different SHMFDs. How to map SHMFD= to queue ID ?

--
- Thanks
char * (*shesha) (uint64_t cache, = uint8_t F00D)
{ return 0x0000C0DE; } 
--_000_D315D18D31D07sheshaciscocom_--