Skip to contentSkip to conversation

docs: add misc/qemu-backends.txt

PATCH Applied Juergen Gross 4 participants 7 messages Apr 11, 2016 – Apr 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs: add misc/qemu-backends.txt

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

---
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
docs/misc/qemu-backends.txt new file +21 -0
new file mode 100644
index 0000000..b8e1799
@@ -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"
Signature · 7 lines
2.6.6


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Juergen Gross

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

Quoted 46 lines

---
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
docs/misc/qemu-backends.txt new file +21 -0
new file mode 100644
index 0000000..b8e1799
@@ -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"
Signature · 7 lines
2.6.6


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Reviewed-by on v2 1/1
#2 lore raw
In reply to Juergen Gross
Quoted 4 lines · Juergen Gross

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

Quoted 27 lines

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
docs/misc/qemu-backends.txt new file +11 -0
new file mode 100644
index 0000000..b8e1799
@@ -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

docs/misc/qemu-backends.txt line 21

Quoted 10 lines
docs/misc/qemu-backends.txt new file +10 -0
+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
[email protected]
http://lists.xen.org/xen-devel

Reviewed-by on v2 1/1
#3 lore raw
In reply to Juergen Gross
Quoted 4 lines · Juergen Gross

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

Quoted 46 lines

---
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
docs/misc/qemu-backends.txt new file +21 -0
new file mode 100644
index 0000000..b8e1799
@@ -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"
Signature · 7 lines
2.6.6


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Applied
#5 lore raw
Quoted 5 lines · Wei Liu
Quoted 4 lines · Wei Liu
Quoted 3 lines · Juergen Gross

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

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

FAOD

Applied.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#6 lore raw
In reply to Juergen Gross
Quoted 4 lines · Juergen Gross

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

Anyone to commit this, please?

Juergen

Quoted 29 lines

---
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
docs/misc/qemu-backends.txt new file +11 -0
new file mode 100644
index 0000000..b8e1799
@@ -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

docs/misc/qemu-backends.txt line 21

Quoted 10 lines
docs/misc/qemu-backends.txt new file +10 -0
+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
[email protected]
http://lists.xen.org/xen-devel