RE: [PATCH v2 12/12] target/riscv: Support virtual time context synchronization

2021-12-20 Thread Jiangyifei via
.@redhat.com; anup.pa...@wdc.com; pal...@dabbelt.com; > alistair.fran...@wdc.com; bin.m...@windriver.com; Fanliang (EulerOS) > ; Wubin (H) ; Wanghaibin (D) > ; wanbo (G) ; > limingwang (A) > Subject: Re: [PATCH v2 12/12] target/riscv: Support virtual time context > synchronization &g

Re: [PATCH v2 12/12] target/riscv: Support virtual time context synchronization

2021-12-13 Thread Richard Henderson
On 12/10/21 2:07 AM, Yifei Jiang via wrote: +static bool kvmtimer_needed(void *opaque) +{ +return kvm_enabled(); +} + + +static const VMStateDescription vmstate_kvmtimer = { +.name = "cpu/kvmtimer", +.version_id = 1, +.minimum_version_id = 1, +.needed = kvmtimer_needed, +.

Re: [PATCH v2 12/12] target/riscv: Support virtual time context synchronization

2021-12-12 Thread Anup Patel
On Fri, Dec 10, 2021 at 3:38 PM Yifei Jiang wrote: > > Add virtual time context description to vmstate_kvmtimer. After cpu being > loaded, virtual time context is updated to KVM. > > Signed-off-by: Yifei Jiang > Signed-off-by: Mingwang Li > --- > target/riscv/machine.c | 37

[PATCH v2 12/12] target/riscv: Support virtual time context synchronization

2021-12-10 Thread Yifei Jiang via
Add virtual time context description to vmstate_kvmtimer. After cpu being loaded, virtual time context is updated to KVM. Signed-off-by: Yifei Jiang Signed-off-by: Mingwang Li --- target/riscv/machine.c | 37 +++-- 1 file changed, 35 insertions(+), 2 deletions(-)