From patchwork Thu Jun 30 08:54:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12901442 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 81013CCA47B for ; Thu, 30 Jun 2022 08:56:51 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.358346.587548 (Exim 4.92) (envelope-from ) id 1o6pyb-0000O3-Pk; Thu, 30 Jun 2022 08:56:41 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 358346.587548; Thu, 30 Jun 2022 08:56:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6pyb-0000Nw-MA; Thu, 30 Jun 2022 08:56:41 +0000 Received: by outflank-mailman (input) for mailman id 358346; Thu, 30 Jun 2022 08:56:40 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1o6pya-0007Q3-1A for xen-devel@lists.xenproject.org; Thu, 30 Jun 2022 08:56:40 +0000 Received: from esa2.hc3370-68.iphmx.com (esa2.hc3370-68.iphmx.com [216.71.145.153]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 8bbf3f56-f852-11ec-bdce-3d151da133c5; Thu, 30 Jun 2022 10:56:36 +0200 (CEST) Received: from mail-sn1anam02lp2047.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([104.47.57.47]) by ob1.hc3370-68.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 Jun 2022 04:56:37 -0400 Received: from DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) by SJ0PR03MB6699.namprd03.prod.outlook.com (2603:10b6:a03:402::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.14; Thu, 30 Jun 2022 08:56:34 +0000 Received: from DS7PR03MB5608.namprd03.prod.outlook.com ([fe80::40af:d5f4:95eb:d534]) by DS7PR03MB5608.namprd03.prod.outlook.com ([fe80::40af:d5f4:95eb:d534%7]) with mapi id 15.20.5395.015; Thu, 30 Jun 2022 08:56:34 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 8bbf3f56-f852-11ec-bdce-3d151da133c5 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1656579398; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=MuxBZdCHcFcLAUSqULIUORd90AHHM71XIXawMiighH0=; b=YA3h6A1a5uIAwVqAf8lY82fR6xl3uYbx9nAJUfMkQIcloekQ6D0MYqjN jo+oSqzwx9p0x24iicY3FpOGvuOrH6rYVJrlJjC7JHepN8TeklkTGCOx/ wR1Tb4MP4uUoEoCY7R8d5CL6sFTYhHkaQfTtaD8iKBrWpg+q0YbF91Py/ Y=; X-IronPort-RemoteIP: 104.47.57.47 X-IronPort-MID: 74794312 X-IronPort-Reputation: None X-IronPort-Listener: OutboundMail X-IronPort-SenderGroup: RELAY_O365 X-IronPort-MailFlowPolicy: $RELAYED IronPort-Data: A9a23:BlDuYas1MdEeQGOOuIi8qqEmP+fnVCJfMUV32f8akzHdYApBsoF/q tZmKTjUaamOZGL0f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A20H/VdnHdm2qZ5yDQlBIVr1Pyw16RhnXu5ebjQighNsZHjYVFNjPE9ksJprhHoe 529lPck6ASIQLLnSz76dSNfQptjFCIrX0rlvNWp2BDULEZdKRaoeUkjQ5o+a87bWzHAb0cYa hT5Jm23ocXTbraVQGSgoBX+q3iYpxpdS32AXTruaSuokprdT5CvgklLfck7wY9HaIGOud5Dt v/Q9RVfcl1P6krhIJGdZM8qJiMexvwaCOJFl6uCnLaM4xCE07xivfMkcYIDaeRCdc18Kc= X-IronPort-AV: E=Sophos;i="5.92,233,1650945600"; d="scan'208";a="74794312" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hKMoYwiuOBrPBGOsHks/k1bkr+JOm6b/OGpp8DKsMck1VUg04RdWyAd9vE+h/ap0ezHIgq9y1EWkmUCQt0D1ZJVIXoiylMnTvFeU/3gwnv3GPdBho0oIr0KABH/iJCK+GJ6eK2Q9ZF3Zu2vMQ2OPqYgkWgZWO+4NDShA9QPXhQx57FUvupY2X0XhkQqPC3FRkQ/hjTLtYfnG+mDmy0fRHUwlUecNZin6mGpGGu+JaeVC0aFIt2MzDKi/VEzRiJxJWkjThI1rEkCfB2GD9yoImO45Nv10w+zJ2kWsD4MP1xn3Uc8D580NS1tqo79PmWmZ3T4TrUduQZFoXLy0Ac/1XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dsP+mK1T59nSfzkuyerDtNZDx7JRlt36zNeR2aRBE2k=; b=jjO+XFvqOR2TaMpRwWR3C3VhS2L4QgOBMSd8obP9aUL72iVCFtmLVO3h/wYLsD1d5xep4rp2YBS6QdFXBZJpRWIQI0kJm5gQ/jne1AilQKb/Wpr2NM/hIC1JfSMcM36TRWvo7O/2h5kYeXnSMXsnukJ1pbKCu/zGDvpp4mbxWolukkF0PVOrLdg/SCFfb9ZfVbpIp+BuwJMWs1hOIzECYrtT9IPcgPl/78rMxL1D7Pp7/2HLVYo2/I5dj0VyLCy31ksogK7sAcHtUV0/mo2IL4cFSQtiESeMjw3zL/slf/r3AwY2sD4bi0/d91N5t2QWkhGvRcHB6xuEIU//BY5uvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dsP+mK1T59nSfzkuyerDtNZDx7JRlt36zNeR2aRBE2k=; b=b/vhfOnMuuCg/YAD7SH0SKyL/ElIcIlAQNwrrs/OKhaKeehUtDfwe+JTWVY/lBKld+biqIuU34tSlZGjofeQoMtCOnGAGU4Xe5shzF8tXc71ytzylVA9FLRLtxzXphu3JHywo1U3KDaWT7LGRi29QVfXdOl3jF1vlx8fHU2kCgk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com; From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Roger Pau Monne , Jan Beulich , Andrew Cooper , Wei Liu Subject: [PATCH v2 5/6] x86/irq: print nr_irqs as limit on the number of MSI(-X) interrupts Date: Thu, 30 Jun 2022 10:54:38 +0200 Message-Id: <20220630085439.83193-6-roger.pau@citrix.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220630085439.83193-1-roger.pau@citrix.com> References: <20220630085439.83193-1-roger.pau@citrix.com> X-ClientProxiedBy: LO4P265CA0201.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:318::10) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8f1c599f-42a5-4511-8392-08da5a766f40 X-MS-TrafficTypeDiagnostic: SJ0PR03MB6699:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0EyF2/svp9Fvgx6hTxYI/V+mX9UsybS8u7hW0D88rGtXwMNFkJkym1Yv9/ZnWEw88rNKp69sctD0wT01cXCW8MwD8AqguXp+Ud1NmETRQDsHR+YfhFSGqArfhuKr6f3iR6Zu8R2db7dVBVtHWQphFFKyGQicJeDIGUIKy1rqvvnrqfkQGCDKgZPvJbiYRypeG9f6Rc8fayh4rP2c8d9WbVMD5HIayQCtpY2YIFv65X7jyiMxDGIjD0gD8dUVCxwUm1Z2VJFEdsYw0YL0UgA1oe5nWr9P1Grsh5XOyrc4sGKrirO5rVdP8t/YK7xJ4C76Ub38DCyPEqVLdMkK5fe1mbdben9VIbCVl/WXA7Ysd/bhAZ2xi17z8Av9Yh0ZMW4P6ontyZdzMl8MF0ZRCM8lRu7Wm3qDDoQHvZeAbN2Vv3XENGMqNr82P4NMdYUmi+PbdLpODiT7WIFtjQf3fHUke9tRNPKWZBUhIDbA/L3CVfCFdd0ms31vOLHHC6PJFW5Eg6he8zaJOXORqhGX3FUspz9QiW+iy3a/22POPtKfDPDulRzMZ8VWH1hG2dPebXxdDT++eipEMOTtYCynAT/6HdF6eS3kbFdV2lt18q7JfW8D3f37SbgVvlsiPJ2PSLRclUyHFjK76dCLENJ4NJZ/9SNRqOvZFrXho5lu02zh2WztGmoke2HJweknSXPwz3XDRQSIxU/hmQiz6UeOV0J4AzPJN6+3I9Eb6HwXvhflBjdWDLEouxBAdvShXgvcuPD35vvC7AfNH6Hw27qfYJA8xw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(376002)(396003)(366004)(346002)(136003)(186003)(36756003)(316002)(2906002)(6506007)(86362001)(54906003)(41300700001)(2616005)(4744005)(38100700002)(6916009)(66556008)(66476007)(26005)(66946007)(4326008)(5660300002)(8936002)(8676002)(6512007)(1076003)(478600001)(6486002)(82960400001)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?1Z7pgiAzG4bbBRMPXw9ZPCbwy1WN?= =?utf-8?q?+UH3LqgCxAckw7jEOubbXg3FcOgY/J3Kj+XHycNSOhbuWhaPbM8Kgqy8wjPgY6Irs?= =?utf-8?q?vdhOxDTFhelu7fqvEg4gSIXMPHxsjJp2jciTHsvrGLup7oZONnLq/fjSq8z/Zh+BI?= =?utf-8?q?ayh+NJryr3OBHBlzyw21YAUMUyX2Yy9hVXzAABERsHRYyAXebU4lag7Cf+/O+3lI7?= =?utf-8?q?vGE453+IVo4GkzRNyK7pB86oCIB5UVpzwRxKWmMIGeAFNgfhze8+/mgjmd5fAj4t8?= =?utf-8?q?w41ffyjGjnOw4lJOdKcJDhJeFIAoQkxvjTL8/kdD9krLBt5npCDQl0DIr0bN4xV4D?= =?utf-8?q?txdofqhmaX1KnUB9WkNIh1eaGXrducUkghHY5nAZ5ulPni4x3V1i4slmKmUdcgXKr?= =?utf-8?q?sueoGWFFpivIW9XhrPAryNQUjiwiE/o7HNNKoUHfvwsF7FXN4NcHhqmb/anSNap+v?= =?utf-8?q?LLp71c918uh5G9sxJfrR4ktp2CSiUgFLd9xOHL6uw77wnYlUo5ZoNCg5phnUbhlf/?= =?utf-8?q?Qe6Y4xLDpGxeYRcHO7qaEEhlBgUqgu+0Fk1W/Cp1iFI2FHyJCjWaK8MCk041YKXo4?= =?utf-8?q?xK6jjBVpmcJnDBbhQd+meL1wP+6qu+r5eRT4rbtCvYKjt6XBUqut851D8s3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8?= =?utf-8?q?wv64xxN6xThOq2LDJZCErSHBCN5yHP849Q=3D=3D?= X-OriginatorOrg: citrix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f1c599f-42a5-4511-8392-08da5a766f40 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2022 08:56:34.6736 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4xFg4qZKlk1Tg4Theh8+zFCFjQ+N+X5oPIzhPVweVNfWwtNUulhtg6/QQCzA8U9tf77MFDapCoZvujjnd5sBNw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR03MB6699 Using nr_irqs minus nr_irqs_gsi is misleading, as GSI interrupts are not allocated unless requested by the hardware domain, so a hardware domain could not use any GSI (or just one for the ACPI SCI), and hence (almost) all nr_irqs will be available for MSI(-X) usage. No functional difference, just affects the printed message. Signed-off-by: Roger Pau Monné --- xen/arch/x86/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/irq.c b/xen/arch/x86/irq.c index b64d18c450..7f75ec8bcc 100644 --- a/xen/arch/x86/irq.c +++ b/xen/arch/x86/irq.c @@ -434,7 +434,7 @@ int __init init_irq_data(void) nr_irqs = 16; printk(XENLOG_INFO "IRQ limits: %u GSI, %u MSI/MSI-X\n", - nr_irqs_gsi, nr_irqs - nr_irqs_gsi); + nr_irqs_gsi, nr_irqs); for ( vector = 0; vector < X86_NR_VECTORS; ++vector ) this_cpu(vector_irq)[vector] = INT_MIN;