[PATCH v4] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

2023-09-13 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 b

Re: Re: [PATCH v3] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

2023-09-13 Thread liguang.zhang
From: "liguang.zhang" > On Mon, Jul 24, 2023 at 2:26 AM liguang.zhang <18622748...@163.com> wrote: > > > > From: "liguang.zhang" > > > > Fix the guest reboot error when using KVM > > There are two issues when rebooting a guest u

[PATCH v3] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

2023-07-23 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 b

[PATCH v2] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

2023-07-23 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 a

Re: Re: [PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

2023-07-23 Thread liguang.zhang
> On Tue, Jul 18, 2023 at 10:22???PM liguang.zhang <18622748...@163.com> wrote: > > > > 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

[PATCH v4] 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" target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host 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

Re:Re:[PATCH v4] 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" target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host 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

[PATCH v4] 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" target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host 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

[PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

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 b

[PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

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 b

[PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

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 b

[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 b

[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 b

[PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

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 b

[PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

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 b

[PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

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 b

[PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

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 b

[PATCH] target/riscv: Clearing the CSR values at reset and syncing the MPSTATE with the host

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 b

Re:Re:[PATCH v3] 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" On Sun, July 18, 2023 at 6:55 PM liguang.zhang <18622748...@163.com> wrote: > On Sun, July 10, 2023 at 9:17 alistair wrote: > > > From: "liguang.zhang" > > > > There are two issues when rebooting a guest using KVM &g

Re:Re:[PATCH v3] 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" On Sun, July 18, 2023 at 6:55 PM liguang.zhang <18622748...@163.com> wrote: > On Sun, July 10, 2023 at 9:17 alistair wrote: > > > From: "liguang.zhang" > > > > There are two issues when rebooting a guest using KVM &g

Re:Re:[PATCH v3] 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" On Sun, July 18, 2023 at 6:55 PM liguang.zhang <18622748...@163.com> wrote: > On Sun, July 10, 2023 at 9:17 alistair wrote: > > > From: "liguang.zhang" > > > > There are two issues when rebooting a guest using KVM &g

Re:Re:[PATCH v3] 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" On Sun, July 18, 2023 at 6:55 PM liguang.zhang <18622748...@163.com> wrote: > On Sun, July 10, 2023 at 9:17 alistair wrote: > > > From: "liguang.zhang" > > > > There are two issues when rebooting a guest using KVM &g

[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 a

[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,

[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,

[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,

[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

[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