mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
This patch optionally re-instates support for the partition time reference counter that was previously introduced by commite36cd2cdc9and reverted by commit1cd4fab14c. The previous implementation was non-optional and flawed. This implementation uses the tsc of vcpu0, which is preserved across save/restore as part of the architectural state, and then converts that to a 100ns tick using the domain's tsc_khz. Signed-off-by: Paul Durrant <paul.durrant@citrix.com> Cc: Keir Fraser <keir@xen.org> Acked-by: Jan Beulich <jbeulich@suse.com> Cc: Ian Campbell <ian.campbell@citrix.com> Cc: Ian Jackson <ian.jackson@eu.citrix.com> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Cc: Christoph Egger <chegger@amazon.de> Acked-by: Ian Campbell <ian.campbell@citrix.com>