Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-04-27 Thread Cornelia Huck
On Wed, 25 Apr 2018 17:42:11 +0200 Greg Kroah-Hartman wrote: > On Wed, Feb 14, 2018 at 06:20:35PM +0100, Cornelia Huck wrote: > > [cc:ing Greg for his opinion on this; retaining quoting for context] > > Ick, just found this in my inbox, sorry for the delay... > > > > > On Tue, 13 Feb 2018 17

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-04-25 Thread Greg Kroah-Hartman
On Wed, Feb 14, 2018 at 06:20:35PM +0100, Cornelia Huck wrote: > [cc:ing Greg for his opinion on this; retaining quoting for context] Ick, just found this in my inbox, sorry for the delay... > > On Tue, 13 Feb 2018 17:15:02 -0700 > Alex Williamson wrote: > > > On Tue, 13 Feb 2018 14:09:01 +010

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-02-26 Thread Cornelia Huck
On Wed, 14 Feb 2018 18:20:35 +0100 Cornelia Huck wrote: Ping. Does anyone have an opinion on how to proceed? > [cc:ing Greg for his opinion on this; retaining quoting for context] > > On Tue, 13 Feb 2018 17:15:02 -0700 > Alex Williamson wrote: > > > On Tue, 13 Feb 2018 14:09:01 +0100 > > Corn

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-02-14 Thread Cornelia Huck
[cc:ing Greg for his opinion on this; retaining quoting for context] On Tue, 13 Feb 2018 17:15:02 -0700 Alex Williamson wrote: > On Tue, 13 Feb 2018 14:09:01 +0100 > Cornelia Huck wrote: > > > On Mon, 12 Feb 2018 14:20:57 -0700 > > Alex Williamson wrote: > > > > > On Fri, 9 Feb 2018 11:27

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-02-13 Thread Alex Williamson
On Tue, 13 Feb 2018 14:09:01 +0100 Cornelia Huck wrote: > On Mon, 12 Feb 2018 14:20:57 -0700 > Alex Williamson wrote: > > > On Fri, 9 Feb 2018 11:27:16 +0100 > > Cornelia Huck wrote: > > > > > The registration code first registers the mdev device, and then > > > proceeds to populate sysfs.

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-02-13 Thread Cornelia Huck
On Mon, 12 Feb 2018 14:20:57 -0700 Alex Williamson wrote: > On Fri, 9 Feb 2018 11:27:16 +0100 > Cornelia Huck wrote: > > > The registration code first registers the mdev device, and then > > proceeds to populate sysfs. An userspace application that listens > > for the ADD uevent is therefore l

Re: [PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-02-12 Thread Alex Williamson
On Fri, 9 Feb 2018 11:27:16 +0100 Cornelia Huck wrote: > The registration code first registers the mdev device, and then > proceeds to populate sysfs. An userspace application that listens > for the ADD uevent is therefore likely to look for sysfs entries > that have not yet been created. > > T

[PATCH RFC] vfio/mdev: delay uevent after initialization complete

2018-02-09 Thread Cornelia Huck
The registration code first registers the mdev device, and then proceeds to populate sysfs. An userspace application that listens for the ADD uevent is therefore likely to look for sysfs entries that have not yet been created. The canonical way to fix this is to use attribute groups that are regis