Re: [PATCH v2 4/7] device-core: use atomic_set on .realized property

2020-07-09 Thread Maxim Levitsky
On Wed, 2020-05-27 at 16:00 +0100, Stefan Hajnoczi wrote: > On Mon, May 11, 2020 at 07:09:48PM +0300, Maxim Levitsky wrote: > > Some code might race with placement of new devices on a bus. > > We currently first place a (unrealized) device on the bus > > and then realize it. > > > > As a workaroun

Re: [PATCH v2 4/7] device-core: use atomic_set on .realized property

2020-05-27 Thread Stefan Hajnoczi
On Mon, May 11, 2020 at 07:09:48PM +0300, Maxim Levitsky wrote: > Some code might race with placement of new devices on a bus. > We currently first place a (unrealized) device on the bus > and then realize it. > > As a workaround, users that scan the child device list, can > check the realized pro

[PATCH v2 4/7] device-core: use atomic_set on .realized property

2020-05-11 Thread Maxim Levitsky
Some code might race with placement of new devices on a bus. We currently first place a (unrealized) device on the bus and then realize it. As a workaround, users that scan the child device list, can check the realized property to see if it is safe to access such a device. Use an atomic write here