Skip to content

Conversation

@visitorckw
Copy link

Implement system reset and power off for the qemu-virt-m68k platform by utilizing the virt-ctrl MMIO device.

Previously, this platform lacked a specific platform_halt() implementation, causing it to fall back to the default behavior of spinning indefinitely. As a result, commands like 'reboot' or 'poweroff' would cause the kernel to hang with a "HALT: spinning forever" message instead of actually exiting or restarting the QEMU instance.

Introduce the necessary virt-ctrl register definitions and command codes, and implements the platform_halt() callback to trigger the appropriate hardware reset and halt signals via the MMIO interface.

Implement system reset and power off for the qemu-virt-m68k platform
by utilizing the virt-ctrl MMIO device.

Previously, this platform lacked a specific platform_halt()
implementation, causing it to fall back to the default behavior of
spinning indefinitely. As a result, commands like 'reboot' or
'poweroff' would cause the kernel to hang with a "HALT: spinning
forever" message instead of actually exiting or restarting the QEMU
instance.

Introduce the necessary virt-ctrl register definitions and command
codes, and implements the platform_halt() callback to trigger the
appropriate hardware reset and halt signals via the MMIO interface.

Signed-off-by: Kuan-Wei Chiu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant