Re: [libvirt PATCH v4 12/25] nodedev: Refresh mdev devices when changes are detected

2021-02-22 Thread Erik Skultety
On Thu, Feb 18, 2021 at 12:04:56PM -0600, Jonathon Jongsma wrote: > On Wed, 17 Feb 2021 14:35:51 +0100 > Erik Skultety wrote: > > > > +static void > > > +mdevctlEventHandleCallback(GFileMonitor *monitor G_GNUC_UNUSED, > > > + GFile *file, > > > +

Re: [libvirt PATCH v4 12/25] nodedev: Refresh mdev devices when changes are detected

2021-02-18 Thread Jonathon Jongsma
On Wed, 17 Feb 2021 14:35:51 +0100 Erik Skultety wrote: > > +static void > > +mdevctlEventHandleCallback(GFileMonitor *monitor G_GNUC_UNUSED, > > + GFile *file, > > + GFile *other_file G_GNUC_UNUSED, > > +

[libvirt PATCH v4 12/25] nodedev: Refresh mdev devices when changes are detected

2021-02-03 Thread Jonathon Jongsma
We need to query mdevctl for changes to device definitions since an administrator can define new devices by executing mdevctl outside of libvirt. In the future, mdevctl may add a way to signal device add/remove via events, but for now we resort to a bit of a workaround: monitoring the mdevctl