From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eWu7R-0001EJ-4g for qemu-devel@nongnu.org; Wed, 03 Jan 2018 20:14:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eWu7Q-00013V-8x for qemu-devel@nongnu.org; Wed, 03 Jan 2018 20:14:53 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:46997) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eWu7Q-00012o-3O for qemu-devel@nongnu.org; Wed, 03 Jan 2018 20:14:52 -0500 Received: by mail-wm0-x244.google.com with SMTP id r78so721528wme.5 for ; Wed, 03 Jan 2018 17:14:51 -0800 (PST) MIME-Version: 1.0 Sender: alistair23@gmail.com In-Reply-To: References: From: Alistair Francis Date: Wed, 3 Jan 2018 17:14:20 -0800 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] MTTCG External Halt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "qemu-devel@nongnu.org Developers" , =?UTF-8?B?QWxleCBCZW5uw6ll?= , Alistair Francis On Wed, Jan 3, 2018 at 2:23 PM, Alistair Francis wrote: > On Wed, Jan 3, 2018 at 2:14 PM, Peter Maydell wrote: >> On 3 January 2018 at 22:10, Alistair Francis wrote: >>> Any chance any one has some insight into a way to externally set a >>> vCPU as halted/un-halted? >> >> PSCI (where one vCPU can power off another) does this by >> calling arm_set_cpu_off(). Does that (or some variation >> on it) work? > > It seems to help with the assert(), but I still see CPU stalls. > > I also forgot to mention that we have a sev implementation, which also > might be contributing. I figured it out. We have the same thing for reset (a GPIO line can reset the cores) and apparently resting the same core twice in a row was causing the assert(). Resting the core twice was a bug, so I have fixed that and I don't see the assert() any more. I'm still not sure why that assert() was being hit after a reset and halt/un-halt though. Thanks for your help Peter. Alistair > > Alistair > >> >> thanks >> -- PMM