mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
5cd1730bc4
commit
97a1e5e1d2
+2
-1
@@ -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(());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user