!10 add aarch64 cpu value for ovirt-engine 4.4.4.1
From: @wang--ge Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
f686a02920
24
0001-add-aarch64-cpu-value.patch
Normal file
24
0001-add-aarch64-cpu-value.patch
Normal 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
|
||||
|
||||
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user