<div dir="ltr">Introduce virCPUarmData to virCPUData<br><br>Signed-off-by: Zhenyu Zheng <<a href="mailto:zhengzhenyulixi@gmail.com">zhengzhenyulixi@gmail.com</a>><br>---<br> src/cpu/<a href="http://Makefile.inc.am">Makefile.inc.am</a> |  1 +<br> src/cpu/cpu.h           |  2 ++<br> src/cpu/cpu_arm_data.h  | 31 +++++++++++++++++++++++++++++++<br> 3 files changed, 34 insertions(+)<br> create mode 100644 src/cpu/cpu_arm_data.h<br><br>diff --git a/src/cpu/<a href="http://Makefile.inc.am">Makefile.inc.am</a> b/src/cpu/<a href="http://Makefile.inc.am">Makefile.inc.am</a><br>index 0abeee87b6..228112a3c6 100644<br>--- a/src/cpu/<a href="http://Makefile.inc.am">Makefile.inc.am</a><br>+++ b/src/cpu/<a href="http://Makefile.inc.am">Makefile.inc.am</a><br>@@ -9,6 +9,7 @@ CPU_SOURCES = \<br>  cpu/cpu_s390.h \<br>     cpu/cpu_s390.c \<br>     cpu/cpu_arm.h \<br>+      cpu/cpu_arm_data.h \<br>         cpu/cpu_arm.c \<br>      cpu/cpu_ppc64.h \<br>    cpu/cpu_ppc64.c \<br>diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h<br>index f779d2be17..ec22a183a1 100644<br>--- a/src/cpu/cpu.h<br>+++ b/src/cpu/cpu.h<br>@@ -27,6 +27,7 @@<br> #include "cpu_conf.h"<br> #include "cpu_x86_data.h"<br> #include "cpu_ppc64_data.h"<br>+#include "cpu_arm_data.h"<br> <br> <br> typedef struct _virCPUData virCPUData;<br>@@ -36,6 +37,7 @@ struct _virCPUData {<br>     union {<br>         virCPUx86Data x86;<br>         virCPUppc64Data ppc64;<br>+        virCPUarmData arm;<br>         /* generic driver needs no data */<br>     } data;<br> };<br>diff --git a/src/cpu/cpu_arm_data.h b/src/cpu/cpu_arm_data.h<br>new file mode 100644<br>index 0000000000..cf12ca8c2e<br>--- /dev/null<br>+++ b/src/cpu/cpu_arm_data.h<br>@@ -0,0 +1,31 @@<br>+/*<br>+ * cpu_arm_data.h: 64-bit arm CPU specific data<br>+ *<br>+ * Copyright (C) 2020 Huawei Technologies Co., Ltd.<br>+ *<br>+ * This library is free software; you can redistribute it and/or<br>+ * modify it under the terms of the GNU Lesser General Public<br>+ * License as published by the Free Software Foundation; either<br>+ * version 2.1 of the License, or (at your option) any later version.<br>+ *<br>+ * This library is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU<br>+ * Lesser General Public License for more details.<br>+ *<br>+ * You should have received a copy of the GNU Lesser General Public<br>+ * License along with this library;  If not, see<br>+ * <<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>>.<br>+ *<br>+ */<br>+<br>+#pragma once<br>+<br>+#define VIR_CPU_ARM_DATA_INIT { 0 }<br>+<br>+typedef struct _virCPUarmData virCPUarmData;<br>+struct _virCPUarmData {<br>+    unsigned long vendor_id;<br>+    unsigned long pvr;<br>+    char *features;<br>+};<br>-- <br>2.26.2<br></div>