KVM: riscv: Add KVM_GET_REG_LIST API support
authorHaibo Xu <haibo1.xu@intel.com>
Tue, 25 Jul 2023 08:41:38 +0000 (16:41 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 9 Aug 2023 06:45:25 +0000 (12:15 +0530)
commit031f9efafc08d68b1b672e83ee73f6ea5c69c2ef
tree682d4f167d6a663d0d54dd8d153f79c26fb02a64
parentcbc0daa67c62bcfeb45cccfc821216549566fb40
KVM: riscv: Add KVM_GET_REG_LIST API support

KVM_GET_REG_LIST API will return all registers that are available to
KVM_GET/SET_ONE_REG APIs. It's very useful to identify some platform
regression issue during VM migration.

Since this API was already supported on arm64, it is straightforward
to enable it on riscv with similar code structure.

Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Documentation/virt/kvm/api.rst
arch/riscv/include/asm/kvm_host.h
arch/riscv/kvm/vcpu.c
arch/riscv/kvm/vcpu_onereg.c