[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Xen clocksource and PV shim


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Igor Druzhinin <igor.druzhinin@xxxxxxxxxx>
  • Date: Thu, 30 Jan 2020 23:14:12 +0000
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=igor.druzhinin@xxxxxxxxxx; spf=Pass smtp.mailfrom=igor.druzhinin@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>
  • Delivery-date: Thu, 30 Jan 2020 23:14:33 +0000
  • Ironport-sdr: PGm2Ne06FXUWfhT+GezyA+yhsX97uXi/ANmJCbfESa3FytjgqgRCcNIHF/otByf/vOSR1ZkbcR qngs0gVFP5OQAlPReO7yNwg2yLablA2NxyW27QlOt6ClzZZPYVK/qJ1+uPx5U28Kw++NuSaXVj iNGBzS9tarcT+ILrbvNW2I3IYuu17NHLuVcPRkKrFILMUyHx8SLbMT1bSQ5T4fHMbMmvWU1Qk0 OzPJrLaI8BRjQ7pcmHYpsIxtABOUkOE8glK2JOG/+izL4yqPF2Tj1bXhtrYq0kqI6lqD9E6lYj Q18=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

I was debugging constant freezes of PV shim on AMD hardware
after going out of a long suspend. As it turned out the root cause
of this is platform time jumping forward to the amount of time
spent in suspended state. On Intel this issue is papered over
by CONSTANT_TSC being set which avoids CPU time sync with
platform time.

Upon further examination it appears that jumping is baked
into the implementation of L0 Xen and there is no seemingly
straight forward way to extract stable continuous rate out
of what we have.

I expect this is a known issue with Xen PV clock as I found
this almost immediately: https://wiki.debian.org/Xen/Clocksource
Currently I don't understand how in that case Xen clock source
could be suitable as a platform timer for nested Xen.

Is my understanding of the situation correct? Could it be
fixed in L0 Xen or it's already backed into the ABI? Should
we keep Xen platform timer in the source code then? Does using
alternative clock source for PV shim make sense?

Igor

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.