[libvirt PATCH 1/6] nodedev: factor out nodeDeviceHasCapability()