]> xenbits.xensource.com Git - xen.git/commit
x86/viridian: Add partition time reference counter MSR support
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 23 Sep 2014 10:40:10 +0000 (11:40 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 23 Sep 2014 14:17:08 +0000 (15:17 +0100)
commit88f30bcdb53f5f1aaca68d610a182e97d2cc49b9
tree3b1e4001e64f0492ee73046e2bc852c596feeaf4
parent84bfbd5d7594bd59f9106b20fb405832e7376890
x86/viridian: Add partition time reference counter MSR support

This patch optionally re-instates support for the partition time reference
counter that was previously introduced by commit
e36cd2cdc9674a7a4855d21fb7b3e6e17c4bb33b and reverted by commit
1cd4fab14ce25859efa4a2af13475e6650a5506c. 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>
docs/man/xl.cfg.pod.5
tools/libxl/libxl_dom.c
tools/libxl/libxl_types.idl
xen/arch/x86/hvm/viridian.c
xen/arch/x86/time.c
xen/include/asm-x86/perfc_defn.h
xen/include/asm-x86/time.h
xen/include/public/hvm/params.h