All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com,
	jbeulich@suse.com, stefano.stabellini@eu.citrix.com
Subject: Re: [PATCH] docs: add misc/qemu-backends.txt
Date: Fri, 8 Apr 2016 20:20:21 +0200	[thread overview]
Message-ID: <5707F665.4050502@suse.com> (raw)
In-Reply-To: <20160408145432.GC15411@char.us.oracle.com>

On 08/04/16 16:54, Konrad Rzeszutek Wilk wrote:
> On Thu, Apr 07, 2016 at 08:24:06AM +0200, Juergen Gross wrote:
>> Document the interface between qemu and libxl regarding backends
>> supported by qemu.
> 
> 
> Sorry for being dense..
>>
>> Signed-off-by: Juergen Gross <jgross@suse.com>
>> ---
>>  docs/misc/qemu-backends.txt | 19 +++++++++++++++++++
>>  1 file changed, 19 insertions(+)
>>  create mode 100644 docs/misc/qemu-backends.txt
>>
>> diff --git a/docs/misc/qemu-backends.txt b/docs/misc/qemu-backends.txt
>> new file mode 100644
>> index 0000000..f28755e
>> --- /dev/null
>> +++ b/docs/misc/qemu-backends.txt
>> @@ -0,0 +1,19 @@
>> +In order to know whether qemu supports a specific backend type libxl
>> +needs a way to obtain this information.
>> +
>> +As each qemu instance owns a path (named "<qemu>" from now on) in
> 
> With those <> in it? Or just qemu by itself?

Would you like $QEMU better? It's just a abbreviation like $HOME in
bash.

>> +Xenstore the backend information is presented there. <qemu> is built
> 
> That looks to be missing an verb, no it has a verb, something is off with
> that.
> 
> XenStore presents the backend information there?

No, qemu is presenting the information in Xenstore.

>> +from the domain id where the qemu instance is running <backend-dom>
> 
> So "<qemu> is built" .. sounds to me like you are referring to the
> the variable qemu. But you are saying its value! Not the key value.
> 
> Perhaps you can sprinkle key and value in this document?

What about: The Xenstore path $QEMU is built...?

>> +and the domain id of the target domain of the qemu process <domid>:
>> +
>> +<qemu> = /local/domain/<backend-dom>/device-model/<domid>
> 
> Ah so it is a string value which has the path to the backend.
> And <qemu> is the key (why the <>?) and the value is the path?
> 
> 
> What about persmissions? Is this suppose to seen by the frontends?
> Backends? Toolstack domain?

I'm adding the information.

>> +
>> +Before signalling qemu is running by writing "running" to <qemu>/state
>> +qemu will create a Xenstore node for each supported backend under
> 
> Perhaps change this to:
> 
> It is the responsbility of QEMU to create the "qemu" key.
> Also QEMU MUST write qemu/state?

Yes. Otherwise libxl won't recognize it is running.

> Wait, is that a key under the <qemu>" path? But earlier
> you mentioend that the key is a string. It can't be a path
> and a key at the same time?
> 
>> +<qemu>/backends with the backend type as name (e.g.
>> +<qemu>/backends/qdisk for the qdisk backend).
> 
> So <qemu> is actually a macro for the path
> /local/domain<backend->dom>/device-model/<domid>!
> 
> Ah, now I get it.
> 
> I really need that coffee.

:-)

> 
> Perhaps you can replace the <qemu> by the path name? That will
> make the docs longer but it will be crystal clear!

This will add <domid> (or $DOMID) and <backend-dom> (or $BACKEND_DOM),
which isn't really better.

Juergen

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-04-08 18:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-07  6:24 [PATCH] docs: add misc/qemu-backends.txt Juergen Gross
2016-04-08 14:54 ` Konrad Rzeszutek Wilk
2016-04-08 18:20   ` Juergen Gross [this message]
2016-04-08 18:27     ` Andrew Cooper
2016-04-11  5:01       ` Juergen Gross
2016-04-10 20:00 ` Stefano Stabellini
2016-04-11  4:52   ` Juergen Gross
2016-04-11 10:33   ` Wei Liu
2016-04-11 10:57     ` Juergen Gross
2016-04-11 12:05       ` 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=5707F665.4050502@suse.com \
    --to=jgross@suse.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=konrad.wilk@oracle.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /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.