From nobody Tue Feb 10 01:15:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=foxmail.com ARC-Seal: i=1; a=rsa-sha256; t=1587539553; cv=none; d=zohomail.com; s=zohoarc; b=BErgby6TVNaqHdhqEKuU+l1Nijze+q7RGXHZ6ZNp4Ptz9sSxt/Xy2dWqpZ9Acu1Ts52IL18lYWQKnPr9ixUthwBc3SF34kZlYVDsmBlISS1JnePL2cYywwMBg/x1SB0kZ4wqZqlCI9JfEQNZa3zWOBCxbAYwdat49hHL/AyQOEw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587539553; 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=l7fWcbRa5LNrPXH6vGhaTQ9HVEF+2APNH8iT+cY3764=; b=CMt64Tow4Ja6zj8tIQ/dBnx8DvHWwBexxrp66ztOt51O9jSHPE73y5GYFfMQedFRHvb6ZOB62ci8z3SzTOQidk0xZvYAir2XsDbGsolMbQkADrpqrpe7SmA2kME0clQ4fS7g3UcDJQexHPu3LO3CRzScC2iPrW2fOhsRPzKb+ic= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1587539553386513.1391619012534; Wed, 22 Apr 2020 00:12:33 -0700 (PDT) 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-332-FwvxXY6kP56cNUUGKrkjFA-1; Wed, 22 Apr 2020 03:12:29 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A1EF6DB63; Wed, 22 Apr 2020 07:12:23 +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 744381001DDE; Wed, 22 Apr 2020 07:12:23 +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 06A7E18089CE; Wed, 22 Apr 2020 07:12:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 03M7CLw2010451 for ; Wed, 22 Apr 2020 03:12:21 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0ED702166B2B; Wed, 22 Apr 2020 07:12:21 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0A7892166B29 for ; Wed, 22 Apr 2020 07:12:18 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9AD0E8FF687 for ; Wed, 22 Apr 2020 07:12:18 +0000 (UTC) Received: from qq.com (out203-205-221-235.mail.qq.com [203.205.221.235]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-107-9S-luEBJMMKXgj1xggKTGA-1; Wed, 22 Apr 2020 03:12:16 -0400 Received: from localhost.localdomain ([111.21.171.11]) by newxmesmtplogicsvrsza5.qq.com (NewEsmtp) with SMTP id 2DD1AA27; Wed, 22 Apr 2020 15:11:29 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587539551; 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=l7fWcbRa5LNrPXH6vGhaTQ9HVEF+2APNH8iT+cY3764=; b=jQnZxKGbNd44XK9dPf8UrhI78gdSu5sypWPqWV4JjZEZ6Q9hx5m8xsM+PMCou989JVzcSd o57zCFTdw5XeMtA4qos3lhtjkJilgnnPLToKJ3UmEUuGbtEds29EySCBGi0ZbiiOSbU2YI O/zXj6k9gpETEvnA6uO1Hgirf/uBj/M= X-MC-Unique: FwvxXY6kP56cNUUGKrkjFA-1 X-MC-Unique: 9S-luEBJMMKXgj1xggKTGA-1 X-QQ-mid: xmsmtpt1587539517ty2baw5de X-QQ-XMAILINFO: M5QFJXLKESD5tvjTlGIZvL/XBwA/EgJp0V4/2KZS0QCJPECNgPxkPmdn+KZ3cp TMtmci4r+FJ5m86G/g++zlq4UH6ThBZYIzdxOm63tDKt31ADggXXVS4PqgVxCNbqTOY4vHpWeHbI Fi+piuxIAGh/PAuCgWpd5ZNCpXP414ZEHAGi8EIo+bpoEiZxl7uaaRMj65/E60RmGhUJB7iwPXF9 2WGI0mOY0EZoLR71Sbe1csE6vzITKWLYNYNP0aRYz30Ka5U2FBB5yrMgb8OhuIUzUgb0Pi+M0XVI pbaVw/dr0R8dRRNxC+b7Xh6cTuGJY7wyHYfyJ/uAkAu6RR7v1buGwaEFxG5tDOyoIKR3ZMPX5Gsx flonATLGXOVrC/fhesXDsAmSJ2EpDmTdvwNJX9jpMq4VyJr80+qu8snMm6G6AcoJHqoiBtowKdHC gqcIe/WVQZIjjPNQutAo1CV8IQBooOlOxWvqQzJIvKxYfADde8/4Bk9tjMgWg1XELK5079O/scbM iwRjAUkCX8D8VZfvMUlxeqVfM0PpjQhXbXIACRO7t7Fytjw9MZnzEa46TTkybhyPwGgx+UbvJM0Q rw1GrAqDvyhhumSIgmD49AGqUzUgRBbeeeWCXw2WvuoqbbIXsHpnTK7EbojbhBWrCjcEZkiIQq6A Tmhw== From: ZhengZhenyu To: libvir-list@redhat.com Subject: [PATCH V3 2/5] cpu: Introduce virCPUarmData to virCPUData Date: Wed, 22 Apr 2020 15:11:18 +0800 Message-Id: <20200422071119.2026-3-zheng.zhenyu@foxmail.com> In-Reply-To: <20200422071119.2026-1-zheng.zhenyu@foxmail.com> References: <20200422071119.2026-1-zheng.zhenyu@foxmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 03M7CLw2010451 X-loop: libvir-list@redhat.com Cc: Zhenyu Zheng , ZhengZhenyu 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.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Introduce virCPUarmData to virCPUData Signed-off-by: Zhenyu Zheng --- src/cpu/Makefile.inc.am | 1 + src/cpu/cpu.h | 2 ++ src/cpu/cpu_arm_data.h | 31 +++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 src/cpu/cpu_arm_data.h diff --git a/src/cpu/Makefile.inc.am b/src/cpu/Makefile.inc.am index 0abeee87b6..bea203fb5c 100644 --- a/src/cpu/Makefile.inc.am +++ b/src/cpu/Makefile.inc.am @@ -10,6 +10,7 @@ CPU_SOURCES =3D \ cpu/cpu_s390.c \ cpu/cpu_arm.h \ cpu/cpu_arm.c \ + cpu/cpu_arm_data.h \ cpu/cpu_ppc64.h \ cpu/cpu_ppc64.c \ cpu/cpu_ppc64_data.h \ diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h index f779d2be17..ec22a183a1 100644 --- a/src/cpu/cpu.h +++ b/src/cpu/cpu.h @@ -27,6 +27,7 @@ #include "cpu_conf.h" #include "cpu_x86_data.h" #include "cpu_ppc64_data.h" +#include "cpu_arm_data.h" =20 =20 typedef struct _virCPUData virCPUData; @@ -36,6 +37,7 @@ struct _virCPUData { union { virCPUx86Data x86; virCPUppc64Data ppc64; + virCPUarmData arm; /* generic driver needs no data */ } data; }; diff --git a/src/cpu/cpu_arm_data.h b/src/cpu/cpu_arm_data.h new file mode 100644 index 0000000000..cf12ca8c2e --- /dev/null +++ b/src/cpu/cpu_arm_data.h @@ -0,0 +1,31 @@ +/* + * cpu_arm_data.h: 64-bit arm CPU specific data + * + * Copyright (C) 2020 Huawei Technologies Co., Ltd. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; If not, see + * . + * + */ + +#pragma once + +#define VIR_CPU_ARM_DATA_INIT { 0 } + +typedef struct _virCPUarmData virCPUarmData; +struct _virCPUarmData { + unsigned long vendor_id; + unsigned long pvr; + char *features; +}; --=20 2.26.0.windows.1