From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hunt Subject: examples/power: allow use of more than 64 cores Date: Thu, 22 Nov 2018 17:02:16 +0000 Message-ID: <20181122170220.55482-1-david.hunt@intel.com> Cc: lei.a.yao@intel.com, david.hunt@intel.com To: dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E1C961B49F for ; Thu, 22 Nov 2018 18:02:35 +0100 (CET) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" vm_power_manager has up to now been limited to 64-cores because of the extensive use of uint64 type for bitmasks. This patch set converts those uint64s to character arrays, and increases the limit of cores from 64 to 256, and allowing users to increase this by increasing the #define. First of all we convert all the relevant uint64_t's to char arrays. Then we remove the unneeded mask functions that were limited to 64 cores. Also extend the guest functionality and finally rause the number of supported cores to something more sensible, i.e. 256. [1/4] examples/power: change 64-bit masks to arrays [2/4] examples/power: remove mask functions [3/4] examples/power: allow vms to use lcores over 63 [4/4] examples/power: increase MAX_CPUS to 256