75cfb84 nodedev: Add the missing PCI dev checks for 'mdev_types' capability

1 file Authored by Dan Zheng 6 years ago, Committed by Erik Skultety 6 years ago,
    nodedev: Add the missing PCI dev checks for 'mdev_types' capability
    
    Similar to commit @f44ec9c1, commit @500cbc06 introduced a new nested
    'mdev_types' capability, however the mentioned commit didn't adjust
    virNodeDeviceNumOfCaps and virNodeDeviceListCaps functions accordingly
    to provide proper support for this capability.
    
    After applying this patch the following python snippet returns the
    expected results:
        import libvirt
        conn = libvirt.openReadOnly('qemu:///system')
        devs = conn.listAllDevices()
        for dev in devs:
            if 'mdev_types' in dev.listCaps():
                print dev.name(),dev.numOfCaps(),dev.listCaps()
    
    Signed-off-by: Dan Zheng <dzheng@redhat.com>
    Signed-off-by: Erik Skultety <eskultet@redhat.com>