[libvirt PATCH v3 02/11] nodedev: factor out nodeDeviceHasCapability()