OSDN Git Service

KVM: PPC: Book3S HV: Ignore timebase offset on POWER9 DD1
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 6 Jun 2017 04:35:30 +0000 (14:35 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 16 Jun 2017 06:04:57 +0000 (16:04 +1000)
commit3d3efb68c19e539f0535c93a5258c1299270215f
treeb4cf49d727158d45eb463fc6c06467261abeb612
parent7ceaa6dcd8c6f59588428cec37f3c8093dd1011f
KVM: PPC: Book3S HV: Ignore timebase offset on POWER9 DD1

POWER9 DD1 has an erratum where writing to the TBU40 register, which
is used to apply an offset to the timebase, can cause the timebase to
lose counts.  This results in the timebase on some CPUs getting out of
sync with other CPUs, which then results in misbehaviour of the
timekeeping code.

To work around the problem, we make KVM ignore the timebase offset for
all guests on POWER9 DD1 machines.  This means that live migration
cannot be supported on POWER9 DD1 machines.

Cc: stable@vger.kernel.org # v4.10+
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/book3s_hv.c