Skip to contentSkip to conversation

kvm,x86: return true when user space query KVM_CAP_USER_NMI extension

PATCH Applied Lai Jiangshan 2 participants 2 messages Dec 14, 2010 – Dec 16, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm,x86: return true when user space query KVM_CAP_USER_NMI extension

userspace may check this extension in runtime.

---

arch/x86/kvm/x86.c +1 -0
index cdac9e5..3d6b9ec 100644
@@ -1909,6 +1909,7 @@ int kvm_dev_ioctl_check_extension(long ext)
 	case KVM_CAP_NOP_IO_DELAY:
 	case KVM_CAP_MP_STATE:
 	case KVM_CAP_SYNC_MMU:
+	case KVM_CAP_USER_NMI:
 	case KVM_CAP_REINJECT_CONTROL:
 	case KVM_CAP_IRQ_INJECT_STATUS:
 	case KVM_CAP_ASSIGN_DEV_IRQ:
Applied
#1 lore raw
Quoted 2 lines · Lai Jiangshan

userspace may check this extension in runtime.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function