Re: ensuring a machine's buses have unique names

2021-09-22 Thread Markus Armbruster
BALATON Zoltan writes: > On Wed, 22 Sep 2021, Markus Armbruster wrote: >> BALATON Zoltan writes: >>> To me it looks like device code can't really set a globally unique >>> name on creating the bus without getting some help from upper >>> levels. So maybe naming busses should be done by qdev (or

Re: ensuring a machine's buses have unique names

2021-09-22 Thread BALATON Zoltan
On Wed, 22 Sep 2021, Markus Armbruster wrote: BALATON Zoltan writes: On Tue, 21 Sep 2021, Peter Maydell wrote: On Wed, 15 Sept 2021 at 05:28, Markus Armbruster wrote: Peter Maydell writes: I'm not sure how best to sort this tangle out. We could: * make controller devices pass in NULL

Re: ensuring a machine's buses have unique names

2021-09-22 Thread Cédric Le Goater
On 9/22/21 09:02, Markus Armbruster wrote: Peter Maydell writes: On Wed, 15 Sept 2021 at 05:28, Markus Armbruster wrote: Peter Maydell writes: I'm not sure how best to sort this tangle out. We could: * make controller devices pass in NULL as bus name; this means that some bus names

Re: ensuring a machine's buses have unique names

2021-09-22 Thread Markus Armbruster
Peter Maydell writes: > On Wed, 15 Sept 2021 at 05:28, Markus Armbruster wrote: >> >> Peter Maydell writes: >> > I'm not sure how best to sort this tangle out. We could: >> > * make controller devices pass in NULL as bus name; this >> >means that some bus names will change, which is an

Re: ensuring a machine's buses have unique names

2021-09-21 Thread Markus Armbruster
Peter Maydell writes: [...] > I'm not sure how best to sort this tangle out. We could: > * make controller devices pass in NULL as bus name; this >means that some bus names will change, which is an annoying >breakage but for these minor bus types we can probably >get away with it.

Re: ensuring a machine's buses have unique names

2021-09-21 Thread Markus Armbruster
BALATON Zoltan writes: > On Tue, 21 Sep 2021, Peter Maydell wrote: >> On Wed, 15 Sept 2021 at 05:28, Markus Armbruster wrote: >>> >>> Peter Maydell writes: I'm not sure how best to sort this tangle out. We could: * make controller devices pass in NULL as bus name; this means

Re: ensuring a machine's buses have unique names

2021-09-21 Thread BALATON Zoltan
On Tue, 21 Sep 2021, Peter Maydell wrote: On Wed, 15 Sept 2021 at 05:28, Markus Armbruster wrote: Peter Maydell writes: I'm not sure how best to sort this tangle out. We could: * make controller devices pass in NULL as bus name; this means that some bus names will change, which is an

Re: ensuring a machine's buses have unique names

2021-09-21 Thread Peter Maydell
On Wed, 15 Sept 2021 at 05:28, Markus Armbruster wrote: > > Peter Maydell writes: > > I'm not sure how best to sort this tangle out. We could: > > * make controller devices pass in NULL as bus name; this > >means that some bus names will change, which is an annoying > >breakage but for

Re: ensuring a machine's buses have unique names

2021-09-14 Thread Markus Armbruster
Peter Maydell writes: > On Thu, 26 Aug 2021 at 15:08, Markus Armbruster wrote: >> Peter Maydell writes: >> > What's the right way to ensure that when a machine has multiple >> > buses of the same type (eg multiple i2c controllers, multiple >> > sd card controllers) they all get assigned unique

Re: ensuring a machine's buses have unique names

2021-09-14 Thread Peter Maydell
On Thu, 26 Aug 2021 at 15:08, Markus Armbruster wrote: > Peter Maydell writes: > > What's the right way to ensure that when a machine has multiple > > buses of the same type (eg multiple i2c controllers, multiple > > sd card controllers) they all get assigned unique names so that > > the user

Re: ensuring a machine's buses have unique names

2021-08-26 Thread Markus Armbruster
Peter Maydell writes: > What's the right way to ensure that when a machine has multiple > buses of the same type (eg multiple i2c controllers, multiple > sd card controllers) they all get assigned unique names so that > the user can use '-device ...,bus=some-name' to put a device on a > specific

Re: ensuring a machine's buses have unique names

2021-08-26 Thread Peter Maydell
On Thu, 12 Aug 2021 at 12:05, Peter Maydell wrote: > > What's the right way to ensure that when a machine has multiple > buses of the same type (eg multiple i2c controllers, multiple > sd card controllers) they all get assigned unique names so that > the user can use '-device ...,bus=some-name'

ensuring a machine's buses have unique names

2021-08-12 Thread Peter Maydell
What's the right way to ensure that when a machine has multiple buses of the same type (eg multiple i2c controllers, multiple sd card controllers) they all get assigned unique names so that the user can use '-device ...,bus=some-name' to put a device on a specific bus? For instance in