mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
The number of wired interrupt sources (SRCS) must be less than the KVM device's maximum interrupt identities (kvm_riscv_aia_max_ids). Platforms with smaller IMSIC capacity reject values that exceed this limit. Query KVM_DEV_RISCV_AIA_CONFIG_IDS before setting SRCS and clamp the requested value to the reported nr_ids (which equals max_ids - 1). Signed-off-by: Meng Zhuo <mengzhuo@iscas.ac.cn>