]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - include/uapi/linux/kvm.h
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)
commit58772e9a3db72d032eeb12bc011bc5184a3925f4
treeb361c22a662a8134aa13c4351291aa891cdac647
parent8538cb22bbce5a988671b68baf0b0f9e86ca1e87
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