|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Add padding to ring headers for future expansion.
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID df68a9433492b024963334b124586f56885266fd
# Parent a21cbe9a111b58b3092db6c95a068679feba077b
Add padding to ring headers for future expansion.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
diff -r a21cbe9a111b -r df68a9433492 xen/include/public/io/ring.h
--- a/xen/include/public/io/ring.h Fri Dec 2 12:10:25 2005
+++ b/xen/include/public/io/ring.h Fri Dec 2 12:16:13 2005
@@ -71,6 +71,7 @@
struct __name##_sring { \
RING_IDX req_prod, req_event; \
RING_IDX rsp_prod, rsp_event; \
+ uint8_t pad[48]; \
union __name##_sring_entry ring[1]; /* variable-length */ \
}; \
\
@@ -114,6 +115,7 @@
#define SHARED_RING_INIT(_s) do { \
(_s)->req_prod = (_s)->rsp_prod = 0; \
(_s)->req_event = (_s)->rsp_event = 1; \
+ memset((_s)->pad, 0, sizeof((_s)->pad)); \
} while(0)
#define FRONT_RING_INIT(_r, _s, __size) do { \
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Add padding to ring headers for future expansion.,
Xen patchbot -unstable <=
|
|
|
|
|