public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm,x86: return true when user space query KVM_CAP_USER_NMI extension
@ 2010-12-14  9:57 Lai Jiangshan
  2010-12-16  9:06 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Lai Jiangshan @ 2010-12-14  9:57 UTC (permalink / raw)
  To: Avi Kivity, Jan Kiszka, kvm@vger.kernel.org, LKML

userspace may check this extension in runtime.

Signed-off-by:  Lai Jiangshan <laijs@cn.fujitsu.com>
---
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:

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kvm,x86: return true when user space query KVM_CAP_USER_NMI extension
  2010-12-14  9:57 [PATCH] kvm,x86: return true when user space query KVM_CAP_USER_NMI extension Lai Jiangshan
@ 2010-12-16  9:06 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2010-12-16  9:06 UTC (permalink / raw)
  To: Lai Jiangshan; +Cc: Jan Kiszka, kvm@vger.kernel.org, LKML

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-16  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-14  9:57 [PATCH] kvm,x86: return true when user space query KVM_CAP_USER_NMI extension Lai Jiangshan
2010-12-16  9:06 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox