mbox

[v2,0/4] frequency list query from guest

Message ID 20190927121601.23661-1-david.hunt@intel.com (mailing list archive)
Headers

Message

Hunt, David Sept. 27, 2019, 12:15 p.m. UTC
  Extend guest channel and sample apps to query CPU frequencies.

Please note that these changes depends on
(http://patches.dpdk.org/project/dpdk/list/?series=6568)
which should be applied first.

This feature is disabled by default, and must be explicitly enabled
so that queries from guests are allowed:

vmpower> set_query ubuntu3 enable

Then the guest can query the set frequency for one or all cores:

vmpower(guest)> query_cpu_freq all
Frequency of [0] vcore is 2300000.
Frequency of [1] vcore is 2300000.
Frequency of [2] vcore is 2300000.
Frequency of [3] vcore is 2300000.
Frequency of [4] vcore is 2300000.
Frequency of [5] vcore is 2300000.
Frequency of [6] vcore is 2300000.
Frequency of [7] vcore is 2300000.

---

v2:
* replaced strcpy() with strlcpy()

Marcin Hajkowski (4):
1/4 power: extend guest channel for query freq
2/4 power: process cpu freq query
3/4 power: add mechanism to disable queries
4/4 power: add cmd to query CPU freq