mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
RISC-V: KVM: Mark the reset callback of FWFT extension always dirties CSR
As the CSR is only flushed when the csr_dirty is set, always set the csr_dirty field in kvm_sbi_ext_fwft_reset() so the CSR change can take effect immediately. This unconditional set should be safe as all supported FWFT features change the CSR state currently. Signed-off-by: Inochi Amaoto <inochiama@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20260729232527.139183-5-inochiama@gmail.com Signed-off-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
parent
52132eec63
commit
8f9e8f8e38
|
|
@ -598,6 +598,8 @@ static void kvm_sbi_ext_fwft_reset(struct kvm_vcpu *vcpu)
|
|||
if (feature->reset)
|
||||
feature->reset(vcpu);
|
||||
}
|
||||
|
||||
vcpu->arch.csr_dirty = true;
|
||||
}
|
||||
|
||||
static void kvm_sbi_ext_fwft_validate(struct kvm_vcpu *vcpu)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user