]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RISC-V: KVM: Set initial value of hedeleg in kvm_arch_vcpu_create()
authorAnup Patel <apatel@ventanamicro.com>
Sat, 23 Aug 2025 15:59:42 +0000 (21:29 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 16 Sep 2025 05:24:08 +0000 (10:54 +0530)
commit83df1d64d663f4bf450a924cf337ff0cb7d63261
tree038a7ede761390cbf2f9c6b77ee52bbe93004399
parentb8d13949a6125c0e2e59f0c1f102a38d3c4809d1
RISC-V: KVM: Set initial value of hedeleg in kvm_arch_vcpu_create()

The hedeleg may be updated by ONE_REG interface before the VCPU
is run at least once hence set the initial value of hedeleg in
kvm_arch_vcpu_create() instead of kvm_riscv_vcpu_setup_config().

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Link: https://lore.kernel.org/r/20250823155947.1354229-2-apatel@ventanamicro.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu.c