doc: dm cpu affinity dynamic param refine

Cpu affinty was set by pCPU ID which can't be obtained
explictly by user. Use lapic ID instead which can be easily
read from `/proc/cpuinfo` as `apicid`.

Signed-off-by: Yuanyuan Zhao <yuanyuan.zhao@linux.intel.com>
This commit is contained in:
Yuanyuan Zhao
2022-01-06 15:50:34 +08:00
committed by David Kinder
parent 21d7b242c9
commit 8c046616c8
4 changed files with 12 additions and 7 deletions

View File

@@ -193,14 +193,17 @@ Here are descriptions for each of these ``acrn-dm`` command line parameters:
----
``--cpu_affinity <list of pCPUs>``
list of pCPUs assigned to this VM.
``--cpu_affinity <list of lapic_ids>``
comma-separated list of vCPUs assigned to this VM. Each CPU has a Local Programmable
Interrupt Controller (LAPIC). The unique ID of the LAPIC (lapic_id) is used to identify vCPU.
The ``lapic_id`` for a vCPU can be found in the service VM file ``/proc/cpuinfo``
identified as ``apicid``.
Example::
--cpu_affinity 1,3
to assign physical CPUs (pCPUs) 1 and 3 to this VM.
to assign vCPUs with lapic_id 1 and 3 to this VM.
----