SPECS: cloud-hypervisor: update to 51.1 with RISC-V KVM fixes#409
SPECS: cloud-hypervisor: update to 51.1 with RISC-V KVM fixes#409wangyf0611 wants to merge 1 commit into
Conversation
Signed-off-by: isrc-riscv-port <riscv-port@isrc.iscas.ac.cn>
misaka00251
left a comment
There was a problem hiding this comment.
Hello,
Thank you for your contribution.
However, we don't accept Rust crate vendor dependency tarballs in our repository. Please package these Rust crates separately. We offer an automatic program for this; please check the documentation.
Additionally, could you clarify the purpose of declaring BuildSystem if it is not being used at all?
Thank you.
| Summary: Virtual Machine Monitor that runs on top of KVM | ||
| License: (Apache-2.0 OR BSD-3-Clause) AND CC-BY-4.0 | ||
| URL: https://github.com/cloud-hypervisor/cloud-hypervisor | ||
| VCS: git:https://github.com/cloud-hypervisor/cloud-hypervisor.git |
There was a problem hiding this comment.
If the URL tag already directs to the source repository, the VCS tag may be omitted.
| Source0: %{url}/archive/refs/tags/v%{upstream_tag}.tar.gz#/%{name}-%{version}.tar.gz | ||
| #!RemoteAsset: sha256:b3b388773a8cd6e4c06750ab77b858a00201fc8a52e204dcedb46959a049ad5d | ||
| Source1: https://git.openruyi.cn/jiayi/cloud-hypervisor/releases/download/vendor-v%{upstream_tag}/%{name}-%{version}-vendor.tar.zst | ||
| ExclusiveArch: x86_64 riscv64 |
There was a problem hiding this comment.
There's no need to do this.
|
|
||
| BuildRequires: binutils | ||
| BuildRequires: cargo >= 1.89.0 | ||
| BuildRequires: gcc |
There was a problem hiding this comment.
There is no need for us to explicitly include BuildRequires: gcc.
| Requires: bash | ||
| Requires: glibc | ||
| Requires: libcap |
There was a problem hiding this comment.
Please specify the reason for deleting these Requires.
| %ifarch x86_64 | ||
| %define rust_def_target x86_64-unknown-linux-gnu | ||
| %define cargo_pkg_feature_opts --no-default-features --features "mshv,kvm" -p cloud-hypervisor | ||
| %global rust_def_target x86_64-unknown-linux-gnu | ||
| %global cargo_pkg_feature_opts --no-default-features --features "mshv,kvm" -p cloud-hypervisor | ||
| %endif | ||
|
|
||
| %ifarch riscv64 | ||
| %define rust_def_target riscv64gc-unknown-linux-gnu | ||
| %define cargo_pkg_feature_opts --no-default-features --features "kvm" -p cloud-hypervisor | ||
| %global rust_def_target riscv64gc-unknown-linux-gnu | ||
| %global cargo_pkg_feature_opts --no-default-features --features "kvm" -p cloud-hypervisor | ||
| %endif |
There was a problem hiding this comment.
Please position %global variables at the beginning of the Name: section.
| %description | ||
| Cloud Hypervisor is an open source Virtual Machine Monitor (VMM) that runs on | ||
| top of KVM. The project focuses on exclusively running modern, cloud workloads, | ||
| on top of a limited set of hardware architectures and platforms. Cloud | ||
| workloads refers to those that are usually run by customers inside a cloud | ||
| provider. For our purposes this means modern Linux* distributions with most I/O | ||
| handled by paravirtualised devices (i.e. virtio), no requirement for legacy | ||
| devices and recent CPUs and KVM. | ||
| Cloud Hypervisor is an open source Virtual Machine Monitor that runs on top of | ||
| KVM. The project focuses on modern cloud workloads using paravirtualized | ||
| devices, a small device model, and architecture support for x86_64 and RISC-V. |
There was a problem hiding this comment.
Please specify the reason for replacing the whole %description block.
| %setup -q -n %{name}-%{upstream_tag} | ||
| %patch -P 0 -p1 | ||
| %patch -P 1 -p1 | ||
| %patch -P 2 -p1 |
| # the default package build chroot. | ||
|
|
||
| %files | ||
| %defattr(-,root,root,-) |
There was a problem hiding this comment.
Please specify the reason for deleting this line.
| %license LICENSES/Apache-2.0.txt | ||
| %license LICENSES/BSD-3-Clause.txt | ||
| %license LICENSES/CC-BY-4.0.txt | ||
| %doc README.md |
There was a problem hiding this comment.
| %license LICENSES/Apache-2.0.txt | |
| %license LICENSES/BSD-3-Clause.txt | |
| %license LICENSES/CC-BY-4.0.txt | |
| %doc README.md | |
| %doc README.md | |
| %license LICENSES/Apache-2.0.txt | |
| %license LICENSES/BSD-3-Clause.txt | |
| %license LICENSES/CC-BY-4.0.txt |
| # SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) | ||
| # SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors |
There was a problem hiding this comment.
Please do not change the year information.
Summary
Update
cloud-hypervisorto upstream baseline tagv51.1and add the RISC-VKVM fixes required for Kata Containers with Cloud Hypervisor on openRuyi.
The SPEC builds with vendored Rust crates and preserves the official package
name
cloud-hypervisor.Baseline
v51.1https://git.openruyi.cn/jiayi/cloud-hypervisor/src/branch/riscv-kata-cloud-hypervisor5f55276b29cedc946c35dd18ff3cf9a9d0ad2707Validation
v51.1withgit apply --checkandgit apply.git diff --checkon the prepared package branch.check_source_with_remoteasset.pyfor the SPEC.remoteassetify.py --dry-runin an openRuyi guest with RPM 4.20.1.AI-Assisted Contribution Disclosure
This contribution was prepared with AI assistance from Codex for SPEC formatting,
patch layout checks, command planning, and validation log consolidation. The
package changes, patch sources, checksums, branch commits, and validation
results were reviewed by the contributor. The commit message and sign-off were
set explicitly by the contributor identity.