numam-dpdk/examples/vm_power_manager
David Hunt d38e6a6a45 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: 5776b7a371 ("examples/power: allow VM to use lcores over 63")

Signed-off-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Lei Yao <lei.a.yao@intel.com>
Tested-by: Lei Yao <lei.a.yao@intel.com>
2019-01-15 02:40:41 +01:00
..
guest_cli examples/power: support meson/ninja build 2018-10-26 10:51:37 +02:00
channel_manager.c examples/power: allow VM to use lcores over 63 2018-12-19 22:24:34 +01:00
channel_manager.h examples/power: increase max cores to 256 2018-12-19 22:24:36 +01:00
channel_monitor.c examples/power: fix core id with JSON commands 2019-01-15 02:40:41 +01:00
channel_monitor.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
main.c examples/power: add host channel to power manager 2018-10-26 10:51:04 +02:00
Makefile examples/power: add JSON string handling 2018-10-26 10:51:18 +02:00
meson.build examples/power: support meson/ninja build 2018-10-26 10:51:37 +02:00
oob_monitor_nop.c examples/vm_power: add oob monitoring functions 2018-07-20 22:53:17 +02:00
oob_monitor_x86.c examples/vm_power: make branch ratio configurable 2018-07-21 00:00:43 +02:00
oob_monitor.h examples/vm_power: add oob monitoring functions 2018-07-20 22:53:17 +02:00
parse.c examples/vm_power: add core list parameter 2018-07-20 22:53:17 +02:00
parse.h examples/vm_power: add core list parameter 2018-07-20 22:53:17 +02:00
power_manager.c examples/power: fix for p-state 2019-01-15 02:40:41 +01:00
power_manager.h examples/power: increase max cores to 256 2018-12-19 22:24:36 +01:00
vm_power_cli.c examples/power: allow VM to use lcores over 63 2018-12-19 22:24:34 +01:00
vm_power_cli.h examples: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00