On Thu, Jan 31, 2019 at 10:47:29AM +0000, Paul Durrant wrote: > This patch introduces an implementation of the STIMER0-15_CONFIG/COUNT MSRs > and hence a the first SynIC message source. > > The new (and documented) 'stimer' viridian enlightenment group may be > specified to enable this feature. > > NOTE: It is necessary for correct operation that timer expiration and > message delivery time-stamping use the same time source as the guest. > The specification is ambiguous but testing with a Windows 10 1803 > guest has shown that using the partition reference counter as a > source whilst the guest is using RDTSC and the reference tsc page > does not work correctly. Therefore the time_now() function is used. > This implements the algorithm for acquiring partition reference time > that is documented in the specifiction. This requires use of 128-bit > arithmetic and hence __int128_t values are used in the calculation, > although the result is a signed 64-bit value. > > Signed-off-by: Paul Durrant <paul.durr...@citrix.com> > --- > Cc: Ian Jackson <ian.jack...@eu.citrix.com> > Cc: Wei Liu <wei.l...@citrix.com> > Cc: Andrew Cooper <andrew.coop...@citrix.com> > Cc: George Dunlap <george.dun...@eu.citrix.com> > Cc: Jan Beulich <jbeul...@suse.com> > Cc: Julien Grall <julien.gr...@arm.com> > Cc: Konrad Rzeszutek Wilk <konrad.w...@oracle.com> > Cc: Stefano Stabellini <sstabell...@kernel.org> > Cc: Tim Deegan <t...@xen.org> > Cc: "Roger Pau Monné" <roger....@citrix.com> > > v3: > - Re-worked missed ticks calculation > --- > docs/man/xl.cfg.5.pod.in | 12 +- > tools/libxl/libxl.h | 6 + > tools/libxl/libxl_dom.c | 4 + > tools/libxl/libxl_types.idl | 1 +
Acked-by: Wei Liu <wei.l...@citrix.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel