hypervisor: Create vcpu before initialize AIA

Create a corresponding `vcpu` in `test_create_aia`  to capture wrongly
configured RISC-V IMSIC attr.

Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
Ruoqing He 2025-01-21 10:54:20 +08:00 committed by Rob Bradford
parent cf463b88b7
commit 3509b5bf4a

View File

@ -268,6 +268,7 @@ mod tests {
fn test_create_aia() {
let hv = crate::new().unwrap();
let vm = hv.create_vm().unwrap();
let _vcpu = vm.create_vcpu(0, None).unwrap();
assert!(KvmAiaImsics::new(&*vm, create_test_vaia_config()).is_ok());
}