On 5/29/24 17:51, Sebastian Ott wrote:
On Wed, 29 May 2024, Eric Auger wrote:but isn't it overwritten through the .reset=reset_ctr() that is
@@ -3557,6 +3557,13 @@ void kvm_reset_sys_regs(struct kvm_vcpu *vcpu)at this stage of the reading, why is the above check needed?
struct kvm *kvm = vcpu->kvm;
unsigned long i;
+ if (!kvm_vcpu_initialized(vcpu))
To make sure that a later call to this function doesn't overwrite
the value provided by userspace. (See e016333745c "KVM: arm64: Only
reset vCPU-scoped feature ID regs once").
populated in next patch?