mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-07 17:26:14 +00:00
The IMSIC attr of RISC-V AIA is wrongly configured to start from 0, which would error out with `os error 22` (invalid argument). ```console Error booting VM: VmBoot(DeviceManager(CreateInterruptController(CreateAia(CreateVaia(Vaia error SetDeviceAttribute(SetDeviceAttribute(Invalid argument (os error 22)))))))) ``` `riscv_imsic_attr_of` should shift `cpu_index` by 1 here to produce correct IMSIC attr. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>