Skip to content

Commit 6a74470

Browse files
committed
Merge tag 'kvm-riscv-fixes-6.15-1' of https://github.com/kvm-riscv/linux into HEAD
KVM/riscv fixes for 6.15, take #1 - Add missing reset of smstateen CSRs
2 parents 92a09c4 + 87ec7d5 commit 6a74470

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/riscv/kvm/vcpu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ static void kvm_riscv_reset_vcpu(struct kvm_vcpu *vcpu)
7777
memcpy(cntx, reset_cntx, sizeof(*cntx));
7878
spin_unlock(&vcpu->arch.reset_cntx_lock);
7979

80+
memset(&vcpu->arch.smstateen_csr, 0, sizeof(vcpu->arch.smstateen_csr));
81+
8082
kvm_riscv_vcpu_fp_reset(vcpu);
8183

8284
kvm_riscv_vcpu_vector_reset(vcpu);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy