examples/power: fix core id with JSON commands
examples/power: fix core id with JSON commands

This patch fixes a bug introduced in the 64-core limitation
enhancement where the core_id is inadvertently converted from
virtual to physical even though it may already be a physical
core_id.

We should be using the core_type field, and only converting via
hypervisor when core_type is set to CORE_TYPE_VIRTUAL

Fixes: 5776b7a371d1 ("examples/power: allow VM to use lcores over 63")

Signed-off-by: David Hunt <763be7c8e0ad91e03160e7aed76d5cd41534e2f9@intel.com>
Reviewed-by: Lei Yao <c2488030b123895536efc05beedc614797f7d73a@intel.com>
Tested-by: Lei Yao <c2488030b123895536efc05beedc614797f7d73a@intel.com>

john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk,john-mcnamara-intel/dpdk