From patchwork Mon Mar 16 08:33:43 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sheng Yang X-Patchwork-Id: 12340 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2G8XlgG012417 for ; Mon, 16 Mar 2009 08:33:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752838AbZCPIds (ORCPT ); Mon, 16 Mar 2009 04:33:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752615AbZCPIds (ORCPT ); Mon, 16 Mar 2009 04:33:48 -0400 Received: from mga11.intel.com ([192.55.52.93]:16405 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752163AbZCPIdr (ORCPT ); Mon, 16 Mar 2009 04:33:47 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 16 Mar 2009 01:30:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.38,372,1233561600"; d="scan'208";a="673222137" Received: from syang10-desktop.sh.intel.com (HELO syang10-desktop) ([10.239.13.189]) by fmsmga001.fm.intel.com with ESMTP; 16 Mar 2009 01:37:32 -0700 Received: from yasker by syang10-desktop with local (Exim 4.69) (envelope-from ) id 1Lj8GV-0005hQ-Kf; Mon, 16 Mar 2009 16:33:43 +0800 From: Sheng Yang To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org, Sheng Yang Subject: [PATCH] KVM: Get support IRQ routing entry counts Date: Mon, 16 Mar 2009 16:33:43 +0800 Message-Id: <1237192423-21890-1-git-send-email-sheng@linux.intel.com> X-Mailer: git-send-email 1.5.6.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org In capability probing ioctl. Signed-off-by: Sheng Yang --- virt/kvm/kvm_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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;