KVM: arm64: Add support for the KVM PTP service
authorJianyong Wu <jianyong.wu@arm.com>
Wed, 9 Dec 2020 06:09:29 +0000 (14:09 +0800)
committerMarc Zyngier <maz@kernel.org>
Wed, 7 Apr 2021 15:33:20 +0000 (16:33 +0100)
commit3bf725699bf62494b3e179f1795f08c7d749f061
treeb2f880f70fd927e430b06c2a8e5c3b35ad672fe9
parent100148d0fc7dcf8672fe0ac83f44dc5749b4da5c
KVM: arm64: Add support for the KVM PTP service

Implement the hypervisor side of the KVM PTP interface.

The service offers wall time and cycle count from host to guest.
The caller must specify whether they want the host's view of
either the virtual or physical counter.

Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201209060932.212364-7-jianyong.wu@arm.com
Documentation/virt/kvm/api.rst
Documentation/virt/kvm/arm/index.rst
Documentation/virt/kvm/arm/ptp_kvm.rst [new file with mode: 0644]
arch/arm64/kvm/arm.c
arch/arm64/kvm/hypercalls.c
include/linux/arm-smccc.h
include/uapi/linux/kvm.h