Re: [v2] KVM: PPC: Use exported tb_to_ns() function in decrementer emulation

2018-10-30 Thread Michael Ellerman
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

[PATCH v2] KVM: PPC: Use exported tb_to_ns() function in decrementer emulation

2018-10-20 Thread Paul Mackerras
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