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 using KVM > > 1. When the guest initiates a reboot the host is

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

2023-08-10 Thread Alistair Francis
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 using KVM > 1. When the guest initiates a reboot the host is unable to stop the vcpu > 2. When running a

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