KVM: Get support IRQ routing entry counts
Sheng Yang [Mon, 16 Mar 2009 08:33:43 +0000 (16:33 +0800)]
In capability probing ioctl.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

virt/kvm/kvm_main.c

index c427897..605697e 100644 (file)
@@ -1988,7 +1988,7 @@ static long kvm_dev_ioctl_check_extension_generic(long arg)
                return 1;
 #ifdef CONFIG_HAVE_KVM_IRQCHIP
        case KVM_CAP_IRQ_ROUTING:
-               return 1;
+               return KVM_MAX_IRQ_ROUTES;
 #endif
        default:
                break;