From 4939f9a6dee4280f38730fd3066e5dce353112f6 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 2 May 2013 16:37:24 +0200 Subject: x86: make vcpu_reset() preemptible ... as dropping the old page tables may take significant amounts of time. This is part of CVE-2013-1918 / XSA-45. Signed-off-by: Jan Beulich Acked-by: Tim Deegan --- xen/include/xen/sched.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xen/include/xen/sched.h') diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index beadc429f9..41f749e19e 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -682,6 +682,9 @@ static inline struct domain *next_domain_in_cpupool( /* VCPU is blocked due to missing mem_sharing ring. */ #define _VPF_mem_sharing 6 #define VPF_mem_sharing (1UL<<_VPF_mem_sharing) + /* VCPU is being reset. */ +#define _VPF_in_reset 7 +#define VPF_in_reset (1UL<<_VPF_in_reset) static inline int vcpu_runnable(struct vcpu *v) { -- cgit v1.2.3