[libvirt PATCH v2 01/10] nodedev: factor out nodeDeviceHasCapability()