From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvaBD-0001IQ-Vy for qemu-devel@nongnu.org; Tue, 04 Apr 2017 21:56:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvaBA-0001gG-4K for qemu-devel@nongnu.org; Tue, 04 Apr 2017 21:56:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50092) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cvaB9-0001ft-UI for qemu-devel@nongnu.org; Tue, 04 Apr 2017 21:56:12 -0400 Date: Wed, 5 Apr 2017 09:56:07 +0800 From: Fam Zheng Message-ID: <20170405015607.GB7267@lemon> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] how to create threads like dataplane in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: PERSIST <1554706732@qq.com> Cc: qemu-devel On Sat, 04/01 11:54, PERSIST wrote: > Hello! > I want to create a specific thread for each process in VM so that virtio block requests from each process can be sumbitted in the thread related to the process. > I tried to implement it by referring to dataplane,but I can not understand the source about dataplane. There are multiple abstraction layers between guest process and QEMU threads, I don't think the model you describe is practical. In dataplane, requests are submitted to host through virtio ioeventfd, and handled by the per-virtual device thread. What are you trying to achieve here? Fam