[PATCH v2 2/6] RISC-V: KVM: Add kvm_vcpu_config
Andrew Jones
ajones at ventanamicro.com
Fri Jul 21 01:53:25 PDT 2023
On Fri, Jul 21, 2023 at 01:24:35PM +0530, Mayuresh Chitale wrote:
> Add a placeholder for all registers such as henvcfg, hstateen etc
> which have 'static' configurations depending on extensions supported by
> the guest. The values are derived once and are then subsequently written
> to the corresponding CSRs while switching to the vcpu.
>
> Signed-off-by: Mayuresh Chitale <mchitale at ventanamicro.com>
> ---
> arch/riscv/include/asm/kvm_host.h | 7 +++++++
> arch/riscv/kvm/vcpu.c | 27 ++++++++++++++-------------
> 2 files changed, 21 insertions(+), 13 deletions(-)
>
Reviewed-by: Andrew Jones <ajones at ventanamicro.com>
More information about the linux-riscv
mailing list