From nobody Mon Feb 9 12:15:27 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.74 as permitted sender) client-ip=216.205.24.74; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-74.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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=1585304536; cv=none; d=zohomail.com; s=zohoarc; b=ObVKqtCf+IXx3DLgsa8u63ELM+OGM/qR+3aiv7qWqxW2DYxf2eT14u/UJTSWytrGg11rHfGxNXjbcNHtBGJEMTK3fxnp0c6JnJYmYPQ20D5PQXdYHgMoGD9C83lRBK+a4dECUfA7XOZhnX2ELXFTZ2qplJCeGyDRexm4ROBP2dc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585304536; 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=R3F1pWR3Mv7WFywec846suEIFCJmt8xcEPWRf4lnYv4=; b=hy7uoGAeqKGgPd/ZLsPRPgdyI9bzeDyddHKZ6bsx1f6xLjLUgAS6XE8lE6URL1MdWIGyrgC1et4WyLfRArk4VIsrW+i+5XNEhvWbzr0Z/E1Zg+MmZvoVhsLFGjE0cg9A9CjUrHajDL9DQtn51/fFx/UkmXg9EjYisk2gtjP5n44= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.74 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-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by mx.zohomail.com with SMTPS id 158530453677239.847564556386146; Fri, 27 Mar 2020 03:22:16 -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-155-SID0WKY6MLm58L3cHScdrA-1; Fri, 27 Mar 2020 06:22:11 -0400 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 043FB800D48; Fri, 27 Mar 2020 10:22:06 +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 C86925C545; Fri, 27 Mar 2020 10:22:05 +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 21D4E18089CE; Fri, 27 Mar 2020 10:22:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 02R8ssUk030037 for ; Fri, 27 Mar 2020 04:54:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id EAD8C2038B82; Fri, 27 Mar 2020 08:54:53 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E71A12038B80 for ; Fri, 27 Mar 2020 08:54:51 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (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 2E3A6101A55E for ; Fri, 27 Mar 2020 08:54:51 +0000 (UTC) Received: from qq.com (out203-205-221-252.mail.qq.com [203.205.221.252]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-486-ZR0zCbZbMcGfCyUIWGEvkA-1; Fri, 27 Mar 2020 04:54:48 -0400 Received: from localhost.localdomain ([111.21.171.11]) by newxmesmtplogicsvrsza3.qq.com (NewEsmtp) with SMTP id D1E3CE25; Fri, 27 Mar 2020 16:52:30 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585304535; 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=R3F1pWR3Mv7WFywec846suEIFCJmt8xcEPWRf4lnYv4=; b=F8CCf4avDAOnLdLjuB+928op7ipQvHnrIhe4A5l/O1Sl8c3RbpXqeG7JlhCaTEr7Fba1F2 dPFuDx44ojZD3YCtyBIC7oatLSRma8VTpfix3uvEBfOI/G0bOF9DvomIXkp4jWIVFtcsRe pT8jgsoVl02Nj0yDW8qqp+wMKuSSI/A= X-MC-Unique: SID0WKY6MLm58L3cHScdrA-1 X-MC-Unique: ZR0zCbZbMcGfCyUIWGEvkA-1 X-QQ-mid: xmsmtpt1585299174tqopp7qf3 X-QQ-XMAILINFO: MLSNMIPdezDA66Ktkfj/4FehH7kY5i6oCpG7GGc2CjNoBrGt88sMe2FvBUFlVj IKhD693F9u3s5N0axjDJojAXa1GHZkvKagcvo1wKzoUZdR+cvr0yK3JzqsWIv7YDvQMBIL+aLmb+ S2QNFcBoI7oLkmuOUmSzrCOM8yrAfw1Ygc3FENQWmd1BzZyZcjAKs/GZEz0Y7+5krY7vUfC3cVEw 9tAqDvthFTcC1bwL8+cHnYy2/XsW6ZWAcimHSnKwuG9p4Ai0tRyGuu7U4CDR4hWSH7QmqtbdB1I0 tj5U9hZQHCuwPT3eqHjkTX2CUoKGaivWfZytmlUldMnLnb8R32iyR2+nH4D5+aG2tgKdS3J8UpnY Oqa8aayslqn5f8PCGc+EydH5gYrXN3pN7ak9+A2psvNWCD8r+lvRmXBmz2kua469YqzaAl85Vayc CCQSiyLrzVT/1HMx+rSlJM5TaxdECchzMryyF7n713zTPbwSxYevs3Gxz8D0BVbag+NsIR/f2vdT a9VWUhjzCL405VWdCEz2vxdpwlA/3J87S2fYjnJc27DmaCrvyAl8XAC00ASfRFXB65XSUWhrSve0 WNYziFZw6a18iGPwMw6LoZXFXOcWZg3XmtGHLZ4yd4L5TwRn49iRo1qbIrUsh4BZDoKhg= From: Zhenyu Zheng To: libvir-list@redhat.com Subject: [PATCH 2/5] cpu: Introduce virCPUarmData to virCPUData Date: Fri, 27 Mar 2020 16:52:19 +0800 Message-Id: <20200327085220.1811-3-zheng.zhenyu@foxmail.com> In-Reply-To: <20200327085220.1811-1-zheng.zhenyu@foxmail.com> References: <20200327085220.1811-1-zheng.zhenyu@foxmail.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 02R8ssUk030037 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Fri, 27 Mar 2020 06:21:59 -0400 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.16 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/cpu.h | 2 ++ src/cpu/cpu_arm_data.h | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/cpu/cpu_arm_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..000a3c282f --- /dev/null +++ b/src/cpu/cpu_arm_data.h @@ -0,0 +1,32 @@ +/* + * cpu_arm_data.h: 64-bit arm CPU specific data + * + * Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. + * + * 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 { + char *vendor_id; + char *model_name; + char *features; +}; --=20 2.26.0.windows.1