ARM/ARM64: KVM: Advertise KVM_CAP_ARM_PSCI_0_2 to user space
authorAnup Patel <anup.patel@linaro.org>
Tue, 29 Apr 2014 05:54:25 +0000 (11:24 +0530)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:46 +0000 (17:18 +0200)
We have PSCI v0.2 emulation available in KVM ARM/ARM64
hence advertise this to user space (i.e. QEMU or KVMTOOL)
via KVM_CHECK_EXTENSION ioctl.

Signed-off-by: Anup Patel <anup.patel@linaro.org>
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit 4447a208f7fc2e2dff8c6a8df2a1fd6dd72fb3e2)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c

index 9804406ff37ec74e287bef5d1bf098c267cab7ea..354dc42b63958f90a1841d128e621970994455b3 100644 (file)
@@ -197,6 +197,7 @@ int kvm_dev_ioctl_check_extension(long ext)
        case KVM_CAP_DESTROY_MEMORY_REGION_WORKS:
        case KVM_CAP_ONE_REG:
        case KVM_CAP_ARM_PSCI:
+       case KVM_CAP_ARM_PSCI_0_2:
                r = 1;
                break;
        case KVM_CAP_COALESCED_MMIO: