Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jxp24-00081U-IW for mharc-qemu-trivial@gnu.org; Tue, 21 Jul 2020 05:57:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxp23-00081D-16 for qemu-trivial@nongnu.org; Tue, 21 Jul 2020 05:57:55 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:43588 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jxp21-0006Kc-D0 for qemu-trivial@nongnu.org; Tue, 21 Jul 2020 05:57:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595325472; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uwojRtX9rCrCbpJHZfWY4BxhZMoHEbevn1Zu4yV/GJ4=; b=eXo4BxwaFACi9kAekW+v0fbQDqhS0cB8kAKxVCvJys53hnVh+nhPjP3zLlTLnN1GTsZAcb ZXxPFyb8EQIKkuJNx4MaAaT6Jp8Z5C8YE1/iWT/pWP7ENhfUKx0hxEYCUU3aSAURZ9e5Pu 8fYseKeFCpKV2tBLhmqpjE5EysFC+7M= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-121-HnhwASimPraQTHJQS0LwSg-1; Tue, 21 Jul 2020 05:57:50 -0400 X-MC-Unique: HnhwASimPraQTHJQS0LwSg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 58B68805721; Tue, 21 Jul 2020 09:57:49 +0000 (UTC) Received: from blackfin.pond.sub.org (ovpn-112-143.ams2.redhat.com [10.36.112.143]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 657405D9CA; Tue, 21 Jul 2020 09:57:46 +0000 (UTC) Received: by blackfin.pond.sub.org (Postfix, from userid 1000) id 0092D111CA27; Tue, 21 Jul 2020 11:57:44 +0200 (CEST) From: Markus Armbruster To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Cc: qemu-trivial@nongnu.org, Paolo Bonzini , qemu-devel@nongnu.org, "Michael S. Tsirkin" Subject: Re: [PATCH-for-5.1] hw/isa/isa-superio: Fix IDE controller realization References: <20200720172348.23465-1-f4bug@amsat.org> <87zh7t9tda.fsf@dusky.pond.sub.org> Date: Tue, 21 Jul 2020 11:57:44 +0200 In-Reply-To: ("Philippe =?utf-8?Q?Mathieu-Daud=C3=A9=22's?= message of "Tue, 21 Jul 2020 10:46:15 +0200") Message-ID: <87wo2x8a1z.fsf@dusky.pond.sub.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=armbru@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=207.211.31.81; envelope-from=armbru@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/21 03:39:19 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2020 09:57:55 -0000 Philippe Mathieu-Daud=C3=A9 writes: > On 7/21/20 10:15 AM, Markus Armbruster wrote: >> Philippe Mathieu-Daud=C3=A9 writes: >>=20 >>> When realizing a Super I/O with IDE controller [*], we get: >>> >>> qom/object.c:1684: object_property_try_add_child: Assertion `!child->= parent' failed. >>> Aborted (core dumped) >>> >>> This is because the device is already realized when we try to >>> add the QOM property to the parent. Fix by realizing *after* >>> adding the QOM relationship. >>> >>> [*] Set ISASuperIOClass::ide.count =3D N with N not zero >>=20 >> Is this a latent bug, or can it bite in master? If the latter, can you >> show how to reproduce? > > Latent bug for master: > > $ git grep ide.count > hw/isa/isa-superio.c:149: if (k->ide.count && (!k->ide.is_enabled || > k->ide.is_enabled(sio, 0))) { > hw/isa/isa-superio.c:197: sc->ide.count =3D 0; > hw/isa/smc37c669-superio.c:100: sc->ide.count =3D 0; > hw/isa/vt82c686.c:529: sc->ide.count =3D 0; > > I hit it rebasing undergoing series for 5.2 and testing them. Let's tweak the commit message like this [*] Set ISASuperIOClass::ide.count =3D N with N not zero (no such thing currently exists; the bug is latent) Preferably with that or something like it: Reviewed-by: Markus Armbruster