diff options
author | Olaf Hering <olaf@aepfle.de> | 2011-09-16 12:19:26 +0100 |
---|---|---|
committer | Olaf Hering <olaf@aepfle.de> | 2011-09-16 12:19:26 +0100 |
commit | 2c36185d4407f6932ecf3e8d5244049c816a8f91 (patch) | |
tree | 997b84c388238b9f9b12be38b704616d69ccb396 /xen/include/xen/sched.h | |
parent | ade1da50bcd9f686f32b5f92dc376260d650b396 (diff) | |
download | xen-2c36185d4407f6932ecf3e8d5244049c816a8f91.tar.gz xen-2c36185d4407f6932ecf3e8d5244049c816a8f91.tar.bz2 xen-2c36185d4407f6932ecf3e8d5244049c816a8f91.zip |
mem_event: use different ringbuffers for share, paging and access
Up to now a single ring buffer was used for mem_share, xenpaging and
xen-access. Each helper would have to cooperate and pull only its own
requests from the ring. Unfortunately this was not implemented. And
even if it was, it would make the whole concept fragile because a crash
or early exit of one helper would stall the others.
What happend up to now is that active xenpaging + memory_sharing would
push memsharing requests in the buffer. xenpaging is not prepared for
such requests.
This patch creates an independet ring buffer for mem_share, xenpaging
and xen-access and adds also new functions to enable xenpaging and
xen-access. The xc_mem_event_enable/xc_mem_event_disable functions will
be removed. The various XEN_DOMCTL_MEM_EVENT_* macros were cleaned up.
Due to the removal the API changed, so the SONAME will be changed too.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/xen/sched.h')
-rw-r--r-- | xen/include/xen/sched.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 2bda1edd7b..c6b3a5916f 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -317,8 +317,12 @@ struct domain /* Non-migratable and non-restoreable? */ bool_t disable_migrate; + /* Memory sharing support */ + struct mem_event_domain mem_share; /* Memory paging support */ - struct mem_event_domain mem_event; + struct mem_event_domain mem_paging; + /* Memory access support */ + struct mem_event_domain mem_access; /* Currently computed from union of all vcpu cpu-affinity masks. */ nodemask_t node_affinity; |