diff options
author | Dongjiu Geng <gengdongjiu@huawei.com> | 2018-10-12 18:12:49 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2018-10-18 11:14:03 +0200 |
commit | 58bf437ff64eac8aca606e42d7e4623e40b61fa1 (patch) | |
tree | f916c878e83b333f671bf291ecad62e094481792 /virt | |
parent | arm/arm64: KVM: Rename function kvm_arch_dev_ioctl_check_extension() (diff) | |
download | linux-58bf437ff64eac8aca606e42d7e4623e40b61fa1.tar.xz linux-58bf437ff64eac8aca606e42d7e4623e40b61fa1.zip |
arm/arm64: KVM: Enable 32 bits kvm vcpu events support
The commit 539aee0edb9f ("KVM: arm64: Share the parts of
get/set events useful to 32bit") shares the get/set events
helper for arm64 and arm32, but forgot to share the cap
extension code.
User space will check whether KVM supports vcpu events by
checking the KVM_CAP_VCPU_EVENTS extension
Acked-by: James Morse <james.morse@arm.com>
Reviewed-by : Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/arm/arm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index 7c9d7b51ce89..11b98b2b0486 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -213,6 +213,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_READONLY_MEM: case KVM_CAP_MP_STATE: case KVM_CAP_IMMEDIATE_EXIT: + case KVM_CAP_VCPU_EVENTS: r = 1; break; case KVM_CAP_ARM_SET_DEVICE_ADDR: |