[Skiboot] [RFC PATCH 21/23] platforms/qemu: Add slot table

Oliver O'Halloran oohall at gmail.com
Thu Aug 1 16:22:05 AEST 2019


On Wed, 2019-07-31 at 21:31 +0200, Frederic Barrat wrote:
> 
> Le 03/04/2019 à 11:09, Oliver O'Halloran a écrit :
> > Add a slot table to our QEMU platform file to allow testing of the OPAL
> > PCI hotplug operations.
> > 
> > Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> > ---
> >   platforms/qemu/qemu.c | 3 +++
> >   1 file changed, 3 insertions(+)
> > 
> > diff --git a/platforms/qemu/qemu.c b/platforms/qemu/qemu.c
> > index 04bf3fb3f0ea..36275ecd50f0 100644
> > --- a/platforms/qemu/qemu.c
> > +++ b/platforms/qemu/qemu.c
> > @@ -37,6 +37,8 @@ static bool qemu_probe(void)
> >   		bt_device_present = true;
> >   	}
> >   
> > +	slot_table_init(qemu_phb_table);
> > +
> 
> qemu_phb_table is introduced in the next patch.

And there's one in upstream now anyway ;)

> 
>    Fred
> 
> >   	return true;
> >   }
> >   
> > @@ -53,6 +55,7 @@ DECLARE_PLATFORM(qemu) = {
> >   	.name		= "Qemu",
> >   	.probe		= qemu_probe,
> >   	.init		= qemu_init,
> > +	.pci_get_slot_info = slot_table_get_slot_info,
> >   	.external_irq   = astbmc_ext_irq_serirq_cpld,
> >   	.cec_power_down = astbmc_ipmi_power_down,
> >   	.cec_reboot     = astbmc_ipmi_reboot,
> > 



More information about the Skiboot mailing list