RISC-V: KVM: Add ONE_REG interface for mvendorid, marchid, and mimpid
authorAnup Patel <apatel@ventanamicro.com>
Wed, 7 Dec 2022 03:47:49 +0000 (09:17 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 7 Dec 2022 03:47:49 +0000 (09:17 +0530)
commit6ebbdecff6ae00557a52539287b681641f4f0d33
tree63b97197dd765f7562b2836d5ec8889881ee0f29
parent52ec4b695dbe0552bb994c4149e9122610a76668
RISC-V: KVM: Add ONE_REG interface for mvendorid, marchid, and mimpid

We add ONE_REG interface for VCPU mvendorid, marchid, and mimpid
so that KVM user-space can change this details to support migration
across heterogeneous hosts.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/uapi/asm/kvm.h
arch/riscv/kvm/vcpu.c