|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 0/2] xen/riscv: make machine_restart() reboot
Hello! First of all, thanks for contributing on Xen for riscv! > On RISC-V, machine_restart() ignores its delay and powers off instead > of rebooting, so a panic's "Reboot in five seconds..." ends in an > immediate power-off. > > Patch 1 implements udelay() using the time CSR, as Linux does. Until > the timebase frequency is known, it returns without waiting. > > Patch 2 uses the SBI SRST extension, when present, to reboot after the > delay. Without SRST, it falls back to the legacy SHUTDOWN call as > before, now after the delay. > > Side effects: > - A panic that recurs early in every boot (e.g. "-cpu rv64,svpbmt=off" > on QEMU virt) is now a reboot loop. "noreboot" still powers off. > - A panic in the RISC-V QEMU smoke test now reboots until the test > times out. I can add -no-reboot to its QEMU command, as the Arm > smoke tests do, if that's wanted. I'm ok to align with x86 and arm on that point. -- Baptiste Le Duc <baptiste.le-duc@xxxxxxxxxx>
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |