From nobody Sat Feb 7 09:36:44 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1605721252; cv=none; d=zohomail.com; s=zohoarc; b=nqHJxekZjhp0nBHST+maOrpS+sWeBK9AiYFcf4EmuISFtoEdcl8CbfIwPc9ULSnqtQ/nyZ2M2+Ovckm6Zyu4OtJ5pX+9kNrW/AmtS5FMOC4jByePI8dgsS0xB/QCGhCRL60K0XjOX0XyrS9VMvG9aeEOF2jTOVTFy7/qILmaLpk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1605721252; h=Content-Type:Content-Transfer-Encoding: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=cb0dYrrRDU0WwMvlQBj9f4+qFL4/fqIjvKPwxRN1fLU=; b=gEf0deNbxOGIOvujolU1zNTZsnT3ue3u0xUIM7S/pQq1uZhobuxMY3EUf0ompH3YmZBL018Kox3rKqSXpKDPrik4FXxkh5GX+Nn1lMXbNXC6RpywaBjZvhaBdzP9Tc/MluoNm+JxYIuRxzlsMMOOSehB14ZsvO3rt01x40q6MQM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1605721252883938.7773562035815; Wed, 18 Nov 2020 09:40:52 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-39-Pzi4psz_MT2BzN0TW65OLg-1; Wed, 18 Nov 2020 12:40:48 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5B78B100F360; Wed, 18 Nov 2020 17:40:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 307525C1D7; Wed, 18 Nov 2020 17:40:41 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E9E361809C9F; Wed, 18 Nov 2020 17:40:40 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0AIHeddJ004635 for ; Wed, 18 Nov 2020 12:40:39 -0500 Received: by smtp.corp.redhat.com (Postfix) id 66CE91964E; Wed, 18 Nov 2020 17:40:39 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-41.ams2.redhat.com [10.36.115.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id 89B481A268; Wed, 18 Nov 2020 17:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1605721251; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=cb0dYrrRDU0WwMvlQBj9f4+qFL4/fqIjvKPwxRN1fLU=; b=WJudsjAQ02cT09obmDREtdM4LKjNg7CSF8Rfcx+tXZZQBbHssS7p4S8WLrni5nE6QJO5kx I8BGcEhc8u6h0TlOEFqhu8BL4R6cnUGxGJHzV5lQWQBXw43IE71XC3J0zlaXNWP66Rw/N7 ehZxCBsvT7W9brK+qBzkgQg5S0xP5nc= X-MC-Unique: Pzi4psz_MT2BzN0TW65OLg-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 07/10] tests: add fake host CPU for sparc architecture Date: Wed, 18 Nov 2020 17:39:50 +0000 Message-Id: <20201118173953.576417-8-berrange@redhat.com> In-Reply-To: <20201118173953.576417-1-berrange@redhat.com> References: <20201118173953.576417-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Signed-off-by: Daniel P. Berrang=C3=A9 --- tests/testutilshostcpus.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/testutilshostcpus.h b/tests/testutilshostcpus.h index a54b181c09..91d9c153d9 100644 --- a/tests/testutilshostcpus.h +++ b/tests/testutilshostcpus.h @@ -130,6 +130,14 @@ static virCPUDef cpuS390Data =3D { .threads =3D 1, }; =20 +static virCPUDef cpuSparcData =3D { + .type =3D VIR_CPU_TYPE_HOST, + .arch =3D VIR_ARCH_SPARC, + .sockets =3D 1, + .cores =3D 1, + .threads =3D 1, +}; + static inline virCPUDefPtr testUtilsHostCpusGetDefForModel(const char *model) { @@ -161,6 +169,8 @@ testUtilsHostCpusGetDefForArch(virArch arch) return virCPUDefCopy(&cpuS390Data); else if (arch =3D=3D VIR_ARCH_AARCH64) return virCPUDefCopy(&cpuAarch64Data); + else if (arch =3D=3D VIR_ARCH_SPARC) + return virCPUDefCopy(&cpuSparcData); =20 return NULL; } --=20 2.28.0