From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 2EE297F69 for ; Tue, 11 Nov 2014 22:28:00 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 11 Nov 2014 13:35:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,362,1413270000"; d="scan'208";a="606181251" Received: from pgsmsx103.gar.corp.intel.com ([10.221.44.82]) by orsmga001.jf.intel.com with ESMTP; 11 Nov 2014 13:37:50 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by PGSMSX103.gar.corp.intel.com (10.221.44.82) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 12 Nov 2014 05:37:49 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.130]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.3]) with mapi id 14.03.0195.001; Wed, 12 Nov 2014 05:37:47 +0800 From: "Xie, Huawei" To: 'Tetsuya Mukawa' , "dev@dpdk.org" Thread-Topic: vhost-user technical isssues Thread-Index: Ac/997srCGFXGQlUQCu5VHdgBPnJPg== Date: Tue, 11 Nov 2014 21:37:47 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: [dpdk-dev] vhost-user technical isssues X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2014 21:28:01 -0000 Hi Tetsuya: There are two major technical issues in my mind for vhost-user implementati= on. 1) memory region map Vhost-user passes us file fd and offset for each memory region. Unfortunate= ly the mmap offset is "very" wrong. I discovered this issue long time ago, = and also found that I couldn't mmap the huge page file even with correct offset(need doubl= e check). Just now I find that people reported this issue on Nov 3. [Qemu-devel] [PULL 27/29] vhost-user: fix mmap offset calculation Anyway, I turned to the same idea used in our DPDK vhost-cuse: only use the= fd for region(0) to map the whole file. I think we should use this way temporarily to support qemu-2.1 as it has th= at bug. 2) what message is the indicator for vhost start/release? Previously for vhost-cuse, it has SET_BACKEND message. What we should do for vhost-user? SET_VRING_KICK for start? What about for release? Unlike the kernel virtio, the DPDK virtio in guest could be restarted.=20 Thoughts? -huawei