Skip to contentSkip to conversation

libxl: create 'drivers', 'feature' and 'attr' xenstore paths

PATCH In review Paul Durrant 2 participants 2 messages Jan 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: create 'drivers', 'feature' and 'attr' xenstore paths

My recent patch series 'docs: Document xenstore paths' included 3 patches documenting new xenstore paths to allow PV drivers/agents in guests to advertise version information, significant features and attributes (such as assigned IP addresses).

This patch adds the necessary code to libxl to create these paths in xenstore when a domain is created.

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>
---
 tools/libxl/libxl_create.c | 9 +++++++++
 1 file changed, 9 insertions(+)
tools/libxl/libxl_create.c +9 -0
index 261816a..e491d83 100644
@@ -628,6 +628,15 @@ retry_transaction:
     libxl__xs_mknod(gc, t,
                     GCSPRINTF("%s/data", dom_path),
                     rwperm, ARRAY_SIZE(rwperm));
+    libxl__xs_mknod(gc, t,
+                    GCSPRINTF("%s/drivers", dom_path),
+                    rwperm, ARRAY_SIZE(rwperm));
+    libxl__xs_mknod(gc, t,
+                    GCSPRINTF("%s/feature", dom_path),
+                    rwperm, ARRAY_SIZE(rwperm));
+    libxl__xs_mknod(gc, t,
+                    GCSPRINTF("%s/attr", dom_path),
+                    rwperm, ARRAY_SIZE(rwperm));
 
     if (libxl_defbool_val(info->driver_domain)) {
         /*
Signature · 1 line
2.1.4
#1 lore raw
Quoted 5 lines · Paul Durrant

My recent patch series 'docs: Document xenstore paths' included 3 patches documenting new xenstore paths to allow PV drivers/agents in guests to advertise version information, significant features and attributes (such as assigned IP addresses).

Quoted 8 lines

This patch adds the necessary code to libxl to create these paths in xenstore when a domain is created.

Cc Ian Jackson <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Ian Campbell <[email protected]>
Cc Wei Liu <[email protected]>

Acked + applied, thanks.