xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] docs: add misc/qemu-backends.txt
@ 2016-04-11 13:04 Juergen Gross
  2016-04-11 13:38 ` Konrad Rzeszutek Wilk
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Juergen Gross @ 2016-04-11 13:04 UTC (permalink / raw)
  To: xen-devel; +Cc: Juergen Gross, ian.jackson, jbeulich, stefano.stabellini

Document the interface between qemu and libxl regarding backends
supported by qemu.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
v2: - replace variable Xenstore path parts (<xyz>) with bash-like syntax
      ($XYZ) as requested by Konrad Wilk
    - add remark about de-privileged qemu as requested by Stefano
      Stabellini
    - add comma as suggested by Andrew Cooper
---
 docs/misc/qemu-backends.txt | 21 +++++++++++++++++++++
 1 file changed, 21 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..b8e1799
--- /dev/null
+++ b/docs/misc/qemu-backends.txt
@@ -0,0 +1,21 @@
+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
+Xenstore, the backend information is presented there. $QEMU is built
+from the domain id where the qemu instance is running $BACKEND_DOM,
+and the domain id of the target domain of the qemu process $DOMID:
+
+$QEMU = /local/domain/$BACKEND_DOM/device-model/$DOMID
+
+Before signalling qemu is running by writing "running" to $QEMU/state
+qemu will create a Xenstore node for each supported backend under
+$QEMU/backends with the backend type as name (e.g.  $QEMU/backends/qdisk
+for the qdisk backend). In case qemu is running de-privileged (not as
+user root) the backend nodes must be written before qemu is dropping
+privileges.
+
+libxl can assume a backend of a specific type $TYPE is supported if:
+- $QEMU/backends/$TYPE is existing in Xenstore
+- or $QEMU/backends is not existing and $TYPE is one of:
+  "console", "vkbd", "vfb", "qdisk", "qnic"
-- 
2.6.6


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

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] docs: add misc/qemu-backends.txt
  2016-04-11 13:04 [PATCH v2] docs: add misc/qemu-backends.txt Juergen Gross
@ 2016-04-11 13:38 ` Konrad Rzeszutek Wilk
  2016-04-11 18:21 ` Stefano Stabellini
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Konrad Rzeszutek Wilk @ 2016-04-11 13:38 UTC (permalink / raw)
  To: Juergen Gross; +Cc: xen-devel, ian.jackson, jbeulich, stefano.stabellini

On Mon, Apr 11, 2016 at 03:04:09PM +0200, Juergen Gross wrote:
> Document the interface between qemu and libxl regarding backends
> supported by qemu.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

> ---
> v2: - replace variable Xenstore path parts (<xyz>) with bash-like syntax
>       ($XYZ) as requested by Konrad Wilk
>     - add remark about de-privileged qemu as requested by Stefano
>       Stabellini
>     - add comma as suggested by Andrew Cooper
> ---
>  docs/misc/qemu-backends.txt | 21 +++++++++++++++++++++
>  1 file changed, 21 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..b8e1799
> --- /dev/null
> +++ b/docs/misc/qemu-backends.txt
> @@ -0,0 +1,21 @@
> +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
> +Xenstore, the backend information is presented there. $QEMU is built
> +from the domain id where the qemu instance is running $BACKEND_DOM,
> +and the domain id of the target domain of the qemu process $DOMID:
> +
> +$QEMU = /local/domain/$BACKEND_DOM/device-model/$DOMID
> +
> +Before signalling qemu is running by writing "running" to $QEMU/state
> +qemu will create a Xenstore node for each supported backend under
> +$QEMU/backends with the backend type as name (e.g.  $QEMU/backends/qdisk
> +for the qdisk backend). In case qemu is running de-privileged (not as
> +user root) the backend nodes must be written before qemu is dropping
> +privileges.
> +
> +libxl can assume a backend of a specific type $TYPE is supported if:
> +- $QEMU/backends/$TYPE is existing in Xenstore
> +- or $QEMU/backends is not existing and $TYPE is one of:
> +  "console", "vkbd", "vfb", "qdisk", "qnic"
> -- 
> 2.6.6
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] docs: add misc/qemu-backends.txt
  2016-04-11 13:04 [PATCH v2] docs: add misc/qemu-backends.txt Juergen Gross
  2016-04-11 13:38 ` Konrad Rzeszutek Wilk
@ 2016-04-11 18:21 ` Stefano Stabellini
  2016-04-12 14:03 ` Wei Liu
  2016-04-20 13:54 ` Juergen Gross
  3 siblings, 0 replies; 7+ messages in thread
From: Stefano Stabellini @ 2016-04-11 18:21 UTC (permalink / raw)
  To: Juergen Gross; +Cc: xen-devel, ian.jackson, jbeulich, stefano.stabellini

On Mon, 11 Apr 2016, Juergen Gross wrote:
> Document the interface between qemu and libxl regarding backends
> supported by qemu.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>


> v2: - replace variable Xenstore path parts (<xyz>) with bash-like syntax
>       ($XYZ) as requested by Konrad Wilk
>     - add remark about de-privileged qemu as requested by Stefano
>       Stabellini
>     - add comma as suggested by Andrew Cooper
> ---
>  docs/misc/qemu-backends.txt | 21 +++++++++++++++++++++
>  1 file changed, 21 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..b8e1799
> --- /dev/null
> +++ b/docs/misc/qemu-backends.txt
> @@ -0,0 +1,21 @@
> +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
> +Xenstore, the backend information is presented there. $QEMU is built
> +from the domain id where the qemu instance is running $BACKEND_DOM,
> +and the domain id of the target domain of the qemu process $DOMID:
> +
> +$QEMU = /local/domain/$BACKEND_DOM/device-model/$DOMID
> +
> +Before signalling qemu is running by writing "running" to $QEMU/state
> +qemu will create a Xenstore node for each supported backend under
> +$QEMU/backends with the backend type as name (e.g.  $QEMU/backends/qdisk
> +for the qdisk backend). In case qemu is running de-privileged (not as
> +user root) the backend nodes must be written before qemu is dropping
> +privileges.
> +
> +libxl can assume a backend of a specific type $TYPE is supported if:
> +- $QEMU/backends/$TYPE is existing in Xenstore
> +- or $QEMU/backends is not existing and $TYPE is one of:
> +  "console", "vkbd", "vfb", "qdisk", "qnic"

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] docs: add misc/qemu-backends.txt
  2016-04-11 13:04 [PATCH v2] docs: add misc/qemu-backends.txt Juergen Gross
  2016-04-11 13:38 ` Konrad Rzeszutek Wilk
  2016-04-11 18:21 ` Stefano Stabellini
@ 2016-04-12 14:03 ` Wei Liu
  2016-04-20 14:02   ` Wei Liu
  2016-04-20 13:54 ` Juergen Gross
  3 siblings, 1 reply; 7+ messages in thread
From: Wei Liu @ 2016-04-12 14:03 UTC (permalink / raw)
  To: Juergen Gross
  Cc: xen-devel, ian.jackson, Wei Liu, jbeulich, stefano.stabellini

On Mon, Apr 11, 2016 at 03:04:09PM +0200, Juergen Gross wrote:
> Document the interface between qemu and libxl regarding backends
> supported by qemu.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Wei Liu <wei.liu2@citrix.com>

> ---
> v2: - replace variable Xenstore path parts (<xyz>) with bash-like syntax
>       ($XYZ) as requested by Konrad Wilk
>     - add remark about de-privileged qemu as requested by Stefano
>       Stabellini
>     - add comma as suggested by Andrew Cooper
> ---
>  docs/misc/qemu-backends.txt | 21 +++++++++++++++++++++
>  1 file changed, 21 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..b8e1799
> --- /dev/null
> +++ b/docs/misc/qemu-backends.txt
> @@ -0,0 +1,21 @@
> +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
> +Xenstore, the backend information is presented there. $QEMU is built
> +from the domain id where the qemu instance is running $BACKEND_DOM,
> +and the domain id of the target domain of the qemu process $DOMID:
> +
> +$QEMU = /local/domain/$BACKEND_DOM/device-model/$DOMID
> +
> +Before signalling qemu is running by writing "running" to $QEMU/state
> +qemu will create a Xenstore node for each supported backend under
> +$QEMU/backends with the backend type as name (e.g.  $QEMU/backends/qdisk
> +for the qdisk backend). In case qemu is running de-privileged (not as
> +user root) the backend nodes must be written before qemu is dropping
> +privileges.
> +
> +libxl can assume a backend of a specific type $TYPE is supported if:
> +- $QEMU/backends/$TYPE is existing in Xenstore
> +- or $QEMU/backends is not existing and $TYPE is one of:
> +  "console", "vkbd", "vfb", "qdisk", "qnic"
> -- 
> 2.6.6
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] docs: add misc/qemu-backends.txt
  2016-04-11 13:04 [PATCH v2] docs: add misc/qemu-backends.txt Juergen Gross
                   ` (2 preceding siblings ...)
  2016-04-12 14:03 ` Wei Liu
@ 2016-04-20 13:54 ` Juergen Gross
  3 siblings, 0 replies; 7+ messages in thread
From: Juergen Gross @ 2016-04-20 13:54 UTC (permalink / raw)
  To: xen-devel; +Cc: ian.jackson, jbeulich, stefano.stabellini

On 11/04/16 15:04, Juergen Gross wrote:
> Document the interface between qemu and libxl regarding backends
> supported by qemu.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Anyone to commit this, please?


Juergen

> ---
> v2: - replace variable Xenstore path parts (<xyz>) with bash-like syntax
>       ($XYZ) as requested by Konrad Wilk
>     - add remark about de-privileged qemu as requested by Stefano
>       Stabellini
>     - add comma as suggested by Andrew Cooper
> ---
>  docs/misc/qemu-backends.txt | 21 +++++++++++++++++++++
>  1 file changed, 21 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..b8e1799
> --- /dev/null
> +++ b/docs/misc/qemu-backends.txt
> @@ -0,0 +1,21 @@
> +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
> +Xenstore, the backend information is presented there. $QEMU is built
> +from the domain id where the qemu instance is running $BACKEND_DOM,
> +and the domain id of the target domain of the qemu process $DOMID:
> +
> +$QEMU = /local/domain/$BACKEND_DOM/device-model/$DOMID
> +
> +Before signalling qemu is running by writing "running" to $QEMU/state
> +qemu will create a Xenstore node for each supported backend under
> +$QEMU/backends with the backend type as name (e.g.  $QEMU/backends/qdisk
> +for the qdisk backend). In case qemu is running de-privileged (not as
> +user root) the backend nodes must be written before qemu is dropping
> +privileges.
> +
> +libxl can assume a backend of a specific type $TYPE is supported if:
> +- $QEMU/backends/$TYPE is existing in Xenstore
> +- or $QEMU/backends is not existing and $TYPE is one of:
> +  "console", "vkbd", "vfb", "qdisk", "qnic"
> 


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] docs: add misc/qemu-backends.txt
  2016-04-12 14:03 ` Wei Liu
@ 2016-04-20 14:02   ` Wei Liu
  2016-04-20 18:07     ` Wei Liu
  0 siblings, 1 reply; 7+ messages in thread
From: Wei Liu @ 2016-04-20 14:02 UTC (permalink / raw)
  To: Juergen Gross
  Cc: xen-devel, ian.jackson, Wei Liu, jbeulich, stefano.stabellini

On Tue, Apr 12, 2016 at 03:03:15PM +0100, Wei Liu wrote:
> On Mon, Apr 11, 2016 at 03:04:09PM +0200, Juergen Gross wrote:
> > Document the interface between qemu and libxl regarding backends
> > supported by qemu.
> > 
> > Signed-off-by: Juergen Gross <jgross@suse.com>
> 
> Reviewed-by: Wei Liu <wei.liu2@citrix.com>
> 

Release-acked-by: Wei Liu <wei.liu2@citrix.com>

FAOD

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2] docs: add misc/qemu-backends.txt
  2016-04-20 14:02   ` Wei Liu
@ 2016-04-20 18:07     ` Wei Liu
  0 siblings, 0 replies; 7+ messages in thread
From: Wei Liu @ 2016-04-20 18:07 UTC (permalink / raw)
  To: Juergen Gross
  Cc: xen-devel, ian.jackson, Wei Liu, jbeulich, stefano.stabellini

On Wed, Apr 20, 2016 at 03:02:25PM +0100, Wei Liu wrote:
> On Tue, Apr 12, 2016 at 03:03:15PM +0100, Wei Liu wrote:
> > On Mon, Apr 11, 2016 at 03:04:09PM +0200, Juergen Gross wrote:
> > > Document the interface between qemu and libxl regarding backends
> > > supported by qemu.
> > > 
> > > Signed-off-by: Juergen Gross <jgross@suse.com>
> > 
> > Reviewed-by: Wei Liu <wei.liu2@citrix.com>
> > 
> 
> Release-acked-by: Wei Liu <wei.liu2@citrix.com>
> 
> FAOD

Applied.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-20 18:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-11 13:04 [PATCH v2] docs: add misc/qemu-backends.txt Juergen Gross
2016-04-11 13:38 ` Konrad Rzeszutek Wilk
2016-04-11 18:21 ` Stefano Stabellini
2016-04-12 14:03 ` Wei Liu
2016-04-20 14:02   ` Wei Liu
2016-04-20 18:07     ` Wei Liu
2016-04-20 13:54 ` Juergen Gross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).