Re: [Qemu-devel] [PATCH] spapr: fix missing CPU core nodes in DT when running with TCG

2018-02-18 Thread David Gibson
On Fri, Feb 16, 2018 at 07:58:06PM +0100, Greg Kurz wrote: > Commit 5d0fb1508e2d "spapr: consolidate the VCPU id numbering logic > in a single place" introduced a helper to detect thread0 of a virtual > core based on its VCPU id. This is used to create CPU core nodes in > the DT, but it is broken i

[Qemu-devel] [PATCH] spapr: fix missing CPU core nodes in DT when running with TCG

2018-02-16 Thread Greg Kurz
Commit 5d0fb1508e2d "spapr: consolidate the VCPU id numbering logic in a single place" introduced a helper to detect thread0 of a virtual core based on its VCPU id. This is used to create CPU core nodes in the DT, but it is broken in TCG. $ qemu-system-ppc64 -nographic -accel tcg -machine dumpdtb=