From: Chen Baozi <baoz...@gmail.com> Since the maximum vcpu information is already saved in the struct domain, there is no need for domain_max_vpus to return the fixed value.
Signed-off-by: Chen Baozi <baoz...@gmail.com> --- xen/include/asm-arm/domain.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/include/asm-arm/domain.h b/xen/include/asm-arm/domain.h index 603a20b..b4e38a2 100644 --- a/xen/include/asm-arm/domain.h +++ b/xen/include/asm-arm/domain.h @@ -261,10 +261,7 @@ struct arch_vcpu void vcpu_show_execution_state(struct vcpu *); void vcpu_show_registers(const struct vcpu *); -static inline unsigned int domain_max_vcpus(const struct domain *d) -{ - return MAX_VIRT_CPUS; -} +#define domain_max_vcpus(d) (d->max_vcpus) /* * Due to the restriction of GICv3, the number of vCPUs in AFF0 is -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel