From nobody Tue Feb 10 08:01:06 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1585818308; cv=none; d=zohomail.com; s=zohoarc; b=P3w5gYpjsGaZAX4QBYguPsMJ8f+1j/374J4RTCURpkUWSZWnOyUjfE69M7asnMDRXVIoIm6QwwUHq+QJ9A+eyJS9FcQ3YgZgbQNfUucdJGEsPTOy7U/RQEQoBsuvd/ui6uTukplTRiu0kVQVDOwaYkjpirTUAr8KBZqlAF6kEA0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585818308; 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=lJBpsQOXx7KI+rCTFuVX+OF2/2cH6ITU1l4nF2HnztoNPiOjzMj7QP4c0x1q4me0Nj12o97/9KhHFrmMRDco3xfs17Q8CysYwzMwgTmYVFkG4KhypqfDUPytdTlUyqxEq1q7uLnvvXxYY87mTr9EJ1QasovPeyJ2rxcJcf+BHGs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1585818308506557.934244667401; Thu, 2 Apr 2020 02:05:08 -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-113-PAZRyf3dN4azvOkVvKnTeg-1; Thu, 02 Apr 2020 05:05:03 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 24A531005509; Thu, 2 Apr 2020 09:04:58 +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 D538399DFA; Thu, 2 Apr 2020 09:04:57 +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 56CED18089CF; Thu, 2 Apr 2020 09:04:57 +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 03294tFx009195 for ; Thu, 2 Apr 2020 05:04:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id 315462166B2F; Thu, 2 Apr 2020 09:04:55 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2D0422166B2B for ; Thu, 2 Apr 2020 09:04:52 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (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 A85A4800298 for ; Thu, 2 Apr 2020 09:04:52 +0000 (UTC) Received: from qq.com (out203-205-221-250.mail.qq.com [203.205.221.250]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-460-HAcwmp7LNiakNnH5055uwg-1; Thu, 02 Apr 2020 05:04:49 -0400 Received: from localhost.localdomain ([111.21.171.11]) by newxmesmtplogicsvrsza6.qq.com (NewEsmtp) with SMTP id 107BACA1; Thu, 02 Apr 2020 17:04:07 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585818306; 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=Xc6OS9Zro60LX3bKQVd42xw7ZCeq2cgfz4QcgyPBv6gaqwxYZWB7Ogw3bVSMrPs07jg1Ln J59qWIuroP5B10E6UYU3nTD40bFLjFReHcK0d7eqlcZWJZG9HQHir6Qz7xN6P9eFTic522 vJRi459KEYJ9Gom2z63fxf9mZ4oaO8U= X-MC-Unique: PAZRyf3dN4azvOkVvKnTeg-1 X-MC-Unique: HAcwmp7LNiakNnH5055uwg-1 X-QQ-mid: xmsmtpt1585818270trmvzy7bj X-QQ-XMAILINFO: MEzYI2LLVdOMA/1V3Dy8vLh7jNIGRgdFyRhWm1C9oDoSJ8UTkU+WXC2W4N45uJ O0bkfCxw+CLTgbWWpkGVixl34jmXh6zvmJVKcAlxJlcPSl5aXNdsZFFql3zEA+5/tE1kSp2gE9pz ok3wSJ7Y+i1LDcvNxOTAEFGqpe1sekefbJqeTNG9XNm6lf1B8FjVuVecF32GH1NbDLMyVTDrxZnu Io5aiHqGTPxtDa93Hh+dJ1nXlcV0SEQOGG8g5kIyKYNSw1M8iGOdtCJBYOkvc815gkOQPcVmI6jd l3wD84A4UgDd5JbKN9Pa4a0Ntb5kloUd8lj7yIZBzIS7eiS9XGhM4iQkOuTJmxq9oUcFsevMUCRk CmuBvTZzvhNgNiwtbPFYSk6Ld66z7EDxwzzQi8dqqPWGyyUN4mHB9ftbvvsIthwKEykfnKrLgCnz A9bpMfYOgdPTawKRom/yyY93HKvoDtIGcm0EHZKI/Xo7lq7dX9Kjf5WUuJeQms2GQq77jg1OAptA NBBFMNTAlpgPae91abamNqJdzvxBUPOPRaVXB1AqLym2zdi0rP98YYs3/QObQoi281swryKAc0Cs qxwETKKw9N0wOCySeDeveHj6bP/QIapOBP8LBE+3AV6JYcaaPBvjCYJn5O From: Zhenyu Zheng To: libvir-list@redhat.com Subject: [PATCH V2 2/5] cpu: Introduce virCPUarmData to virCPUData Date: Thu, 2 Apr 2020 17:03:53 +0800 Message-Id: <20200402090354.2193-3-zheng.zhenyu@foxmail.com> In-Reply-To: <20200402090354.2193-1-zheng.zhenyu@foxmail.com> References: <20200402090354.2193-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 03294tFx009195 X-loop: libvir-list@redhat.com Cc: Zhenyu Zheng , Zhenyu Zheng 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.13 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 Reviewed-by: Daniel P. Berrang=C3=A9 --- 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