From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: xen-devel@lists.xensource.com, Ian.Jackson@eu.citrix.com,
Ian.Campbell@citrix.com
Subject: Re: [PATCH v2 4/5] libxl: change xs path for pv qemu
Date: Mon, 8 Jun 2015 11:34:06 +0100 [thread overview]
Message-ID: <55756F9E.9060104@citrix.com> (raw)
In-Reply-To: <20150608102551.GA29102@zion.uk.xensource.com>
On 08/06/15 11:25, Wei Liu wrote:
> On Thu, Jun 04, 2015 at 12:28:18PM +0100, Stefano Stabellini wrote:
>> If QEMU is ran just to provide PV backends, change the xenstore path to
>> /local/domain/0/device-model/$DOMID/pv.
>>
>> Add a parameter to libxl__device_model_xs_path to distinguish the device
>> model from the pv backends provider.
>>
>> Store the device model binary path under
>> /local/domain/$DOMID/device-model on xenstore, so that we can fetch it
>> later and retrieve the list of supported options from
>> /local/domain/0/libxl/$device_model_binary, introduce in the previous
>> path.
>>
> TBH this protocol works, but it is not very extensible.
>
> I envisaged we need to assign $emulator_id to different device models
> when I fixed stubdom, but I never got to that since there weren't need
> for multiple emulators.
>
> That is, as an example:
>
> /local/domain/$backend_domid/device-model/$domid/$emulator_id/xxx
>
> That way we can:
>
> 1. Have something like multidev in libxl to wait for several device
> models to be ready without writing tedious code for every single one.
> 2. Fit into libxl migration stream, which naturally uses $emulator_id to
> distinguish different emulators.
>
> The downside of this is we need to add an extra option to QEMU to accept
> the emulator id assigned by toolstack.
>
> Just my two cents.
>
> Wei.
>From the XenServer point of view, we already use multiple device models
in certain cirumstances, and libxl support is one of the many tasks on
the xenopsd/libxl integration todo list.
If a change is going to be made, lets go the full way to getting
multiple emulators working properly.
FWIW, Wei's design looks to be sufficient.
~Andrew
next prev parent reply other threads:[~2015-06-08 10:34 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-04 11:27 [PATCH v2 0/5] libxl: xs_restrict QEMU Stefano Stabellini
2015-06-04 11:28 ` [PATCH v2 1/5] libxl: allow /local/domain/0/device-model/$DOMID to be written by $DOMID Stefano Stabellini
2015-06-07 11:39 ` Wei Liu
2015-06-08 14:47 ` Stefano Stabellini
2015-06-08 15:48 ` Ian Jackson
2015-06-04 11:28 ` [PATCH v2 2/5] libxl: do not add a vkb backend to hvm guests Stefano Stabellini
2015-06-04 11:28 ` [PATCH v2 3/5] libxl: xsrestrict QEMU Stefano Stabellini
2015-06-08 15:53 ` Ian Jackson
2015-06-08 16:16 ` Stefano Stabellini
2015-06-04 11:28 ` [PATCH v2 4/5] libxl: change xs path for pv qemu Stefano Stabellini
2015-06-08 10:25 ` Wei Liu
2015-06-08 10:34 ` Andrew Cooper [this message]
2015-06-08 15:27 ` Stefano Stabellini
2015-06-09 9:52 ` Wei Liu
2015-06-09 11:24 ` Stefano Stabellini
2015-06-09 11:40 ` Stefano Stabellini
2015-06-09 11:40 ` Wei Liu
2015-06-04 11:28 ` [PATCH v2 5/5] libxl: spawns two QEMUs for HVM guests Stefano Stabellini
2015-06-07 11:52 ` Wei Liu
2015-06-08 15:15 ` Stefano Stabellini
2015-06-08 15:43 ` Ian Jackson
2015-06-08 16:09 ` Stefano Stabellini
2015-06-08 16:39 ` Ian Jackson
2015-06-08 17:52 ` Stefano Stabellini
2015-06-09 10:02 ` Ian Jackson
2015-06-09 10:05 ` Ian Jackson
2015-06-09 14:08 ` Stefano Stabellini
2015-06-09 14:50 ` Ian Jackson
2015-06-07 11:38 ` [PATCH v2 0/5] libxl: xs_restrict QEMU Wei Liu
2015-06-07 11:42 ` Wei Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55756F9E.9060104@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.