From: "Jan Beulich" Subject: Re: [PATCH 3/4] sched/arinc653: Remove MAX_VIRT_CPUS bounds check Date: Tue, 20 Jan 2015 10:34:01 +0000 Message-ID: <54BE3D290200007800056E41@mail.emea.novell.com> References: <1421666496-10676-1-git-send-email-andrew.cooper3@citrix.com> <1421666496-10676-4-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1421666496-10676-4-git-send-email-andrew.cooper3@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Keir Fraser , Nathan Studer , Robert VanVossen , Xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 19.01.15 at 12:21, wrote: > The arinc653 interface is capable of specifying a domain in the schedule > (from > the toolstack) before the domain itself exists, or is present in the cpupool > (The domain is identified by UUID rather than domid). As a result, the > schedule can't be validated at this point. > > The vcpu_id from userspace is only ever used to compare against a list of > real > vcpus available to the scheduler, which prevents ill-specified vcpus from > actually being scheduled. > > Remove the MAX_VIRT_CPUS test, as it is not an appropriate bound for > vcpu_id. > > Signed-off-by: Andrew Cooper Reviewed-by: Jan Beulich