mbox series

[v2,0/6] Implement Hyper-V reference TSC based clock source

Message ID 20191218144233.15372-1-liuwe@microsoft.com (mailing list archive)
Headers show
Series Implement Hyper-V reference TSC based clock source | expand

Message

Wei Liu Dec. 18, 2019, 2:42 p.m. UTC
Hi all

This series adds a clock source based on Hyper-V's reference TSC. The
meat is in the last patch. I also put in some clean up patches to Xen's
viridian code per Paul's request.

With this series, Xen on Hyper-V no longer runs on emulated PIT.

(XEN) Platform timer is 2294.686MHz HYPER-V REFERENCE TSC

Wei.

Cc: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Wei Liu <liuwe@microsoft.com>
Cc: Roger Pau Monné <roger.pau@citrix.com>
Cc: Paul Durrant <pdurrant@amazon.com>

Wei Liu (6):
  x86: import hyperv-tlfs.h from Linux
  x86/viridian: drop duplicate defines from private.h and viridian.c
  x86/viridian: drop private copy of definitions from synic.c
  x86/viridian: drop private copy of HV_REFERENCE_TSC_PAGE in time.c
  x86/hyperv: extract more information from Hyper-V
  x86: implement Hyper-V clock source

 xen/arch/x86/guest/hyperv/hyperv.c      |  17 +
 xen/arch/x86/hvm/viridian/private.h     |  66 --
 xen/arch/x86/hvm/viridian/synic.c       |  68 +-
 xen/arch/x86/hvm/viridian/time.c        |  30 +-
 xen/arch/x86/hvm/viridian/viridian.c    |  23 +-
 xen/arch/x86/time.c                     | 101 +++
 xen/include/asm-x86/guest/hyperv-tlfs.h | 907 ++++++++++++++++++++++++
 xen/include/asm-x86/guest/hyperv.h      |  12 +
 8 files changed, 1070 insertions(+), 154 deletions(-)
 create mode 100644 xen/include/asm-x86/guest/hyperv-tlfs.h

--
2.20.1