From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an0qZ-0007Ej-HU for qemu-devel@nongnu.org; Mon, 04 Apr 2016 05:31:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1an0qW-0007tu-C0 for qemu-devel@nongnu.org; Mon, 04 Apr 2016 05:30:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:38501) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1an0qW-0007tg-5Z for qemu-devel@nongnu.org; Mon, 04 Apr 2016 05:30:56 -0400 References: <1459347035-32740-1-git-send-email-jgross@suse.com> <57023157.6040807@citrix.com> From: Juergen Gross Message-ID: <5702344E.6030309@suse.com> Date: Mon, 4 Apr 2016 11:30:54 +0200 MIME-Version: 1.0 In-Reply-To: <57023157.6040807@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Xen-devel] [PATCH] xen: write information about supported backends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Vrabel , qemu-devel@nongnu.org, xen-devel@lists.xensource.com Cc: kraxel@redhat.com, stefano.stabellini@eu.citrix.com On 04/04/16 11:18, David Vrabel wrote: > On 30/03/16 15:10, Juergen Gross wrote: >> Add a Xenstore directory for each supported pv backend. This will allow >> Xen tools to decide which backend type to use in case there are >> multiple possibilities. >> >> The information is added under >> /local/domain//device-model//backends >> before the "running" state is written to Xenstore. Using a directory >> for each directory enables us to add parameters for specific backends >> in the future. > > "Using a directory for each backend..."? Yes. As I've written: this enables us to enhance the interface later without the need to modify it first. >> In order to reuse the Xenstore directory creation already present in >> hw/xen/xen_devconfig.c move the related functions to >> hw/xen/xen_backend.c where they fit better. > > Why Xenstore and not QMP? We need to communicate with qemu only once instead of each time a device is added to the domain. Doing the communication via Xenstore is much simpler. Juergen