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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue