vmm: Move devices creation to Vm creation

This moves the devices creation out of the dedicated restore function
which will be eventually removed.

This factorizes the creation of all devices into a single location.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-12-01 10:32:56 +01:00
parent bccfa81368
commit 1c36065754
3 changed files with 29 additions and 19 deletions

View File

@@ -5845,12 +5845,20 @@ mod common_parallel {
event: "starting".to_string(),
device_id: None,
},
&MetaEvent {
event: "activated".to_string(),
device_id: Some("__console".to_string()),
},
&MetaEvent {
event: "activated".to_string(),
device_id: Some("__rng".to_string()),
},
&MetaEvent {
event: "restoring".to_string(),
device_id: None,
},
];
assert!(check_sequential_events_exact(
assert!(check_sequential_events(
&expected_events,
&event_path_restored
));