Skip to content

Commit a355c85

Browse files
Lai Jiangshanavikivity
authored andcommitted
KVM: return true when user space query KVM_CAP_USER_NMI extension
userspace may check this extension in runtime. Signed-off-by: Lai Jiangshan <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
1 parent 61cfab2 commit a355c85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,7 @@ int kvm_dev_ioctl_check_extension(long ext)
19411941
case KVM_CAP_NOP_IO_DELAY:
19421942
case KVM_CAP_MP_STATE:
19431943
case KVM_CAP_SYNC_MMU:
1944+
case KVM_CAP_USER_NMI:
19441945
case KVM_CAP_REINJECT_CONTROL:
19451946
case KVM_CAP_IRQ_INJECT_STATUS:
19461947
case KVM_CAP_ASSIGN_DEV_IRQ:

0 commit comments

Comments
 (0)