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

2023-09-18 Thread Alistair Francis
On Wed, Sep 13, 2023 at 7:14 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 initiates a reboot the host is unable to stop the vcpu > 2. When running a

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

2023-09-18 Thread Alistair Francis
On Wed, Sep 13, 2023 at 7:14 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 initiates a reboot the host is unable to stop the vcpu > 2. When running a

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

2023-09-18 Thread Alistair Francis
On Wed, Sep 13, 2023 at 7:14 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 initiates a reboot the host is unable to stop the vcpu > 2. When running a

[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 be fixed by cleari