On Tue, Nov 07, 2017 at 05:40:17PM +0100, Marc-André Lureau wrote:
> Hi,
> 
> 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".
> 
> The check comes from machine_init_notify(), checking that the machine
> has_dynamic_sysbus.
> 
>  Apparently, q35 supports it. But not i440. If I declare
> has_dynamic_sysbus in piix, the device works fine.

Before doing that, I would like to replace has_dynamic_sysbus
with a whitelist, so we don't need to make the machine accept all
other sysbus devices too.

I probably should rebase and resubmit this RFC:
http://mid.mail-archive.com/20170323212848.8492-1-ehabkost@redhat.com
Subject: [Qemu-devel] [RFC 0/4] Replace has_dynamic_sysbus with device type  
whitelist


> 
> Marcel, could we do something similar to piix to what you did for q35?:
> 
> commit bf8d492405feaee2c1685b3b9d5e03228ed3e47f
> Author: Marcel Apfelbaum <mar...@redhat.com>
> Date:   Mon Jun 27 18:38:33 2016 +0300
> 
>     q35: allow dynamic sysbus
> 
> thanks
> 
> -- 
> Marc-André Lureau

-- 
Eduardo

Reply via email to