From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amwCZ-0007NO-CT for qemu-devel@nongnu.org; Mon, 04 Apr 2016 00:33:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amwCU-00088T-Sq for qemu-devel@nongnu.org; Mon, 04 Apr 2016 00:33:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:52078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amwCU-00088G-MG for qemu-devel@nongnu.org; Mon, 04 Apr 2016 00:33:18 -0400 References: <1459347035-32740-1-git-send-email-jgross@suse.com> From: Juergen Gross Message-ID: <5701EE8B.3030708@suse.com> Date: Mon, 4 Apr 2016 06:33:15 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] xen: write information about supported backends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefano Stabellini Cc: xen-devel@lists.xensource.com, qemu-devel@nongnu.org, konrad.wilk@oracle.com, kraxel@redhat.com On 01/04/16 16:56, Stefano Stabellini wrote: > On Wed, 30 Mar 2016, 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. >> >> 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. > > An interface change like this one, needs a new file under docs (in the > Xen repository) to document it. Please add a reference to it, in the > commit message here. Is the Xenstore path documentation enough? Or do you want something like docs/misc/qemu-deprivilege.txt to be added? > In addition please make sure that this can work with QEMU running as > non-root. What are the permissions of the new xenstore directory? Should work, as I'm using the same functions as any backend in qemu is using. The new directory is read-only for the qemu target domain (same as the backend directories). Juergen