Automated cherry pick of #24126: feat(region,host): riscv64 cpu arch support (#24174)

* feat(region,host): riscv64 cpu arch support

* fix(region,host): compatible riscv64

* fix(host): add qemu v10.0.7 support
This commit is contained in:
wanyaoqi
2026-02-01 20:27:12 +08:00
committed by GitHub
parent 7d4245c677
commit c005337eed
35 changed files with 459 additions and 66 deletions
@@ -61,15 +61,20 @@ func (f *CPUPredicate) Execute(ctx context.Context, u *core.Unit, c core.Candida
archMatch := true
isArmHost := getter.IsArmHost()
isRiscvHost := getter.IsRISCVHost()
if d.Hypervisor != compute.HYPERVISOR_POD {
if apis.IsARM(d.OsArch) {
// process arm64 host
if !isArmHost {
archMatch = false
}
} else if apis.IsRISCV(d.OsArch) {
if !isRiscvHost {
archMatch = false
}
} else {
// process x86_64 host
if isArmHost {
if isArmHost || isRiscvHost {
archMatch = false
}
}