]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Provide VCPU attributes for stolen time
authorSteven Price <steven.price@arm.com>
Mon, 21 Oct 2019 15:28:20 +0000 (16:28 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 21 Oct 2019 18:20:29 +0000 (19:20 +0100)
commit4993b118cb8e97ec7dc60d02c7718af450f91dd9
treeb361c22a662a8134aa13c4351291aa891cdac647
parentf767d87b1b80a5a41bbef44f4524c4f4a72e3ddb
KVM: arm64: Provide VCPU attributes for stolen time

Allow user space to inform the KVM host where in the physical memory
map the paravirtualized time structures should be located.

User space can set an attribute on the VCPU providing the IPA base
address of the stolen time structure for that VCPU. This must be
repeated for every VCPU in the VM.

The address is given in terms of the physical address visible to
the guest and must be 64 byte aligned. The guest will discover the
address via a hypercall.

Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/include/uapi/asm/kvm.h
arch/arm64/kvm/guest.c
include/uapi/linux/kvm.h
virt/kvm/arm/pvtime.c