]> xenbits.xensource.com Git - xen.git/commit
sched/arinc653: remove MAX_VIRT_CPUS bounds check
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Jan 2015 11:46:10 +0000 (12:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:46:10 +0000 (12:46 +0100)
commit84f5ec57aeea210003b3b76a1e7a02fc65a81b82
tree9a4b37a0869c4707dfb4915da85b88b17ae02612
parentb52512634913459cbf1f183e5b7223f01db468bb
sched/arinc653: remove MAX_VIRT_CPUS bounds check

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 <andrew.cooper3@citrix.com>
Acked-by Robert VanVossen <robert.vanvossen@dornerworks.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/sched_arinc653.c