Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1325611rwl; Fri, 7 Apr 2023 13:59:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZxpGRawWVxfHJuIFBRvGiBUwSIz6fXHlt9XW8gR9KQ5s/o2xXvz7lOqD+24t/AcliMKzMQ X-Received: by 2002:a17:906:cc2:b0:948:b988:8cc3 with SMTP id l2-20020a1709060cc200b00948b9888cc3mr575601ejh.75.1680901144253; Fri, 07 Apr 2023 13:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680901144; cv=none; d=google.com; s=arc-20160816; b=d04QyyzYn+nqzwh3pW1WtTgGhl0wMeYCmwGXHliiO5QOEGiCFns1NLryYo4oo+YBDr HwQfV+30pbUqXO17scFZk076K1HJJJgpq8YKrSHlEksYb+t4067gMYcXriuDVdz1eW6t IiD2RQK45q5Mg/4mziKdAJ5Wgd+KpystEXiCdoldPu3cBwX3rXS7iJ1H0rYVTcNVyu97 NJwIoFHO5qLsJ2KRnqi+CoISPQ+tYFkfx7KHZ74XV8tJ2qj5/DW5zM3VhDaGbWqzPOY/ mBjWYHbvK25wsnWHx58AOYkgcAzcgpywHXx3105o1lHRKJ2D3jLf7AssR2+do3zKEdQi Lzpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :user-agent:message-id:date:cc:from:subject:dkim-signature :dkim-filter; bh=YRUkOLHXWLdwt0GZfM9eUMnSSmOnnB/oKT8xHXr5G0k=; b=euKmdsxAw7P6IqOq30h8uEOOx+GaP+DSWbSL0Pg2jW0Yr8HdDLHd/AUvJbVMuyTgBt +K9ZPt44vaLXquPSN32ZBUdZsGmvkcKbOVbmNZUhGADFK1Eh/GeiePsqe2bbVnjP/uOC 68Ebt15Z/w6rTlIGhAjcoxCV3pEd79bNC+auwqYnAEBKJrBQNToEekucqzKB6d10Pc3k oHOQVecwDlfScekyCn9fp3ff/NKewtDY3THZPFcSd/4Rk/rG003pWZ5TtlFU7kR2peC3 gvvgO2hu565lEx4JR+gEodsefFuRgBzqpVk5GvWjZqvXCwuLpwQ6MYRI02WaOBZq7g13 2LUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="mgve/Nmy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vx2-20020a170907a78200b0093428728851si3724881ejc.786.2023.04.07.13.58.39; Fri, 07 Apr 2023 13:59:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b="mgve/Nmy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229917AbjDGU4m (ORCPT + 99 others); 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-16.2 required=5.0 tests=DATE_IN_PAST_24_48, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH, MISSING_HEADERS,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-)