Re: [libvirt] [PATCH v2] nodedev: update mdev_types caps before dumpxml

2018-01-09 Thread Erik Skultety
On Mon, Jan 08, 2018 at 07:35:22PM +0800, Wu Zongyong wrote: > In current implemention, mdev_types caps keep constant all > the time. But, it is possible that a device capable of > mdev_types sometime(for example:bind to proper driver) and > incapable of mdev_types at other times(for example:

[libvirt] [PATCH v2] nodedev: update mdev_types caps before dumpxml

2018-01-08 Thread Wu Zongyong
In current implemention, mdev_types caps keep constant all the time. But, it is possible that a device capable of mdev_types sometime(for example:bind to proper driver) and incapable of mdev_types at other times(for example: unbind from its driver). We should keep the info of xml dumped out