From nobody Sun Feb 8 05:23:26 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1655577259; cv=none; d=zohomail.com; s=zohoarc; b=OftileiWVOQcyjkfdeIJO2OEjiAr19AnXBdHbwxJRn7kpfkgtXSvXa2pbvsVH6guFcCHbcTgWRZ+NuSh5JUdDrCOdmditsRMBwUM4umdHmuwm2/zxIh2xO8vaVVpdZhNSQ/gnjglqeIinGU1ghCuVsy0USKagNGkTwiOEwA0xJs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1655577259; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=i07BEx6Kjp2KJskwg9mTAS7dVamoedZ4W9B1XyoFCLs=; b=j1rTTYey12CfWFr6Nh7+JSwg51nYskUPXasEP89iASFhqrngNDCMCDUt75K4eWoQITinquRNaqXxn6dtQH6OnUuW2xFKARDmMyLEOvYyqrPK9C6Lnj3In6TW2dOFRaIJwsk9rjJX9P7B+FlD/i5b3fau06qDaKMYiFpCwzZ5TEk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1655577259647997.9026853370029; Sat, 18 Jun 2022 11:34:19 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-173-itpX0RWwNiGegtOtQBdO6w-1; Sat, 18 Jun 2022 14:32:52 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9E2E4380670D; Sat, 18 Jun 2022 18:32:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 09CFA18EAD; Sat, 18 Jun 2022 18:32:49 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 43A811947066; Sat, 18 Jun 2022 18:32:48 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0DDE21947064 for ; Sat, 18 Jun 2022 18:32:45 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id E12E92166B2A; Sat, 18 Jun 2022 18:32:44 +0000 (UTC) Received: from colepc.home (unknown [10.22.8.29]) by smtp.corp.redhat.com (Postfix) with ESMTP id BCDA02166B29; Sat, 18 Jun 2022 18:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655577258; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=i07BEx6Kjp2KJskwg9mTAS7dVamoedZ4W9B1XyoFCLs=; b=FlOo2PByzOCteHhY3rkiGSOD24FG/VsTIud0egzREiFshddQNeppgtf+MmT82Ex8+hRsMy q6Z7+FUNn/Wms8lt3aOTdV9uF2bM0I49ywKhb8zE73qdMWm1lOkTlmcwOFQslO8v2WAzzg 9kNj5UTtn5D/JvO85BtCzfzJh6AbQ5A= X-MC-Unique: itpX0RWwNiGegtOtQBdO6w-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Cole Robinson To: libvir-list@redhat.com Subject: [PATCH 1/4] qemu: validate: Drop tpm-tis arch validation Date: Sat, 18 Jun 2022 14:32:31 -0400 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cole Robinson Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1655577261255100001 Content-Type: text/plain; charset="utf-8" Checking against qemu capabilities should be enough here Resolves: https://gitlab.com/libvirt/libvirt/-/issues/321 Signed-off-by: Cole Robinson --- src/qemu/qemu_validate.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qemu_validate.c index f8aa83c1cb..db47fcaa9c 100644 --- a/src/qemu/qemu_validate.c +++ b/src/qemu/qemu_validate.c @@ -4798,12 +4798,6 @@ qemuValidateDomainDeviceDefTPM(virDomainTPMDef *tpm, =20 switch (tpm->model) { case VIR_DOMAIN_TPM_MODEL_TIS: - if (!ARCH_IS_X86(def->os.arch) && (def->os.arch !=3D VIR_ARCH_AARC= H64)) { - virReportError(VIR_ERR_CONFIG_UNSUPPORTED, - _("TPM model '%s' is only available for x86 and= aarch64 guests"), - virDomainTPMModelTypeToString(tpm->model)); - return -1; - } flag =3D QEMU_CAPS_DEVICE_TPM_TIS; break; case VIR_DOMAIN_TPM_MODEL_CRB: --=20 2.36.1