mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Implement VM rebooting on AArch64
The logic to handle AArch64 system event was: SHUTDOWN and RESET were all treated as RESET. Now we handle them differently: - RESET event will trigger Vmm::vm_reboot(), - SHUTDOWN event will trigger Vmm::vm_shutdown(). Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
committed by
Rob Bradford
parent
69394c9c35
commit
093a581ee1
+2
-1
@@ -432,7 +432,8 @@ impl Vmm {
|
||||
|
||||
fn vm_reboot(&mut self) -> result::Result<(), VmError> {
|
||||
// Without ACPI, a reset is equivalent to a shutdown
|
||||
#[cfg(not(feature = "acpi"))]
|
||||
// On AArch64, before ACPI is supported, we simply jump over this check and continue to reset.
|
||||
#[cfg(all(target_arch = "x86_64", not(feature = "acpi")))]
|
||||
{
|
||||
if self.vm.is_some() {
|
||||
self.exit_evt.write(1).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user