mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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:
parent
d428c7f5a7
commit
5aec476e2e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user