Re: [Qemu-devel] [PATCH 17/21] qdev: Add a hook for a bus to device if it can add devices

2017-04-09 Thread David Gibson
On Wed, Apr 05, 2017 at 02:41:42PM +0200, Cédric Le Goater wrote: > From: Benjamin Herrenschmidt > > This allows a bus class to tell whether a given bus has room for > any new device. max_dev isn't sufficient as the rules can depend > on some arguments or can differ

[Qemu-devel] [PATCH 17/21] qdev: Add a hook for a bus to device if it can add devices

2017-04-05 Thread Cédric Le Goater
From: Benjamin Herrenschmidt This allows a bus class to tell whether a given bus has room for any new device. max_dev isn't sufficient as the rules can depend on some arguments or can differ between instances of a bus. This will be used by PCI in subsequent patches