]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: PPC: Expose level based interrupt cap
authorAlexander Graf <agraf@suse.de>
Mon, 30 Aug 2010 11:50:45 +0000 (13:50 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:19 +0000 (10:52 +0200)
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>
arch/powerpc/kvm/powerpc.c
include/linux/kvm.h

index 028891c0baff97a7ec24d3d772b23b6b55701e1d..2f87a1627f6cff35604f96e8e041cffd9af071ff 100644 (file)
@@ -192,6 +192,7 @@ int kvm_dev_ioctl_check_extension(long ext)
        case KVM_CAP_PPC_SEGSTATE:
        case KVM_CAP_PPC_PAIRED_SINGLES:
        case KVM_CAP_PPC_UNSET_IRQ:
+       case KVM_CAP_PPC_IRQ_LEVEL:
        case KVM_CAP_ENABLE_CAP:
        case KVM_CAP_PPC_OSI:
        case KVM_CAP_PPC_GET_PVINFO:
index 37077045970bc41b43b2ac8d1d7efa9e3885cfc0..919ae53adc5c3c18e503d89f87da6e0e89ebda41 100644 (file)
@@ -539,6 +539,7 @@ struct kvm_ppc_pvinfo {
 #define KVM_CAP_XCRS 56
 #endif
 #define KVM_CAP_PPC_GET_PVINFO 57
+#define KVM_CAP_PPC_IRQ_LEVEL 58
 
 #ifdef KVM_CAP_IRQ_ROUTING