.@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
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,
+.
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
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(-)