[PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-07-18 Thread liguang.zhang
From: "liguang.zhang" Fix the guest reboot error when using KVM There are two issues when rebooting a guest using KVM 1. When the guest initiates a reboot the host is unable to stop the vcpu 2. When running a SMP guest the qemu monitor system_reset causes a vcpu crash This can be fixed by cleari

[PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-07-18 Thread liguang.zhang
From: "liguang.zhang" Fix the guest reboot error when using KVM There are two issues when rebooting a guest using KVM 1. When the guest initiates a reboot the host is unable to stop the vcpu 2. When running a SMP guest the qemu monitor system_reset causes a vcpu crash This can be fixed by cleari

Re: Re: [PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-07-18 Thread 18622748025
On Sun, July 18, 2023 at 6:55 PM liguang.zhang <18622748...@163.com> wrote: On Sun, Jun 25, 2023 at 12:50 PM liguang.zhang <18622748...@163.com> wrote: From: "liguang.zhang" There are two issues when rebooting a guest using KVM 1. When the guest initiates a reboot the host is unable to stop the

Re: Re: [PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-07-18 Thread 18622748025
On Sun, July 18, 2023 at 6:55 PM liguang.zhang <18622748...@163.com> wrote: On Sun, Jun 25, 2023 at 12:50 PM liguang.zhang <18622748...@163.com> wrote: From: "liguang.zhang" There are two issues when rebooting a guest using KVM 1. When the guest initiates a reboot the host is unable to stop the

Re: [PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-07-09 Thread Alistair Francis
On Sun, Jun 25, 2023 at 12:50 PM liguang.zhang <18622748...@163.com> wrote: > > From: "liguang.zhang" > > There are two issues when rebooting a guest using KVM > 1. When the guest initiates a reboot the host is unable to stop the vcpu > 2. When running a SMP guest the qemu monitor system_reset cau

Re: [PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-06-24 Thread 张立广
3.com> <mailto:18622748...@163.com> Cc qemu-devel@nongnu.org , <mailto:qemu-devel@nongnu.org>pbonz...@redhat.com , <mailto:pbonz...@redhat.com>张立广 <mailto:liguang.zh...@hexintek.com> Subject Re: [PATCH] target/riscv: fix the issue of guest reboot then no response

[PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-06-24 Thread liguang.zhang
From: "liguang.zhang" There are two issues when rebooting a guest using KVM 1. When the guest initiates a reboot the host is unable to stop the vcpu 2. When running a SMP guest the qemu monitor system_reset causes a vcpu crash This can be fixed by clearing the CSR values at reset and syncing the

[PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-06-24 Thread liguang.zhang
From: "liguang.zhang" There have a issue of guest reboot bug in kvm-mode: 1. in guest shell just run the reboot, guest can't reboot success, and host kvm stop the vcpu schedual. 2. for smp guest, ctrl+a+c switch to qemu command, use system_reset command to reset the guest, then vcpu crash kern

[PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-06-24 Thread liguang.zhang
From: "liguang.zhang" There have a issue of guest reboot bug in kvm-mode: 1. in guest shell just run the reboot, guest can't reboot success, and host kvm stop the vcpu schedual. 2. for smp guest, ctrl+a+c switch to qemu command, use system_reset command to reset the guest, then vcpu crash kern

Re: [PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-06-22 Thread Alistair Francis
On Mon, Jun 12, 2023 at 11:07 PM liguang.zhang <18622748...@163.com> wrote: > > From: "liguang.zhang" Hello, thanks for the patch > > There have a issue of guest reboot bug in kvm-mode: > 1. in guest shell just run the reboot, guest can't reboot success, and host > kvm stop the vcpu schedual. >

[PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-06-12 Thread liguang.zhang
From: "liguang.zhang" There have a issue of guest reboot bug in kvm-mode: 1. in guest shell just run the reboot, guest can't reboot success, and host kvm stop the vcpu schedual. 2. for smp guest, ctrl+a+c switch to qemu command, use system_reset command to reset the guest, then vcpu crash kern

[PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-06-12 Thread liguang.zhang
From: "liguang.zhang" kernel log ```shell The system is going down NOW! Sent SIGTERM to all processes logout Sent SIGKILL to all processes Requesting system reboot ``` then no response for qemu command: system_reset: kernel log: ```shell [ 53.739556] kvm [150]: VCPU exit error -95 [ 53.739

[PATCH] target/riscv: fix the issue of guest reboot then no response or crash in kvm-mode

2023-06-12 Thread liguang.zhang
From: "liguang.zhang" kernel log ```shell reboot The system is going down NOW! Sent SIGTERM to all processes logout Sent SIGKILL to all processes Requesting system reboot ``` then no response for qemu command: system_reset: kernel log: ```shell [ 53.739556] kvm [150]: VCPU exit error -95 [