qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] i440/piix and dynamic sysbus check
@ 2017-11-07 16:40 Marc-André Lureau
  2017-11-07 16:53 ` Eduardo Habkost
  2017-11-08  8:57 ` Marcel Apfelbaum
  0 siblings, 2 replies; 4+ messages in thread
From: Marc-André Lureau @ 2017-11-07 16:40 UTC (permalink / raw)
  To: QEMU
  Cc: Marcel Apfelbaum, Eduardo Habkost, Paolo Bonzini, Alexander Graf,
	Stefan Berger

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.

Marcel, could we do something similar to piix to what you did for q35?:

commit bf8d492405feaee2c1685b3b9d5e03228ed3e47f
Author: Marcel Apfelbaum <marcel@redhat.com>
Date:   Mon Jun 27 18:38:33 2016 +0300

    q35: allow dynamic sysbus

thanks

-- 
Marc-André Lureau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] i440/piix and dynamic sysbus check
  2017-11-07 16:40 [Qemu-devel] i440/piix and dynamic sysbus check Marc-André Lureau
@ 2017-11-07 16:53 ` Eduardo Habkost
  2017-11-08  6:54   ` Marc-André Lureau
  2017-11-08  8:57 ` Marcel Apfelbaum
  1 sibling, 1 reply; 4+ messages in thread
From: Eduardo Habkost @ 2017-11-07 16:53 UTC (permalink / raw)
  To: Marc-André Lureau
  Cc: QEMU, Marcel Apfelbaum, Paolo Bonzini, Alexander Graf,
	Stefan Berger

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 <marcel@redhat.com>
> Date:   Mon Jun 27 18:38:33 2016 +0300
> 
>     q35: allow dynamic sysbus
> 
> thanks
> 
> -- 
> Marc-André Lureau

-- 
Eduardo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] i440/piix and dynamic sysbus check
  2017-11-07 16:53 ` Eduardo Habkost
@ 2017-11-08  6:54   ` Marc-André Lureau
  0 siblings, 0 replies; 4+ messages in thread
From: Marc-André Lureau @ 2017-11-08  6:54 UTC (permalink / raw)
  To: Eduardo Habkost
  Cc: QEMU, Marcel Apfelbaum, Paolo Bonzini, Alexander Graf,
	Stefan Berger

Hi Eduardo

On Tue, Nov 7, 2017 at 5:53 PM, Eduardo Habkost <ehabkost@redhat.com> wrote:
> 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

Looks good. I'll assume the problem will be eventually resolved after
your series. Looking forward to it.

Thanks




-- 
Marc-André Lureau

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] i440/piix and dynamic sysbus check
  2017-11-07 16:40 [Qemu-devel] i440/piix and dynamic sysbus check Marc-André Lureau
  2017-11-07 16:53 ` Eduardo Habkost
@ 2017-11-08  8:57 ` Marcel Apfelbaum
  1 sibling, 0 replies; 4+ messages in thread
From: Marcel Apfelbaum @ 2017-11-08  8:57 UTC (permalink / raw)
  To: Marc-André Lureau, QEMU
  Cc: Eduardo Habkost, Paolo Bonzini, Alexander Graf, Stefan Berger

On 07/11/2017 18:40, 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.
> 
> Marcel, could we do something similar to piix to what you did for q35?:
> 

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 <marcel@redhat.com>
> Date:   Mon Jun 27 18:38:33 2016 +0300
> 
>      q35: allow dynamic sysbus
> 
> thanks
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-08  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-07 16:40 [Qemu-devel] i440/piix and dynamic sysbus check Marc-André Lureau
2017-11-07 16:53 ` Eduardo Habkost
2017-11-08  6:54   ` Marc-André Lureau
2017-11-08  8:57 ` Marcel Apfelbaum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).