-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Devices: CPU pinning fix (allow explicit pinning on isolated CPUs for VM instances) #14817
Conversation
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
a41c95b
to
8ab389b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment but else very good !
8ab389b
to
ceb228b
Compare
ceb228b
to
563d066
Compare
…d CPUs Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
563d066
to
daa8e1a
Compare
@@ -431,6 +431,22 @@ func getNumaNodeToCPUMap() (numaNodeToCPU map[int64][]int64, err error) { | |||
return numaNodeToCPU, err | |||
} | |||
|
|||
func getNumaCPUs(numaNodeToCPU map[int64][]int64, cpuNodes string) ([]int64, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing doc block on this function.
As it would be useful to the caller and reviewer to understand what is in the returned values and what format the cpuNodes string is in.
Fixes: #14709