aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2010-08-30 07:50:45 -0400
committerAvi Kivity <avi@redhat.com>2010-10-24 04:52:19 -0400
commit7b4203e8cb5c5d9bc49da62b7a6fa4ba876a1b3f (patch)
treeb14c7ef749a8ec5c5b11b958a94ad25b19a3e6d4
parent17bd158006a33615270f9dba15c62f49bd447435 (diff)
KVM: PPC: Expose level based interrupt cap
Now that we have all the level interrupt magic in place, let's expose the capability to user space, so it can make use of it! Signed-off-by: Alexander Graf <agraf@suse.de>
-rw-r--r--arch/powerpc/kvm/powerpc.c1
-rw-r--r--include/linux/kvm.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c
index 028891c0baff..2f87a1627f6c 100644
--- a/arch/powerpc/kvm/powerpc.c
+++ b/arch/powerpc/kvm/powerpc.c
@@ -192,6 +192,7 @@ int kvm_dev_ioctl_check_extension(long ext)
192 case KVM_CAP_PPC_SEGSTATE: 192 case KVM_CAP_PPC_SEGSTATE:
193 case KVM_CAP_PPC_PAIRED_SINGLES: 193 case KVM_CAP_PPC_PAIRED_SINGLES:
194 case KVM_CAP_PPC_UNSET_IRQ: 194 case KVM_CAP_PPC_UNSET_IRQ:
195 case KVM_CAP_PPC_IRQ_LEVEL:
195 case KVM_CAP_ENABLE_CAP: 196 case KVM_CAP_ENABLE_CAP:
196 case KVM_CAP_PPC_OSI: 197 case KVM_CAP_PPC_OSI:
197 case KVM_CAP_PPC_GET_PVINFO: 198 case KVM_CAP_PPC_GET_PVINFO:
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 37077045970b..919ae53adc5c 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -539,6 +539,7 @@ struct kvm_ppc_pvinfo {
539#define KVM_CAP_XCRS 56 539#define KVM_CAP_XCRS 56
540#endif 540#endif
541#define KVM_CAP_PPC_GET_PVINFO 57 541#define KVM_CAP_PPC_GET_PVINFO 57
542#define KVM_CAP_PPC_IRQ_LEVEL 58
542 543
543#ifdef KVM_CAP_IRQ_ROUTING 544#ifdef KVM_CAP_IRQ_ROUTING
544 545