On Fri, 2019-03-29 at 16:08 +0100, Juergen Gross wrote: > Credit2's smt_idle_mask_set() and smt_idle_mask_clear() are used to > identify idle cores where vcpus can be moved to. A core is thought to > be idle when all siblings are known to have the idle vcpu running on > them. > > Unfortunately the information of a vcpu running on a cpu is per > runqueue. So in case not all siblings are in the same runqueue a core > will never be regarded to be idle, as the sibling not in the runqueue > is never known to run the idle vcpu. > > Use a credit2 specific cpumask of siblings with only those cpus > being marked which are in the same runqueue as the cpu in question. > > Signed-off-by: Juergen Gross > --- > V2: > - use credit2 per-cpu specific sibling mask > --- > FYI, I've sent my RoB to (I think) patches 1 to 7 in the other threads where they've been posted. Regards, Dario -- Dario Faggioli, Ph.D http://about.me/dario.faggioli Virtualization Software Engineer SUSE Labs, SUSE https://www.suse.com/ ------------------------------------------------------------------- <> (Raistlin Majere)