add aarch64 cpu value

This commit is contained in:
wang--ge 2021-10-12 09:56:39 +08:00
parent 524d26a6da
commit c6195b4b7d
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 19da779d059b5595644c7e7145f8475a83c0b29c Mon Sep 17 00:00:00 2001
From: wangge <wangge20@huawei.com>
Date: Sat, 9 Oct 2021 10:33:48 +0800
Subject: [PATCH] add aarch64 cpu value
---
lib/vdsm/cpuinfo.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/vdsm/cpuinfo.py b/lib/vdsm/cpuinfo.py
index b24d906..2f9d889 100644
--- a/lib/vdsm/cpuinfo.py
+++ b/lib/vdsm/cpuinfo.py
@@ -87,6 +87,7 @@ def _cpuinfo():
elif key == 'model name': # x86_64
fields['model'] = value
elif key == 'CPU part': # aarch64
+ value = "asimd" if value == "0xd01" else value
fields['model'] = value
elif re.match(r'processor \d+', key): # s390
match = re.search(r'\bmachine\s*=\s*(\w+)', value)
--
2.27.0

View File

@ -57,7 +57,7 @@ Group: Applications/System
License: GPLv2+
Url: http://www.ovirt.org/develop/developer-guide/vdsm/vdsm/
Source0: %{vdsm_name}-%{version}.tar.gz
Patch1: 0001-add-aarch64-cpu-value.patch
%{!?_licensedir:%global license %%doc}
BuildRequires: openssl
@ -574,6 +574,7 @@ Gluster plugin enables VDSM to serve Gluster functionalities.
%prep
%setup -q
%patch1 -p1
%build
%if 0%{?enable_autotools}