From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Subject: Re: [v2] KVM: PPC: Use exported tb_to_ns() function in decrementer emulation Date: Wed, 31 Oct 2018 16:42:59 +1100 (AEDT) Message-ID: <42lHLC4gsjz9sNC@ozlabs.org> References: <20181020095455.GA12489@blackberry> Cc: Michael Ellerman , linuxppc-dev@ozlabs.org To: Paul Mackerras , kvm@vger.kernel.org, kvm-ppc@vger.kernel.org Return-path: In-Reply-To: <20181020095455.GA12489@blackberry> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" List-Id: kvm.vger.kernel.org On Sat, 2018-10-20 at 09:54:55 UTC, Paul Mackerras wrote: > This changes the KVM code that emulates the decrementer function to do > the conversion of decrementer values to time intervals in nanoseconds > by calling the tb_to_ns() function exported by the powerpc timer code, > in preference to open-coded arithmetic using values from the > decrementer_clockevent struct. Similarly, the HV-KVM code that did > the same conversion using arithmetic on tb_ticks_per_sec also now > uses tb_to_ns(). > > Signed-off-by: Paul Mackerras Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/c43befca86ae35cc82bd889484bd17 cheers