target/riscv: Restrict KVM-specific fields from ArchCPU
commit9638cbde6c4f433b157672c0fdee783c10be45fe
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 4 Apr 2023 09:15:05 +0000 (4 11:15 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 28 Jun 2023 12:27:59 +0000 (28 14:27 +0200)
tree86ec1808b1019729afa4843ec94b80122e5cc025
parent0573997713eb0a37ab98b545794e18b868b471ea
target/riscv: Restrict KVM-specific fields from ArchCPU

These fields shouldn't be accessed when KVM is not available.

Restrict the KVM timer migration state. Rename the KVM timer
post_load() handler accordingly, because cpu_post_load() is
too generic.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-Id: <20230626232007.8933-3-philmd@linaro.org>
target/riscv/cpu.c
target/riscv/cpu.h
target/riscv/machine.c