]> xenbits.xensource.com Git - people/andrewcoop/mini-os.git/commitdiff
Mini-OS: make xenstore_buf externally visible
authorJuergen Gross <jgross@suse.com>
Tue, 21 Nov 2023 09:49:49 +0000 (10:49 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Nov 2023 21:05:11 +0000 (21:05 +0000)
For support of the 9pfs frontend in Xenstore-stubdom xenstore_buf
needs to be externally visible.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
include/xenbus.h
xenbus.c

index c0fc0ac5b7b236f6ce86d87810a505422ac6f847..542ee4563821eb0a4048cea5b9558c85f8e2b2c9 100644 (file)
@@ -8,12 +8,14 @@ typedef unsigned long xenbus_transaction_t;
 
 #ifdef CONFIG_XENBUS
 extern uint32_t xenbus_evtchn;
+extern struct xenstore_domain_interface *xenstore_buf;
 
 /* Initialize the XenBus system. */
 void init_xenbus(void);
 void get_xenbus(void *p);
 #else
 #define xenbus_evtchn ~0
+#define xenstore_buf NULL
 
 static inline void init_xenbus(void)
 {
index 923e81818d608c40992e126a235235fc0a5e953f..8bfd5bd4d7091bc59eeebaa1ee886251bd0c7f06 100644 (file)
--- a/xenbus.c
+++ b/xenbus.c
@@ -44,7 +44,7 @@
 #define DEBUG(_f, _a...)    ((void)0)
 #endif
 
-static struct xenstore_domain_interface *xenstore_buf;
+struct xenstore_domain_interface *xenstore_buf;
 static DECLARE_WAIT_QUEUE_HEAD(xb_waitq);
 DECLARE_WAIT_QUEUE_HEAD(xenbus_watch_queue);
 static __DECLARE_SEMAPHORE_GENERIC(xb_write_sem, 1);