[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/8] xen: introduce the header file for the Xen 9pfs
From: |
Stefano Stabellini |
Subject: |
[Qemu-devel] [PATCH 2/8] xen: introduce the header file for the Xen 9pfs transport protocol |
Date: |
Mon, 6 Mar 2017 18:12:42 -0800 |
It uses the new ring.h macros to declare rings and interfaces.
Signed-off-by: Stefano Stabellini <address@hidden>
CC: address@hidden
CC: address@hidden
---
hw/9pfs/xen_9pfs.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 hw/9pfs/xen_9pfs.h
diff --git a/hw/9pfs/xen_9pfs.h b/hw/9pfs/xen_9pfs.h
new file mode 100644
index 0000000..c4e8901
--- /dev/null
+++ b/hw/9pfs/xen_9pfs.h
@@ -0,0 +1,20 @@
+#ifndef XEN_9PFS_H
+#define XEN_9PFS_H
+
+#include "hw/xen/io/ring.h"
+#include <xen/io/protocols.h>
+
+struct xen_9pfs_header {
+ uint32_t size;
+ uint8_t id;
+ uint16_t tag;
+
+ /* uint8_t sdata[]; */
+} __attribute__((packed));
+
+#define PAGE_SHIFT XC_PAGE_SHIFT
+#define XEN_9PFS_RING_ORDER 6
+#define XEN_9PFS_RING_SIZE XEN_FLEX_RING_SIZE(XEN_9PFS_RING_ORDER)
+DEFINE_XEN_FLEX_RING_AND_INTF(xen_9pfs);
+
+#endif
--
1.9.1
- [Qemu-devel] [PATCH 0/8] xen/9pfs: introduce the Xen 9pfs backend, Stefano Stabellini, 2017/03/06
- [Qemu-devel] [PATCH 1/8] xen: import ring.h from xen, Stefano Stabellini, 2017/03/06
- [Qemu-devel] [PATCH 3/8] xen/9pfs: introduce Xen 9pfs backend, Stefano Stabellini, 2017/03/06
- [Qemu-devel] [PATCH 2/8] xen: introduce the header file for the Xen 9pfs transport protocol,
Stefano Stabellini <=
- [Qemu-devel] [PATCH 5/8] xen/9pfs: receive requests from the frontend, Stefano Stabellini, 2017/03/06
- [Qemu-devel] [PATCH 4/8] xen/9pfs: connect to the frontend, Stefano Stabellini, 2017/03/06
- [Qemu-devel] [PATCH 7/8] xen/9pfs: send responses back to the frontend, Stefano Stabellini, 2017/03/06
- [Qemu-devel] [PATCH 8/8] xen/9pfs: build and register Xen 9pfs backend, Stefano Stabellini, 2017/03/06
- [Qemu-devel] [PATCH 6/8] xen/9pfs: implement in/out_iov_from_pdu and vmarshal/vunmarshal, Stefano Stabellini, 2017/03/06