xen/public: add new macro to ring.h
authorJuergen Gross <jgross@suse.com>
Thu, 28 Apr 2022 07:58:42 +0000 (09:58 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Apr 2022 07:58:42 +0000 (09:58 +0200)
commit6cf1398ba9e3f8ea64d58930288a6dffbdb7c207
treeb11538fdfa2ebdd3b7cedc0b31e8135d571f619e
parentda28439ba55b8a571032b3358af567cff749f612
xen/public: add new macro to ring.h

For the initialization of a ring page by the frontend two macros are
available in ring.h: SHARED_RING_INIT() and FRONT_RING_INIT().

All known users use always both of them in direct sequence.

Add another macro XEN_FRONT_RING_INIT() combining the two macros.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/include/public/io/ring.h