Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB630EB64DC for ; Thu, 6 Jul 2023 11:34:03 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qHNEp-0002la-KA; Thu, 06 Jul 2023 07:33:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHNEo-0002lK-B8; Thu, 06 Jul 2023 07:33:30 -0400 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qHNEl-0003MH-5R; Thu, 06 Jul 2023 07:33:30 -0400 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id BF7C5746369; Thu, 6 Jul 2023 13:33:05 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 8346E74635C; Thu, 6 Jul 2023 13:33:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 8173A746335; Thu, 6 Jul 2023 13:33:05 +0200 (CEST) Date: Thu, 6 Jul 2023 13:33:05 +0200 (CEST) From: BALATON Zoltan To: Nicholas Piggin cc: qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Daniel Henrique Barboza , =?ISO-8859-15?Q?C=E9dric_Le_Goater?= , David Gibson , Greg Kurz , Harsh Prateek Bora , Richard Henderson Subject: Re: [PATCH v3] target/ppc: Make checkstop actually stop the system In-Reply-To: Message-ID: References: <20230703120340.45349-1-npiggin@gmail.com> <68789d6e-5bf8-88d6-2bd5-405339500f44@eik.bme.hu> <93da1b1b-aabc-aba1-0706-16b3513ad0e9@eik.bme.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Wed, 5 Jul 2023, Nicholas Piggin wrote: > On Tue Jul 4, 2023 at 1:06 AM AEST, BALATON Zoltan wrote: >> On Mon, 3 Jul 2023, Nicholas Piggin wrote: >>> On Mon Jul 3, 2023 at 10:26 PM AEST, BALATON Zoltan wrote: >>>> On Mon, 3 Jul 2023, Nicholas Piggin wrote: >>>>> checkstop state does not halt the system, interrupts continue to be >>>>> serviced, and other CPUs run. Stop the machine with >>>>> qemu_system_guest_panicked. >>>>> >>>>> Change the logging not to print separately to stderr because a >>>>> checkstop is a guest error (or perhaps a simulated machine error) >>>>> rather than a QEMU error. CPU registers are dumped. >>>>> >>>>> Signed-off-by: Nicholas Piggin >>>>> >>>>> Since v1: >>>>> - Fix loop exit so it stops on the checkstop-causing instruction, rather than >>>>> after it. >>>>> >>>>> Since v2: >>>>> - Rebase on ppc-next. >>>> >>>> Is this really based on ppc-next or on my series or another patch from >>>> you? I think the patch from my series that introduces the checksrop >>>> function that this patch is changing is not yet in ppc-next so this may >>>> not apply there. >>> >>> It is based on ppc-next unless I've done something silly. Is this >>> the patch you were talking about? >>> >>> https://gitlab.com/danielhb/qemu/-/commit/26d089ac20080066061ed61fb58a5411e275e191 >>> >>>> I think you've posted an alternative to the patch moving >>>> checkstop handling to a function and the sc patch which may clash with the >>>> not yet merged parts in my series but i could not follow all these >>>> patches. I'm not sure Daniel could so maybe you could send it as a series >>>> to include all patches you want to add or state what it's based on. >>> >>> Things are getting a little confusing, but I think what Daniel has >>> is okay. Were were talking about changing checkstop with my patch, >>> but no big deal to take yours first, I've reworked things. >> >> Sorry my bad. Yes it's getting confusing to me and missed that Daniel >> already merged that patch on ppc-next, I thought it was one of the patches >> not yet merged. So this can go on top then. >> >> There was another change for fixing sc that may clash that I'm not sure >> if I need to do anything about. > > The sc patches still had the problem of changing the syscall dump to > the instruction after syscall IIRC. So that would need to be fixed. > But that does make me a bit less happy about them too... Anyway > resend with fix and rebase if you want them. I won't have time now to change this series so I gave on these excp_helper patches for now. I'll wait for your patches to go in first then I'll rebase the remaining ones on that in next devel cycle. What's alredy merged for ppc440 and pegasos2 is enough for the next release or maybe if the last 3 patches from the ppc440 series renaming host bridge type names could go in that would be all from me at the moment. Thank you. Regards, BALATON Zoltan