init-dom0less: Weird use of cpupool in xl dominfo
Hello, I was going through the source code for init-dom0less as I was facing some issue after applying this patchset. Feel free to ignore it however, as it seems unrelated to the issue I am encountering.
https://lists.xenproject.org/archives/html/xen-devel/2024-05/msg01825.html
One peculiar thing I noticed was that the "cpupool" field is being used as a bitfield to check individual vCPUs. However afaik, "cpupool" is supposed to be the cpupool *ID*. That matches the fact that the cpupool value for all my VMs is 0, as I only have a single cpupool (id = 0). Am I overlooking something, or am I correct? Here is the relevant code:
Regards
Amneesh
Quoted 6 lines · Amneesh Singh
Hello, I was going through the source code for init-dom0less as I was facing some issue after applying this patchset. Feel free to ignore it however, as it seems unrelated to the issue I am encountering.
https://lists.xenproject.org/archives/html/xen-devel/2024-05/msg01825.html
Quoted 7 lines
One peculiar thing I noticed was that the "cpupool" field is being used as a bitfield to check individual vCPUs. However afaik, "cpupool" is supposed to be the cpupool *ID*. That matches the fact that the cpupool value for all my VMs is 0, as I only have a single cpupool (id = 0). Am I overlooking something, or am I correct? Here is the relevant code:
CC'ing relevant people.
But yes - that looks distinctly wrong.
~Andrew
Quoted 13 lines · Andrew Cooper
Quoted 12 lines · Amneesh Singh
Hello, I was going through the source code for init-dom0less as I was facing some issue after applying this patchset. Feel free to ignore it however, as it seems unrelated to the issue I am encountering.
https://lists.xenproject.org/archives/html/xen-devel/2024-05/msg01825.html
One peculiar thing I noticed was that the "cpupool" field is being used as a bitfield to check individual vCPUs. However afaik, "cpupool" is supposed to be the cpupool *ID*. That matches the fact that the cpupool value for all my VMs is 0, as I only have a single cpupool (id = 0). Am I overlooking something, or am I correct? Here is the relevant code:
Quoted 5 lines
CC'ing relevant people.
But yes - that looks distinctly wrong.
It _is_ wrong.
Juergen