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

2018-01-05 Thread Erik Skultety
On Tue, Dec 26, 2017 at 07:55:52PM +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] nodedev: update mdev_types caps before dumpxml

2017-12-26 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

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

2017-12-26 Thread Wu Zongyong
Wu Zongyong (1): nodedev: update mdev_types caps before dumpxml src/node_device/node_device_linux_sysfs.c | 42 +++ src/node_device/node_device_udev.c| 11 ++-- src/node_device/node_device_udev.h| 8 ++ 3 files changed, 59 insertions(+), 2