From patchwork Thu Apr 6 16:31:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanislav Kinsburskii X-Patchwork-Id: 13205417 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38658C76196 for ; Fri, 7 Apr 2023 20:56:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229908AbjDGU4m (ORCPT ); Fri, 7 Apr 2023 16:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjDGU4h (ORCPT ); Fri, 7 Apr 2023 16:56:37 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 252CD7ABA; Fri, 7 Apr 2023 13:56:37 -0700 (PDT) Received: from skinsburskii.localdomain (unknown [131.107.1.229]) by linux.microsoft.com (Postfix) with ESMTPSA id 6BFFF213B62E; Fri, 7 Apr 2023 13:56:36 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 6BFFF213B62E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1680900996; bh=YRUkOLHXWLdwt0GZfM9eUMnSSmOnnB/oKT8xHXr5G0k=; h=Subject:From:Cc:Date:From; b=mgve/NmyqWzUSZ8UBg62cuLIg3K1Aa/PgmTrOGnekjdCNmyKbRlWX/DBI0YLDjly+ jv0bS6wbgdXbAhqSEif3+9cswO7RtbQY3uIUiS82WfY2UBGHjdNhxjfRASY2fzjdrP FYGSzfF9OXrqJA7REyAWK6Z0jfefQ6cTuEYrBO1I= Subject: [PATCH 0/2] Fix MSI interrupts for nested Hyper-V root partition From: Stanislav Kinsburskii Cc: x86@kernel.org, "H. Peter Anvin" , "K. Y. Srinivasan" , linux-hyperv@vger.kernel.org, =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Lorenzo Pieralisi , Ingo Molnar , Dexuan Cui , Wei Liu , Borislav Petkov , Rob Herring , linux-kernel@vger.kernel.org, Dave Hansen , Bjorn Helgaas , Thomas Gleixner , linux-pci@vger.kernel.org, Haiyang Zhang , Stanislav Kinsburskii Date: Thu, 06 Apr 2023 09:31:44 -0700 Message-ID: <168079806973.14175.17999267023207421381.stgit@skinsburskii.localdomain> User-Agent: StGit/0.19 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hyper-V root partition needs to map MSI interrupts differently in case of nested setup and this series addresses the case. The following series implements... --- Stanislav Kinsburskii (2): x86/hyperv: Expose an helper to map PCI interrupts PCI: hv: Deal with nested MSHV setup arch/x86/hyperv/irqdomain.c | 40 +++++++++++++++++++++++++---------- arch/x86/include/asm/mshyperv.h | 2 ++ drivers/pci/controller/pci-hyperv.c | 11 +++++++++- 3 files changed, 40 insertions(+), 13 deletions(-)