diff options
author | Steven Price | 2019-10-21 16:28:18 +0100 |
---|---|---|
committer | Marc Zyngier | 2019-10-21 19:20:28 +0100 |
commit | 8564d6372a7d8a6d440441b8ed8020f97f744450 (patch) | |
tree | 1ec19f1184aafb3ccfe9574f760115e170b5cb16 /lib/fdt.c | |
parent | cac0f1b7285eaaf9a186c618c3a7304d82ed5493 (diff) |
KVM: arm64: Support stolen time reporting via shared structure
Implement the service call for configuring a shared structure between a
VCPU and the hypervisor in which the hypervisor can write the time
stolen from the VCPU's execution time by other tasks on the host.
User space allocates memory which is placed at an IPA also chosen by user
space. The hypervisor then updates the shared structure using
kvm_put_guest() to ensure single copy atomicity of the 64-bit value
reporting the stolen time in nanoseconds.
Whenever stolen time is enabled by the guest, the stolen time counter is
reset.
The stolen time itself is retrieved from the sched_info structure
maintained by the Linux scheduler code. We enable SCHEDSTATS when
selecting KVM Kconfig to ensure this value is meaningful.
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'lib/fdt.c')
0 files changed, 0 insertions, 0 deletions