mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
* 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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user