]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/xen_common.h
xen_console: support the new extended xenstore protocol
[mirror_qemu.git] / hw / xen_common.h
index 2c79af64d07c9d34adcc3fd1343e53c1c669bb4d..0409ac79713b128a1f229421028889b651d93103 100644 (file)
@@ -85,6 +85,18 @@ static inline int xc_domain_add_to_physmap(int xc_handle, uint32_t domid,
     return xc_memory_op(xc_handle, XENMEM_add_to_physmap, &xatp);
 }
 
+static inline struct xs_handle *xs_open(unsigned long flags)
+{
+    return xs_daemon_open();
+}
+
+static inline void xs_close(struct xs_handle *xsh)
+{
+    if (xsh != NULL) {
+        xs_daemon_close(xsh);
+    }
+}
+
 
 /* Xen 4.1 */
 #else