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 7436AFDEE31 for ; Thu, 23 Apr 2026 17:35:27 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4g1jsn6Wgtz2yFm; Fri, 24 Apr 2026 03:35:25 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=130.133.4.66 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776965725; cv=none; b=VCNwYAHKq5YiU2zsYCaj9bk+26x6pJjwE8R27U+ETTIUxG+DGW10GbSFRbDIt26CWauKA1FQzo0a7szpZhzQj4pyQZ5oW9xE8UAQzM0zQGr5hdc6O+9Gc/9ZoMHVQTHdWUSBTGdhUpi6bUTPYVxO+M/9rfL0sccsaZyHghxdGkQffNl9Eei/2dhmfbcDXm/qEnB9RZ6zaZDV8UnX/f0Gn2M17DBcBGk1DGVUACfwGFqu5itmAOuRtcBdCr+6gbY9HuR/UINbMV2L6c7ps4Dgs+caCRvmsT2KKEudq1xRQ8ktmD0bzN7BzoeqJdT8B+L0EJaG3b+G+q2CqaumLyhPrQ== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1776965725; c=relaxed/relaxed; bh=GJw7yFXCFTC80hgAw7N2IV7qI8Oysh8o3mjC4onHLRg=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=W5w4BLPn6CrZy4NOzrsySVIySYSonQhwG9G7i8lLSIQV4EpYxe6NR39efWPK3h0KYEkDF9w3h+akBJCEmdFC9N0IYWnJWAqgLQr+jvzYJN58VWb+bhLzp0b12TCTtJQ72ZuEFoIIDJHZoORkWvDfR2nOUbL1MumboLLL/2im7DzxAzXVwVUSVrE76IN27qOg5Z5ZMtYWL2rRuGngmecYNZx7/FkoYLirAzzuTWHNPcmL2R6/5N7SoNK7pvfbUEVlBjNy+03oAANfIVSg3mbhbnEvMyBqhzfApcVNiGlIpGyNXZPXnzO7B0YguPfjPRlDH7G/oc+4CKAxtpgVfgr6Sw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=physik.fu-berlin.de; dkim=pass (2048-bit key; unprotected) header.d=fu-berlin.de header.i=@fu-berlin.de header.a=rsa-sha256 header.s=fub01 header.b=irOelLyf; dkim-atps=neutral; spf=pass (client-ip=130.133.4.66; helo=outpost1.zedat.fu-berlin.de; envelope-from=glaubitz@zedat.fu-berlin.de; receiver=lists.ozlabs.org) smtp.mailfrom=zedat.fu-berlin.de Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=physik.fu-berlin.de Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=fu-berlin.de header.i=@fu-berlin.de header.a=rsa-sha256 header.s=fub01 header.b=irOelLyf; dkim-atps=neutral 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=lists.ozlabs.org) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4g1jsk3WwPz2yFQ for ; Fri, 24 Apr 2026 03:35:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=fu-berlin.de; s=fub01; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:From: Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:In-Reply-To: References; bh=GJw7yFXCFTC80hgAw7N2IV7qI8Oysh8o3mjC4onHLRg=; t=1776965722; x=1777570522; b=irOelLyfKPGX7afoW5cIwyYnPNvh/Yvp+Q8dDYRglrWftZiNNI2eCvW0RYbht +hV2Q9JIcCxeCnq4fwXLRiZmM3Pnu19fvgsMy+/8pHPcsxBWHnX0L94HqeW0kdCSAFkwLQ6AV+V+n yJKNsJi6ubrrL9tL7LgjeYRf3vsK2wP9sL3IUmJiBSd+Se7Kda3nuEdSsWcaS2MqsHTlPz333LjMb y6HZ1F3ScWvprrS7NiGK0kekV7RD+U/kqwgzuznGdWAzRb6QQJGda/1x2Lwz6A7aUSDkO+zOr9mv5 Ae8CMDGyncDjpNpeivvusE1fnXzrrFRdAwW3uAHyhIzgFu6SjQ==; Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.99) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1wFxxM-00000003Q7V-25In; Thu, 23 Apr 2026 19:35:16 +0200 Received: from p5dc559e1.dip0.t-ipconnect.de ([93.197.89.225] helo=suse-laptop.fritz.box) by inpost2.zedat.fu-berlin.de (Exim 4.99) with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from ) id 1wFxxM-00000001oKD-17um; Thu, 23 Apr 2026 19:35:16 +0200 Message-ID: Subject: Re: KVM-PR no longer works when compiled with new GCC compilers From: John Paul Adrian Glaubitz To: Christian Zigotzky , linuxppc-dev , kvm@vger.kernel.org, "debian-powerpc@lists.debian.org" Cc: "R.T.Dickinson" , hypexed@yahoo.com.au, mad skateman , Christian Zigotzky Date: Thu, 23 Apr 2026 19:35:15 +0200 In-Reply-To: <588ada6c-bcc4-e93b-1beb-4f7f859e3d5c@xenosoft.de> References: <588ada6c-bcc4-e93b-1beb-4f7f859e3d5c@xenosoft.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.1 X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 93.197.89.225 X-ZEDAT-Hint: PO Hi Christian, On Thu, 2026-04-23 at 18:50 +0200, Christian Zigotzky wrote: > On 02/10/25 08:37, Christian Zigotzky wrote: > > Hello, > >=20 > > KVM-PR (-enable-kvm) doesn't work anymore on our PA Semi Nemo boards= =20 > > [1] if we compiled it with new GCC compilers. > > The VM can't boot. There aren't any messages on the serial console of= =20 > > QEMU. > >=20 > > It boots without KVM-PR. > >=20 > > Kernel config with new GCC compiler [2]: > >=20 > > - CONFIG_CC_VERSION_TEXT=3D"powerpc64-suse-linux-gcc (SUSE Linux) 11.5.= 0" > > - CONFIG_TARGET_CPU=3D"power4" > > - CONFIG_TUNE_CPU=3D"-mtune=3Dpower10" > >=20 > > It works if I compile it with an old GCC compiler [3]: > >=20 > > - CONFIG_CC_VERSION_TEXT=3D"powerpc-linux-gnu-gcc (Ubuntu=20 > > 9.4.0-1ubuntu1~20.04.1) 9.4.0" > > - CONFIG_TARGET_CPU=3D"power4" > > - CONFIG_TUNE_CPU=3D"-mtune=3Dpower9" > >=20 > > Mtune changes to power9 automatically if I compiled it with an old GCC= =20 > > compiler. If I compile it with a new GCC compiler again it changes=20 > > automatically to mtune=3Dpower10. > >=20 > > Is mtune the reason of the KVM-PR issue? I think the issue is the new= =20 > > GCC. [4] > >=20 > > Could you please check whether KVM-PR is compatible with new versions= =20 > > of GCC compilers? > >=20 > > Thanks in advance, > >=20 > > Christian > >=20 > >=20 > >=20 > > [1] https://en.wikipedia.org/wiki/AmigaOne_X1000 > >=20 > > [2]=20 > > https://github.com/chzigotzky/kernels/blob/45186997e6f347fd092f9ab629d6= 2d6041426227/configs/x1000_defconfig > >=20 > > [3]=20 > > https://github.com/chzigotzky/kernels/blob/bc7a3e27b3fcdee52a8135435f02= cf807a43872a/configs/x1000_defconfig > >=20 > > [4] KVM-PR no longer works on an X1000 if the kernel has been compiled= =20 > > with a new GCC:=20 > > https://forum.hyperion-entertainment.com/viewtopic.php?p=3D57146#p57146 > >=20 > Error messages (kvm-pr compiled with powerpc64-linux-gnu-gcc 14.1.1=20 > 20240507 Red Hat Cross 14.1.1-1, GNU ld version 2.41-2.el10_0): >=20 > [=C2=A0 800.274759] Couldn't emulate instruction 0x00000000 (op 0 xop 0) > [=C2=A0 800.274767] kvmppc_exit_pr_progint: emulation at 100 failed (0000= 0000) I don't think "mtune=3Dpower9" or "mtune=3Dpower10" will work. Did you try = "mtune=3Dpower4"? Adrian --=20 .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913