vmm: Exit VMM event loop after guest shutdown for AArch64

X86 and AArch64 work in different ways to shutdown a VM.
X86 exit VMM event loop through ACPI device;
AArch64 need to exit from CPU loop of a SystemEvent.

Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
Michael Zhao
2020-04-26 10:39:11 +08:00
committed by Rob Bradford
parent 5cd1730bc4
commit 97a1e5e1d2
2 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -365,7 +365,8 @@ impl Vmm {
#[cfg(not(feature = "acpi"))]
{
if self.vm.is_some() {
return self.vm_shutdown();
self.exit_evt.write(1).unwrap();
return Ok(());
}
}