Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1523722
| From | Radim Krčmář <rkrcmar@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3] KVM: x86: do not go through vcpu in __get_kvmclock_ns |
| Date | 2016-11-16 19:20 +0100 |
| Message-ID | <sEcYp-6si-27@gated-at.bofh.it> (permalink) |
| References | <sEclH-5WJ-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2016-11-16 18:31+0100, Paolo Bonzini: > Going through the first VCPU is wrong if you follow a KVM_SET_CLOCK with > a KVM_GET_CLOCK immediately after, without letting the VCPU run and > call kvm_guest_time_update. > > To fix this, compute the kvmclock value ourselves, using the master > clock (tsc, nsec) pair as the base and the host CPU frequency as > the scale. > > Reported-by: Marcelo Tosatti <mtosatti@redhat.com> > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> > --- Looks good, thanks! Planned for 4.9-rc6.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3] KVM: x86: do not go through vcpu in __get_kvmclock_ns Paolo Bonzini <pbonzini@redhat.com> - 2016-11-16 18:40 +0100
Re: [PATCH v3] KVM: x86: do not go through vcpu in __get_kvmclock_ns Radim Krčmář <rkrcmar@redhat.com> - 2016-11-16 19:20 +0100
Re: [PATCH v3] KVM: x86: do not go through vcpu in __get_kvmclock_ns Marcelo Tosatti <mtosatti@redhat.com> - 2016-11-17 12:50 +0100
Re: [PATCH v3] KVM: x86: do not go through vcpu in __get_kvmclock_ns Paolo Bonzini <pbonzini@redhat.com> - 2016-11-17 18:10 +0100
csiph-web