diff options
author | Tim Deegan <tim@xen.org> | 2012-03-08 16:40:05 +0000 |
---|---|---|
committer | Tim Deegan <tim@xen.org> | 2012-03-08 16:40:05 +0000 |
commit | cc0b0b4487dd1df3fd5e15050a2fb05bb88b3539 (patch) | |
tree | 4bf1f5a83b9331f2cd1ca84e5d3246e199fa39bc /xen/include/xen/sched.h | |
parent | 770d1e858de56ba8f2e0d7e45c08f48d599528e5 (diff) | |
download | xen-cc0b0b4487dd1df3fd5e15050a2fb05bb88b3539.tar.gz xen-cc0b0b4487dd1df3fd5e15050a2fb05bb88b3539.tar.bz2 xen-cc0b0b4487dd1df3fd5e15050a2fb05bb88b3539.zip |
x86/mm: wire up sharing ring
Now that we have an interface close to finalizing, do the necessary plumbing to
set up a ring for reporting failed allocations in the unshare path.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/xen/sched.h')
-rw-r--r-- | xen/include/xen/sched.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 65219cf988..53804c87d5 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -636,6 +636,9 @@ static inline struct domain *next_domain_in_cpupool( /* VCPU is blocked due to missing mem_access ring. */ #define _VPF_mem_access 5 #define VPF_mem_access (1UL<<_VPF_mem_access) + /* VCPU is blocked due to missing mem_sharing ring. */ +#define _VPF_mem_sharing 6 +#define VPF_mem_sharing (1UL<<_VPF_mem_sharing) static inline int vcpu_runnable(struct vcpu *v) { |