Received: from eggs.gnu.org ([140.186.70.92]:53394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RY3fn-0000eV-1q for qemu-devel@nongnu.org; Tue, 06 Dec 2011 17:39:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RY3fm-0000re-1u for qemu-devel@nongnu.org; Tue, 06 Dec 2011 17:39:38 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:51518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RY3fl-0000rW-Qk for qemu-devel@nongnu.org; Tue, 06 Dec 2011 17:39:38 -0500 From: =?utf-8?Q?Llu=C3=ADs_Vilanova?= References: <20111205222208.31271.65662.stgit@ginnungagap.bsc.es> <20111205222312.31271.66303.stgit@ginnungagap.bsc.es> <4EDE7343.3010305@codemonkey.ws> <87ty5d1gfw.fsf@ginnungagap.bsc.es> Date: Tue, 06 Dec 2011 23:39:26 +0100 In-Reply-To: <87ty5d1gfw.fsf@ginnungagap.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= Vilanova"'s message of "Tue, 06 Dec 2011 23:30:27 +0100") Message-ID: <87r50hxr35.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 4/5] backdoor: [softmmu] Add QEMU-side proxy to "libbackdoor.a" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , Zhi Yong Wu , Cam Macdonell , qemu-devel@nongnu.org Llu=C3=ADs Vilanova writes: > Anthony Liguori writes: >> I really worry about us introducing so many of these one-off paravirtual= devices. >> I would much prefer that you look at doing this as an extension to the i= vshmem >> device as it already has this sort of scope. You should be able to do t= his by >> just extending the size of bar 1 and using a well known guest id. > I did in fact look at ivshmem some time ago, and it's true that both use = the > same mechanisms; but each device has a completely different purpose. To m= e it > just seems that extending the control BAR in ivshmem to call the user-pro= vided > backdoor callbacks is just conflating two completely separate devices int= o a > single one. Besides, I think that the qemu-side of the backdoor is simple= enough > to avoid being a maintenance burden. > Another question would be to join both so that the backdoor can be used to > orchestrate operations between multiple VMs through ivshmem's server, but= I > really have no time to look into that and don't even know whether it woul= d then > make sense to join both devices. BTW, I think that having the softmmu-side of the backdoor inside ivshmem wo= uld in fact be a simple change. I just want to make sure whether the reason to = merge both is about minimising code maintenance or rather thinking that it would = make more sense to have both as a single pack of functionalities. Thanks, Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth