From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCMAw-0001Hv-35 for qemu-devel@nongnu.org; Wed, 08 Nov 2017 03:57:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCMAt-0004M9-0R for qemu-devel@nongnu.org; Wed, 08 Nov 2017 03:57:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33560) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCMAs-0004Lq-Qk for qemu-devel@nongnu.org; Wed, 08 Nov 2017 03:57:30 -0500 References: From: Marcel Apfelbaum Message-ID: <2ec5f251-30d9-bc4b-e3cd-3e31272cfc95@redhat.com> Date: Wed, 8 Nov 2017 10:57:27 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] i440/piix and dynamic sysbus check List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Marc-Andr=c3=a9_Lureau?= , QEMU Cc: Eduardo Habkost , Paolo Bonzini , Alexander Graf , Stefan Berger On 07/11/2017 18:40, Marc-Andr=C3=A9 Lureau wrote: > Hi, >=20 > I am working on a TPM CRB device (last sent version: > https://lists.gnu.org/archive/html/qemu-devel/2017-10/msg02014.html). > It's a sysbus device, and when starting qemu with i440, I get "Option > '-device tpm-crb' cannot be handled by this machine". >=20 > The check comes from machine_init_notify(), checking that the machine > has_dynamic_sysbus. >=20 > Apparently, q35 supports it. But not i440. If I declare > has_dynamic_sysbus in piix, the device works fine. >=20 > Marcel, could we do something similar to piix to what you did for q35?: >=20 Yes, as long as we check all sysbus devices that can't be created with '-device' have their "cannot_be_insta...yet" flag set. If Eduardo's series achieves the above is OK. Thanks, Marcel > commit bf8d492405feaee2c1685b3b9d5e03228ed3e47f > Author: Marcel Apfelbaum > Date: Mon Jun 27 18:38:33 2016 +0300 >=20 > q35: allow dynamic sysbus >=20 > thanks >=20