From mboxrd@z Thu Jan 1 00:00:00 1970 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.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 D5055C2BA4C for ; Wed, 26 Jan 2022 20:22:12 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4JkZrg11NBz3bdF for ; Thu, 27 Jan 2022 07:22:11 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=zedat.fu-berlin.de (client-ip=130.133.4.66; helo=outpost1.zedat.fu-berlin.de; envelope-from=glaubitz@zedat.fu-berlin.de; receiver=) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4JkZrC34Ktz30MG for ; Thu, 27 Jan 2022 07:21:45 +1100 (AEDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1nConT-0049yW-TI; Wed, 26 Jan 2022 21:21:39 +0100 Received: from p5b13a6db.dip0.t-ipconnect.de ([91.19.166.219] helo=[192.168.178.81]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1nConT-0006Dk-Mn; Wed, 26 Jan 2022 21:21:39 +0100 Message-ID: <200a989d-0aa9-c50f-855a-159b4e8ea441@physik.fu-berlin.de> Date: Wed, 26 Jan 2022 21:21:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Linux kernel: powerpc: KVM guest can trigger host crash on Power8 Content-Language: en-US From: John Paul Adrian Glaubitz To: Michael Ellerman References: <87pmrtbbdt.fsf@mpe.ellerman.id.au> <05b88724-90b6-a38a-bb3b-7392f85c1934@physik.fu-berlin.de> <878ryfavaz.fsf@mpe.ellerman.id.au> <04864fe5-fdd0-74b2-2bad-0303e4c2b15a@physik.fu-berlin.de> <874k92bubv.fsf@mpe.ellerman.id.au> <878rydac0d.fsf@mpe.ellerman.id.au> <73c55cc9-369e-8989-4f6c-6801ce6a4d64@physik.fu-berlin.de> <87k0hs8iyq.fsf@mpe.ellerman.id.au> <87ilux2ksi.fsf@mpe.ellerman.id.au> <872c2364-a5db-0533-c8bd-91e03c067a2f@physik.fu-berlin.de> <8aa4e710-df2d-8cb7-ba16-f6043c929a14@physik.fu-berlin.de> <52b57080-efbd-c582-30df-f1d638e18e14@physik.fu-berlin.de> In-Reply-To: <52b57080-efbd-c582-30df-f1d638e18e14@physik.fu-berlin.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.166.219 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "debian-powerpc@lists.debian.org" , linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hi Michael! On 1/13/22 01:17, John Paul Adrian Glaubitz wrote: > On 1/9/22 23:17, John Paul Adrian Glaubitz wrote: >> On 1/7/22 12:20, John Paul Adrian Glaubitz wrote: >>>> Can you separately test with (on the host): >>>> >>>> # echo 0 > /sys/module/kvm_hv/parameters/dynamic_mt_modes >>> >>> I'm trying to turn off "dynamic_mt_modes" first and see if that makes any difference. >>> >>> I will report back. >> >> So far the machine is running stable now and the VM built gcc-9 without >> crashing the host. I will continue to monitor the machine and report back >> if it crashes, but it looks like this could be it. > > So, it seems that setting "dynamic_mt_modes" actually did the trick, the host is no longer > crashing. However, I have observed on two occasions now that the build VM is just suddenly > off as if someone has shut it down using the "force-off" option in the virt-manager user > interface. Just as a heads-up. Ever since I set echo 0 > /sys/module/kvm_hv/parameters/dynamic_mt_modes on the host machine, I never saw the crash again. So the issue seems to be related to the dynamic_mt_modes feature. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913