From: Wei Liu Subject: Re: [PATCH v2 0/5] libxl: xs_restrict QEMU Date: Sun, 7 Jun 2015 12:38:38 +0100 Message-ID: <20150607113838.GR29102@zion.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Wei Liu , xen-devel@lists.xensource.com, Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Thu, Jun 04, 2015 at 12:27:12PM +0100, Stefano Stabellini wrote: > Hi all, > > this patch series changes libxl to start QEMU as device model with the > new xsrestrict option (http://marc.info/?l=xen-devel&m=143341692707358). > It also starts a second QEMU to provide PV backends in userspace (qdisk) > to HVM guests. > The main problem I can think of is that now we have two emulators for the same domain, we need a new xenstore protocol -- could be as easy as having $EMULATOR_ID in xenstore path. Currently both emulators will write to the same xenstore path to indicate readiness, this is going to cause problem. Wei. > > Changes in v2: > > - fix xs permissions to actually do what intended > - use LIBXL_TOOLSTACK_DOMID instead of 0 > - add "libxl: xsrestrict QEMU" > - add "libxl: change xs path for pv qemu" > - add "libxl: spawns two QEMUs for HVM guests" > > > Stefano Stabellini (5): > libxl: allow /local/domain/0/device-model/$DOMID to be written by $DOMID > libxl: do not add a vkb backend to hvm guests > libxl: xsrestrict QEMU > libxl: change xs path for pv qemu > libxl: spawns two QEMUs for HVM guests > > tools/libxl/libxl.c | 2 +- > tools/libxl/libxl_create.c | 23 +++++++--- > tools/libxl/libxl_device.c | 2 +- > tools/libxl/libxl_dm.c | 99 +++++++++++++++++++++++++++++++++++++----- > tools/libxl/libxl_dom.c | 12 ++--- > tools/libxl/libxl_internal.c | 19 ++++++-- > tools/libxl/libxl_internal.h | 8 ++-- > tools/libxl/libxl_pci.c | 14 +++--- > tools/libxl/libxl_utils.c | 10 +++++ > 9 files changed, 152 insertions(+), 37 deletions(-) > > Cheers, > > Stefano