Re: [RFC v2 1/2] kvm: Mechanism to copy host timekeeping parameters into guest.
From: Paolo Bonzini
Date: Thu Oct 10 2019 - 06:50:48 EST
On 10/10/19 09:30, Suleiman Souhlal wrote:
> kvmclock_reset(vcpu);
>
> + if (vcpu->arch.pv_timekeeper_enabled)
> + atomic_dec(&pv_timekeepers_nr);
> +
Please make the new MSR systemwide, there's no need to have one copy per
vCPU. Also, it has to be cleared on reset. I have just sent a patch
"[PATCH] kvm: clear kvmclock MSR on reset" and CCed you, you can add the
clearing to kvmclock_reset with that patch applied.
Paolo