diff mbox

KVM: Get support IRQ routing entry counts

Message ID 1237192423-21890-1-git-send-email-sheng@linux.intel.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Sheng Yang March 16, 2009, 8:33 a.m. UTC
In capability probing ioctl.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
---
 virt/kvm/kvm_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Avi Kivity March 16, 2009, 9 a.m. UTC | #1
Sheng Yang wrote:
> In capability probing ioctl.
>   

Applied, thanks.  Will queue for 2.6.30 as well.
diff mbox

Patch

diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index d480a3b..2648096 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2274,7 +2274,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;