ARM/ARM64: KVM: Implement KVM_ARM_PREFERRED_TARGET ioctl
authorAnup Patel <anup.patel@linaro.org>
Mon, 30 Sep 2013 08:50:07 +0000 (14:20 +0530)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:08 +0000 (17:18 +0200)
commitdf50e5da2c1c65f1db1e9186112b57a8dd0b41ae
tree4dd1153ca10ebb4dbd1a20e839bf19d73f9feba9
parent9778336fe11f088c3ddbd12714ab88f5760a1de4
ARM/ARM64: KVM: Implement KVM_ARM_PREFERRED_TARGET ioctl

For implementing CPU=host, we need a mechanism for querying
preferred VCPU target type on underlying Host.

This patch implements KVM_ARM_PREFERRED_TARGET vm ioctl which
returns struct kvm_vcpu_init instance containing information
about preferred VCPU target type and target specific features
available for it.

Signed-off-by: Anup Patel <anup.patel@linaro.org>
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit 42c4e0c77ac91505ab94284b14025e3a0865c0a5)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c
include/uapi/linux/kvm.h