arm64: KVM: Introduce per-vcpu kvm device controls
authorShannon Zhao <shannon.zhao@linaro.org>
Mon, 11 Jan 2016 12:56:17 +0000 (20:56 +0800)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:21 +0000 (18:34 +0000)
commitf577f6c2a6a5ccabe98061f256a1e2ff468d5e93
tree278bd52115efb03e8d23ab4f80969a9bd1d6dab3
parent808e738142e7086ef793ebf9797099c392894e65
arm64: KVM: Introduce per-vcpu kvm device controls

In some cases it needs to get/set attributes specific to a vcpu and so
needs something else than ONE_REG.

Let's copy the KVM_DEVICE approach, and define the respective ioctls
for the vcpu file descriptor.

Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Documentation/virtual/kvm/api.txt
Documentation/virtual/kvm/devices/vcpu.txt [new file with mode: 0644]
arch/arm/kvm/arm.c
arch/arm64/kvm/reset.c
include/uapi/linux/kvm.h