From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH 1/4] xen/domain: Introduce domain_max_vcpus() helper and implement per arch Date: Mon, 19 Jan 2015 12:52:18 +0000 Message-ID: <54BCFE02.4010106@citrix.com> References: <1421666496-10676-1-git-send-email-andrew.cooper3@citrix.com> <1421666496-10676-2-git-send-email-andrew.cooper3@citrix.com> <54BCF5A2.5060500@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54BCF5A2.5060500@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Simon Rowe , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 19/01/15 12:16, Simon Rowe wrote: > On 19/01/15 11:21, Andrew Cooper wrote: >> This allows the common XEN_DOMCTL_max_vcpus handler to loose some >> x86-specific >> architecture knowledge. > Sp. "lose" >> +unsigned int domain_max_vcpus(const struct domain *d) >> +{ >> + return MAX_VIRT_CPUS; >> +} >> + >> > > inline? > > Simon > I considered that but, while there is an asm-x86/domain.h, there is not an asm-arm/domain.h which would be the logical location for it to live. I can introduce an asm-arm/domain.h if the arm maintainers are happy. ~Andrew