On 30/06/2017 09:12, David Gibson wrote: > On Thu, Jun 29, 2017 at 03:42:03PM +1000, Suraj Jitindar Singh wrote: >> On Thu, 2017-06-29 at 15:37 +1000, Suraj Jitindar Singh wrote: >>> On Wed, 2017-06-28 at 18:41 +0200, Greg Kurz wrote: ... >>> That makes the assumption that DD2 doesn't require any work arounds >>> which TCG can't handle. >> >> Actually TCG is really a non-issue since we'll just go into the POWER9 >> architected mode. >> >> Can't we just have -cpu POWER9 alias to DD1 for now and add DD2 when we >> know the pvr? > > No, because calling what qemu does DD1 is simply not accurate, in > important and guest-visible ways. > > What we should do is add in DD2.0 - we know the PVR, even if the > chip's not out yet. Then alias POWER9 to that. >
OK, I have patch that define v1.0 to DD1, v2 to DD2, and set the POWER9 alias to v2, but: - on a DD1 host and KVM HV, "-cpu host" works well and "cpu POWER9" (that select then the v1.0) boots the kernel and hangs at early boot of the kernel (first display) - in TCG mode, boot by default with v2, but some services does not start correctly, and I have never the console login (perhaps because of some time out: I test TCG on the POWER9 host, I should test on a x86 one). I'm trying for the moment to understand why "-cpu POWER9" hangs while "-cpu host" works. Thanks, Laurent