qemu: validate: Drop tpm-tis arch validation

Checking against qemu capabilities should be enough here

Resolves: https://gitlab.com/libvirt/libvirt/-/issues/329

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2022-06-18 12:52:29 -04:00
parent d428c7f5a7
commit 5aec476e2e

View File

@ -4798,12 +4798,6 @@ qemuValidateDomainDeviceDefTPM(virDomainTPMDef *tpm,
switch (tpm->model) {
case VIR_DOMAIN_TPM_MODEL_TIS:
if (!ARCH_IS_X86(def->os.arch) && (def->os.arch != VIR_ARCH_AARCH64)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("TPM model '%s' is only available for x86 and aarch64 guests"),
virDomainTPMModelTypeToString(tpm->model));
return -1;
}
flag = QEMU_CAPS_DEVICE_TPM_TIS;
break;
case VIR_DOMAIN_TPM_MODEL_CRB: