mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
tpm: Use /dev/null for cancel path if none was found
TPM 2 does not implement sysfs files for cancellation of commands. We therefore use /dev/null for the cancel path passed to QEMU. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Tested-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
a0b628432a
commit
dfbb15b754
@ -61,9 +61,7 @@ virTPMCreateCancelPath(const char *devpath)
|
|||||||
VIR_FREE(path);
|
VIR_FREE(path);
|
||||||
}
|
}
|
||||||
if (!path)
|
if (!path)
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
ignore_value(VIR_STRDUP(path, "/dev/null"));
|
||||||
_("No usable sysfs TPM cancel file could be "
|
|
||||||
"found"));
|
|
||||||
} else {
|
} else {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||||
_("TPM device path %s is invalid"), devpath);
|
_("TPM device path %s is invalid"), devpath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user