From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A3B16A04C2; Fri, 15 Nov 2019 13:51:55 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 748E02C12; Fri, 15 Nov 2019 13:51:55 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 333BE2C12 for ; Fri, 15 Nov 2019 13:51:53 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Nov 2019 04:51:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,308,1569308400"; d="scan'208";a="405327005" Received: from silpixa00399952.ir.intel.com (HELO silpixa00399952.ger.corp.intel.com) ([10.237.222.38]) by fmsmga005.fm.intel.com with ESMTP; 15 Nov 2019 04:51:50 -0800 From: David Hunt To: dev@dpdk.org Cc: john.mcnamara@intel.com, David Hunt Date: Fri, 15 Nov 2019 12:51:24 +0000 Message-Id: <20191115125124.6941-1-david.hunt@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1] doc/power: add commands for core query from VM X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch adds some minor updates for the vm_power_manager and guest_cli example applications. Now that the virtio-serial channels between vm_power manager and the guest_cli has bi-directional capability, there are some new commands. Firstly, the command in vm_power_manager to enable queries for a given VM: * set_query {vm_name} enable|disable Then, commands to query the frequencies and capabilities of the cores in the VM: * query_cpu_freq {core_num}|all * query_cpu_caps {core_num}|all Signed-off-by: David Hunt --- .../sample_app_ug/vm_power_management.rst | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/doc/guides/sample_app_ug/vm_power_management.rst b/doc/guides/sample_app_ug/vm_power_management.rst index 0ffff835e..f5e24b25d 100644 --- a/doc/guides/sample_app_ug/vm_power_management.rst +++ b/doc/guides/sample_app_ug/vm_power_management.rst @@ -309,6 +309,12 @@ A number of commands can be issued via the CLI in relation to VMs: set_pcpu {vm_name} {vcpu} {pcpu} + Enable query of physical core information from a VM: + + .. code-block:: console + + set_query {vm_name} enable|disable + Manual control and inspection can also be carried in relation CPU frequency scaling: Get the current frequency for each core specified in the mask: @@ -746,6 +752,23 @@ Where {core_num} is the lcore and channel to change frequency by scaling up/down set_cpu_freq {core_num} up|down|min|max + +To query the available frequences of an lcore, use the query_cpu_freq command. +Where {core_num} is the lcore to query. +Before using this command, please enable responses via the set_query command on the host. + +.. code-block:: console + + query_cpu_freq {core_num}|all + +To query the capabilities of an lcore, use the query_cpu_caps command. +Where {core_num} is the lcore to query. +Before using this command, please enable responses via the set_query command on the host. + +.. code-block:: console + + query_cpu_caps {core_num}|all + To start the application and configure the power policy, and send it to the host: .. code-block:: console -- 2.17.1