Re: [PATCH] kvm: clear kvmclock MSR on reset

2019-10-21 Thread Paolo Bonzini
On 16/10/19 19:06, Vitaly Kuznetsov wrote: >> /* we verify if the enable bit is set... */ >> +vcpu->arch.pv_time_enabled = false; >> if (!(data & 1)) >> break; >> >> if (kvm_gfn_to_hva_cache_init(vcpu->kvm, >>

Re: [PATCH] kvm: clear kvmclock MSR on reset

2019-10-16 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > After resetting the vCPU, the kvmclock MSR keeps the previous value but it is > not enabled. This can be confusing, so fix it. > > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/x86.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/arch

[PATCH] kvm: clear kvmclock MSR on reset

2019-10-10 Thread Paolo Bonzini
After resetting the vCPU, the kvmclock MSR keeps the previous value but it is not enabled. This can be confusing, so fix it. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c inde