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

2020-08-05 Thread Stefan Hajnoczi
On Wed, Jul 15, 2020 at 06:01:56PM +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 v3 4/7] device-core: use atomic_set on .realized property

2020-07-15 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