From: Andrew Cooper Subject: [PATCH 0/4] Reduce the use of MAX_VIRT_CPUS in tree Date: Mon, 19 Jan 2015 11:21:32 +0000 Message-ID: <1421666496-10676-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Keir Fraser , Ian Campbell , Andrew Cooper , Ian Jackson , Tim Deegan , Jan Beulich List-Id: xen-devel@lists.xenproject.org MAX_VIRT_CPUS used to be an appropriate upper bound for vcpus when it was the length of the fixed-size vcpus array in a struct domain. When the vcpu array became dynamically allocated in Xen 4.0, it ceased to be an appropriate bound. Andrew Cooper (4): xen/domain: Introduce domain_max_vcpus() helper and implement per arch xen/evtchn: Reduce the size of the poll_mask where possible sched/arinc653: Remove MAX_VIRT_CPUS bounds check xen/many: Drop redundant MAX_VIRT_CPUS bounds checks xen/arch/arm/domain.c | 5 +++++ xen/arch/arm/vpsci.c | 3 --- xen/arch/x86/domain.c | 9 +++++++++ xen/arch/x86/domctl.c | 4 ---- xen/common/compat/domain.c | 3 --- xen/common/domain.c | 3 --- xen/common/domctl.c | 3 +-- xen/common/event_channel.c | 4 ++-- xen/common/sched_arinc653.c | 5 ++--- xen/include/asm-arm/config.h | 1 - xen/include/asm-x86/config.h | 3 --- xen/include/xen/domain.h | 3 +++ 12 files changed, 22 insertions(+), 24 deletions(-) -- 1.7.10.4