nodedev: handle mdevs that disappear from mdevctl
nodedev: handle mdevs that disappear from mdevctl

mdevctl does not currently provide any events when the list of defined
devices changes, so we will need to poll mdevctl for the list of defined
devices periodically. When a mediated device no longer exists from one
iteration to the next, we need to treat it as an "undefine" event.

When we get such an event, we remove the device from the list if it's
not active. Otherwise, we simply mark it as non-persistent.

Signed-off-by: Jonathon Jongsma <c7254805a17bd5c41e24c3a278fcbf3afcdfb0fa@redhat.com>
Reviewed-by: Erik Skultety <2c14d38fa47c8799f1b9c16280abe27f8edfec6e@redhat.com>

nertpinx/libvirt,libvirt/libvirt,olafhering/libvirt,crobinso/libvirt,jfehlig/libvirt,nertpinx/libvirt,crobinso/libvirt,libvirt/libvirt,jfehlig/libvirt,olafhering/libvirt,olafhering/libvirt,zippy2/libvirt,olafhering/libvirt,crobinso/libvirt,crobinso/libvirt,nertpinx/libvirt,zippy2/libvirt,libvirt/libvirt,jfehlig/libvirt,zippy2/libvirt,zippy2/libvirt,nertpinx/libvirt,nertpinx/libvirt,jfehlig/libvirt,libvirt/libvirt