2010-12-14 09:56:56

by Lai Jiangshan

[permalink] [raw]
Subject: [PATCH] kvm,x86: 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]>
---
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index cdac9e5..3d6b9ec 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -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:


2010-12-16 09:06:27

by Avi Kivity

[permalink] [raw]
Subject: Re: [PATCH] kvm,x86: return true when user space query KVM_CAP_USER_NMI extension

On 12/14/2010 11:57 AM, Lai Jiangshan wrote:
> userspace may check this extension in runtime.
>

Applied, thanks.

--
error compiling committee.c: too many arguments to function