mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[PATCH] xen,tools: pincpu use vcpu and cpumap_t The following patch updates the dom0 pincpu operation to read the VCPU value from the xend interface rather than hard-coding the exec_domain to 0. This prevented pinning VCPUS other than 0 to a particular cpu. The pincpu cpu argument is replaced with cpumap, a u64 bitmap representing which CPUs a VCPU can use. I added the number of VCPUS to the main xm list output and also included a new sub-option to xm list to display the VCPU to CPU mapping. While working on the pincpu code, I fixed an out-of-bounds indexing for the pincpu operation that wasn't previously exposed since the vcpu/exec_domain value was hard-coded to 0. Signed-off-by: Ryan Harper <ryanh@us.ibm.com> Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>