mem_event: remove type member
authorOlaf Hering <olaf@aepfle.de>
Mon, 20 Feb 2012 21:09:40 +0000 (22:09 +0100)
committerOlaf Hering <olaf@aepfle.de>
Mon, 20 Feb 2012 21:09:40 +0000 (22:09 +0100)
commit6eac9387aa320979c626d556fcdda8e8b83fd70a
treed16978491a2370772c93d370dff93a8d94bf48d9
parentb38c115140ed14179d6f7ec095ca29a79de58394
mem_event: remove type member

When mem_event was added the type flag should indicate who the consumer
is. But the concept of a single ring buffer for multiple event types can
not work for two reasons. One is that no multiplexer exists which
provides individual event types to the final consumer, and second is
that even if such multiplexer can not work reliable because a request
needs to be answered with a response. The response should be sent
roughly in the order of received events. But with multiple consumers one
of them can so stall all the others.

For that reason the single mem_event buffer for all types of events was
split into individual ring buffers with commit 23842:483c5f8319ad. This
commit made the type member already obsolete because the meaning of each
buffer is now obvious.

This change removes the type member and increases the flags field.

Even though this is an ABI incompatible change, it will have no practical
impact on existing binaries because the changeset referenced above already
bumped the SONAME. So these binaries have to be recompiled anyway for the
upcoming major release.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m.c
xen/include/public/mem_event.h