Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29B27C33CB2 for ; Wed, 29 Jan 2020 10:40:27 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id F010720708 for ; Wed, 29 Jan 2020 10:40:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F010720708 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kaod.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44066 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwkll-0004Bx-7T for qemu-devel@archiver.kernel.org; Wed, 29 Jan 2020 05:40:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48131) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwkl9-0003hT-MA for qemu-devel@nongnu.org; Wed, 29 Jan 2020 05:39:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwkl8-0007S2-QB for qemu-devel@nongnu.org; Wed, 29 Jan 2020 05:39:47 -0500 Received: from 3.mo4.mail-out.ovh.net ([46.105.57.129]:34559) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iwkl8-0007Ex-KW for qemu-devel@nongnu.org; Wed, 29 Jan 2020 05:39:46 -0500 Received: from player711.ha.ovh.net (unknown [10.108.35.27]) by mo4.mail-out.ovh.net (Postfix) with ESMTP id D09A321B201 for ; Wed, 29 Jan 2020 11:39:36 +0100 (CET) Received: from kaod.org (82-64-250-170.subs.proxad.net [82.64.250.170]) (Authenticated sender: clg@kaod.org) by player711.ha.ovh.net (Postfix) with ESMTPSA id E9E20EA13277; Wed, 29 Jan 2020 10:39:32 +0000 (UTC) Subject: Re: Assertion triggers with power8e_v2.1-powernv-cpu-core To: Thomas Huth , QEMU Developers , "qemu-ppc@nongnu.org" References: <5937c35c-e290-5b7a-18f4-05a5149b58c5@redhat.com> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: Date: Wed, 29 Jan 2020 11:39:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <5937c35c-e290-5b7a-18f4-05a5149b58c5@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 6982831224923392998 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedrfeeigdduiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeevrogurhhitggpnfgvpgfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecukfhppedtrddtrddtrddtpdekvddrieegrddvhedtrddujedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjeduuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpegtlhhgsehkrghougdrohhrghdprhgtphhtthhopehqvghmuhdquggvvhgvlhesnhhonhhgnhhurdhorhhg X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 46.105.57.129 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Gibson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 1/29/20 11:31 AM, Thomas Huth wrote: > FYI, scripts/device-crash-test reported an assertion, triggerable like this: > > $ qemu-system-ppc64 -machine ppce500 -device power8e_v2.1-powernv-cpu-core > qemu-system-ppc64: hw/ppc/pnv_core.c:221: pnv_core_realize: Assertion > `pc->chip' failed. > Aborted (core dumped) > > Of course using that CPU is not possible on ppce500, but there should be > a proper error message instead of that assertion. > > Does anybody have an idea what's the best place to fix this issue? The cores should be instantiated by a PowerNV chip. So may be we should fix this issue with : @@ -325,6 +325,7 @@ static void pnv_core_class_init(ObjectCl dc->realize = pnv_core_realize; dc->unrealize = pnv_core_unrealize; device_class_set_props(dc, pnv_core_properties); + dc->user_creatable = false; } #define DEFINE_PNV_CORE_TYPE(family, cpu_model) \ I think that most of the PowerNV devices are not user creatable. C.