|
From: | Helge Deller |
Subject: | Re: [PULL v2 1/3] target/hppa: Fix OS reboot issues |
Date: | Sun, 25 Jun 2023 13:20:34 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 |
On 6/25/23 12:07, Helge Deller wrote:
On 6/25/23 10:57, Michael Tokarev wrote:24.06.2023 14:50, Helge Deller пишет:When the OS triggers a reboot, the reset helper function sends a qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET) together with an EXCP_HLT exception to halt the CPUs. So, at reboot when initializing the CPUs again, make sure to set all instruction pointers to the firmware entry point, disable any interrupts, disable data and instruction translations, enable PSW_Q bit and tell qemu to unhalt (halted=0) the CPUs again. This fixes the various reboot issues which were seen when rebooting a Linux VM, including the case where even the monarch CPU has been virtually halted from the OS (e.g. via "chcpu -d 0" inside the Linux VM).Is this a -stable material? It applies cleanly to 8.0 and 7.2.Yes, please. At least for 8.0 I think it should be added. I didn't tested 7.2, but can do and would prefer it if could be added there too.
Just tested: The patches work nicely when applied to v7.2 as well. Could you add them to -stable (or what is the process)? Thanks, Helge
[Prev in Thread] | Current Thread | [Next in Thread] |