Add aarch64 architecture support

(cherry picked from commit 722d5dcb4c9b47f307c6da2659831b088baf4735)
This commit is contained in:
wang--ge 2021-11-17 11:15:39 +08:00 committed by openeuler-sync-bot
parent 15fc8f0d79
commit 8026e0cb47
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 65d18050391082503200f222f2312d9ca705ddae Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Tue, 16 Nov 2021 10:04:22 +0800
Subject: [PATCH] add aarch64 architecture support
---
lib/vdsm/virt/libvirtxml.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/vdsm/virt/libvirtxml.py b/lib/vdsm/virt/libvirtxml.py
index 51e59be..f4c1d5d 100644
--- a/lib/vdsm/virt/libvirtxml.py
+++ b/lib/vdsm/virt/libvirtxml.py
@@ -33,6 +33,7 @@ _DEFAULT_MACHINES = {
cpuarch.PPC64: 'pseries',
cpuarch.PPC64LE: 'pseries',
cpuarch.S390X: 's390-ccw-virtio',
+ cpuarch.AARCH64: 'virt',
}
--
2.27.0

View File

@ -50,7 +50,7 @@
Name: %{vdsm_name}
Version: 4.40.60.7
Release: 3
Release: 4
Summary: Virtual Desktop Server Manager
Group: Applications/System
@ -59,6 +59,7 @@ Url: http://www.ovirt.org/develop/developer-guide/vdsm/vdsm/
Source0: %{vdsm_name}-%{version}.tar.gz
Patch1: 0001-add-aarch64-cpu-value.patch
Patch2: 0002-add-get-uuid-method-for-arm.patch
Patch3: 0003-add-aarch64-architecture-support.patch
%{!?_licensedir:%global license %%doc}
BuildRequires: openssl
@ -577,6 +578,7 @@ Gluster plugin enables VDSM to serve Gluster functionalities.
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
sed -i 's/1048576/524288/g' static/usr/lib/systemd/system/dev-hugepages1G.mount
sed -i 's/pagesize=1G/pagesize=512M/g' static/usr/lib/systemd/system/dev-hugepages1G.mount
@ -1119,6 +1121,9 @@ exit 0
%endif
%changelog
* Tue Nov 16 2021 Ge Wang <wangge20@huawei.com> - 4.40.60.7-4
- Add aarch64 architecture support
* Wed Oct 13 2021 Ge Wang <wangge20@huawei.com> - 4.40.60.7-3
- Add get uuid method for arm