Received: from eggs.gnu.org ([140.186.70.92]:46456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RY3X9-0005OH-Oj for qemu-devel@nongnu.org; Tue, 06 Dec 2011 17:30:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RY3X8-00088x-Ln for qemu-devel@nongnu.org; Tue, 06 Dec 2011 17:30:43 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:54320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RY3X8-000887-F8 for qemu-devel@nongnu.org; Tue, 06 Dec 2011 17:30:42 -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> Date: Tue, 06 Dec 2011 23:30:27 +0100 In-Reply-To: <4EDE7343.3010305@codemonkey.ws> (Anthony Liguori's message of "Tue, 06 Dec 2011 13:55:47 -0600") Message-ID: <87ty5d1gfw.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain 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 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 ivshmem > device as it already has this sort of scope. You should be able to do this 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 me it just seems that extending the control BAR in ivshmem to call the user-provided backdoor callbacks is just conflating two completely separate devices into 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 would then make sense to join both devices. Thanks, Lluis -- "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