Skip to content

Commit 58bf437

Browse files
gengdongjiu1Marc Zyngier
authored andcommitted
arm/arm64: KVM: Enable 32 bits kvm vcpu events support
The commit 539aee0 ("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>
1 parent 375bdd3 commit 58bf437

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

arch/arm64/kvm/reset.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ int kvm_arch_vm_ioctl_check_extension(struct kvm *kvm, long ext)
8686
break;
8787
case KVM_CAP_SET_GUEST_DEBUG:
8888
case KVM_CAP_VCPU_ATTRIBUTES:
89-
case KVM_CAP_VCPU_EVENTS:
9089
r = 1;
9190
break;
9291
case KVM_CAP_ARM_VM_IPA_SIZE:

virt/kvm/arm/arm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
213213
case KVM_CAP_READONLY_MEM:
214214
case KVM_CAP_MP_STATE:
215215
case KVM_CAP_IMMEDIATE_EXIT:
216+
case KVM_CAP_VCPU_EVENTS:
216217
r = 1;
217218
break;
218219
case KVM_CAP_ARM_SET_DEVICE_ADDR:

0 commit comments

Comments
 (0)