mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-04 16:13:49 +00:00
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:
parent
cf463b88b7
commit
3509b5bf4a
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user