Message ID | 1541204037-18043-4-git-send-email-mikelley@microsoft.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6A8CD13BF for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 3 Nov 2018 00:15:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58E532B88D for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 3 Nov 2018 00:15:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CD4C2B8ED; Sat, 3 Nov 2018 00:15:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ECF3F2B88D for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 3 Nov 2018 00:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KHIVM86/nIcOeT0GMFfVLUCYXhX1GBSy5Dsc8jium50=; b=p4fmuAjf44esM8 K3dDlRMdpeK1gsLqBP4xzbQU0p3whaVcHmosmDHT4OcgIEPi6kcA4tzqV67jGkdC3PKrmy26d2aUV xK/G6Rsqnn+LbnHSxH7/ys2X6C1HiyjD6cjSk6sSHrXne+0MmvTGO8aJXNo45pNzKijIw4UQKtuAq ni8BWK6jF6Ziww3S+KjcbGIkBtGSpQaCSXLqtPGfpbouBacWf4Es25eXzDXGsPo679RLCbdJXbSXy 15Y0Da6pp9ia/MPZ7eLTWJ48xRhjK/GBfAmZ9CIUBDjlowO85j5QCMIE3/11oCu/VPRUkfFr4hTg3 zpUGKq/bnVyRDo2Mm3WA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIjbR-0003fe-M2; Sat, 03 Nov 2018 00:15:49 +0000 Received: from mail-bn3nam01on070c.outbound.protection.outlook.com ([2a01:111:f400:fe41::70c] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIjbF-00038G-La for linux-arm-kernel@lists.infradead.org; Sat, 03 Nov 2018 00:15:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4W9UD7cdopApr0UN/OFjoBfsCgpRFkb0QEJGEkm7mrQ=; b=HnvBPc2B5C6rpPcF+Qxia7/zkDuIExfFDpWlahTjHFws1WPcyODMUTCz9rjldqhGLtaDckK/ORKgZv8Mt1Wpc+G4lnCitwjrjPYXPrKzvvquwO9MjNkkB2PFwjDXKT/4e3m8B9KvPHeqmQhvTHTt4Nq7dIwJeocNsePPauau/Hs= Received: from MWHPR21MB0766.namprd21.prod.outlook.com (10.173.51.20) by MWHPR21MB0704.namprd21.prod.outlook.com (10.175.142.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1339.2; Sat, 3 Nov 2018 00:15:22 +0000 Received: from MWHPR21MB0766.namprd21.prod.outlook.com ([fe80::1982:5e59:2489:88e6]) by MWHPR21MB0766.namprd21.prod.outlook.com ([fe80::1982:5e59:2489:88e6%14]) with mapi id 15.20.1339.000; Sat, 3 Nov 2018 00:15:22 +0000 From: Michael Kelley <mikelley@microsoft.com> To: "will.deacon@arm.com" <will.deacon@arm.com>, "catalin.marinas@arm.com" <catalin.marinas@arm.com>, "mark.rutland@arm.com" <mark.rutland@arm.com>, "marc.zyngier@arm.com" <marc.zyngier@arm.com>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "devel@linuxdriverproject.org" <devel@linuxdriverproject.org>, "olaf@aepfle.de" <olaf@aepfle.de>, "apw@canonical.com" <apw@canonical.com>, vkuznets <vkuznets@redhat.com>, "jasowang@redhat.com" <jasowang@redhat.com>, "marcelo.cerri@canonical.com" <marcelo.cerri@canonical.com>, Sunil Muthuswamy <sunilmut@microsoft.com>, KY Srinivasan <kys@microsoft.com> Subject: [PATCH v3 3/4] Drivers: hv: vmbus: Add hooks for per-CPU IRQ Thread-Topic: [PATCH v3 3/4] Drivers: hv: vmbus: Add hooks for per-CPU IRQ Thread-Index: AQHUcwpPYtVGcPtlUU6KwuL0rNVGHw== Date: Sat, 3 Nov 2018 00:15:22 +0000 Message-ID: <1541204037-18043-4-git-send-email-mikelley@microsoft.com> References: <1541204037-18043-1-git-send-email-mikelley@microsoft.com> In-Reply-To: <1541204037-18043-1-git-send-email-mikelley@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MWHPR2201CA0011.namprd22.prod.outlook.com (2603:10b6:301:28::24) To MWHPR21MB0766.namprd21.prod.outlook.com (2603:10b6:300:76::20) x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [131.107.174.136] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; MWHPR21MB0704; 6:I7Pkze6DeEA96BW5xKrpYPm0/YajHh0FRn5MGU5OM+jJjpsbPWtcEkrAgoYB3vhPiYz/66quRIhkISOpnNPPrOscfUVFcmDHkugsdBMtPih+cumLMR14AFcaanG9SvhGrJ3f3Li3q2kC1pFZguKIT7KOBuv2zGZ3NRQuWlvfDLX6LDtPAX8t6jbIcOH70BFi3r5Tp0wxvstSjnrFj1aSdjW3si+lsgcDPVYeEwY05liQXnOQTwXBYQwCZq+lVtnmLtVzz9s6VTf1HwjBwq+TouQNGvlf8Ys70gQj6+UplOZSab5VHFycz48g/7iiu6o+RfPpTlQohLQSNIGnGEMN7iH9NKCXHvv8sJvkzQ/f9JIbfL3LhGuQN4q4t6b3BSFocklD7Qg5OkxNGRU07OQB1swqGpaQ10bsKPJKHEqEDRi8HZFSrHbULf9O+rMm8c7C/hSih0LrQ2kCjSsbfsoCUQ==; 5:dyNwHUdcj44KKMpeBe81doihkouamQi46svKLj74+vu3FtvVElxOtI6NEKsfbRHTYKlDWPuLh6HcEJwnpi8OF7lx3H3w5EZD2FjBtCy+2rkpVnpYLl+b+M4BHwRIrILJkJun2z10BPxYHEcvQJHZrxwoag607xcRhPmyxGc12l4=; 7:hQwTF5WiVRnVldr2YLXlc81E0UHuipDYqT/buQb2vKQz6u0CEAzfrXaPjodJHYst0BLNEM5/sm/520JlSjiLEOZXkTqX7REtsQOYcLXcIn5kaGkmDvXrYQkAsnHgWCwc32rTmFbIP0KkRM3fe+IpuA== x-ms-office365-filtering-correlation-id: 6f6cdf60-56ef-4f34-55ec-08d641217208 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:MWHPR21MB0704; x-ms-traffictypediagnostic: MWHPR21MB0704: authentication-results: spf=none (sender IP is ) smtp.mailfrom=mikelley@microsoft.com; x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-o365eop-header: O365_EOP: Allow for Unauthenticated Relay x-o365ent-eop-header: Message processed by - O365_ENT: Allow from ranges (Engineering ONLY) x-microsoft-antispam-prvs: <MWHPR21MB0704A9F978845B2E63933288D7C80@MWHPR21MB0704.namprd21.prod.outlook.com> x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(8220035)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231382)(944501410)(52105095)(2018427008)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:MWHPR21MB0704; BCL:0; PCL:0; RULEID:; SRVR:MWHPR21MB0704; x-forefront-prvs: 08457955C4 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(376002)(346002)(136003)(396003)(366004)(189003)(199004)(14454004)(81156014)(81166006)(8676002)(8936002)(7416002)(305945005)(86612001)(7736002)(5660300001)(6116002)(105586002)(86362001)(2906002)(2201001)(3846002)(106356001)(97736004)(71190400001)(71200400001)(10290500003)(2900100001)(256004)(508600001)(4326008)(68736007)(25786009)(102836004)(66066001)(6486002)(6506007)(386003)(26005)(1511001)(99286004)(186003)(36756003)(22452003)(52116002)(76176011)(446003)(476003)(2616005)(110136005)(53936002)(6636002)(316002)(11346002)(10090500001)(6436002)(486006)(6512007)(2501003)(107886003)(921003)(1121003); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR21MB0704; H:MWHPR21MB0766.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: Zi5a4xUS0hPS2+AyC3JiWcL2qzVUt8+OlqajOTVLNhlXMSk0/KDsostDCpljhVm/ilVGw+YAB8XkzwNPYmj+SD0IuUyv2zXwwknAIimtpURePX3Lh/q5xivK+C3yxMfQvudCMW6sCLxVMYZpA29A2dmwARIo7LOm/RmkStizJsBb4M1aiE1rLovWrrUnmKw+ej+TNEf6QjUv6Mv+tvbbWwmaTC9Lrj6cRdn60LORr5E4tyxmnHN7b4AOQo69betTnIVx6gmLrbJNbx6uo5DedOiPM5M0u+rWBmsU8HO+gr2L+14pKuuClv3u4YkhwJnq75AGjPf6W8tvYwkAlwBHJ35T3Fg1eoSZNnDrAUpVMBE= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f6cdf60-56ef-4f34-55ec-08d641217208 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Nov 2018 00:15:22.3941 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR21MB0704 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181102_171538_237260_76891CAA X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Michael Kelley <mikelley@microsoft.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Subject: Enable Linux guests on Hyper-V on ARM64
|
expand
|
diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyperv.h index 0d6271c..8d97bd3 100644 --- a/arch/x86/include/asm/mshyperv.h +++ b/arch/x86/include/asm/mshyperv.h @@ -109,6 +109,10 @@ static inline void vmbus_signal_eom(struct hv_message *msg, u32 old_msg_type) void hv_setup_vmbus_irq(void (*handler)(void)); void hv_remove_vmbus_irq(void); +/* On x86/x64, there isn't a real IRQ to be enabled/disable */ +static inline void hv_enable_vmbus_irq(void) {} +static inline void hv_disable_vmbus_irq(void) {} + void hv_setup_kexec_handler(void (*handler)(void)); void hv_remove_kexec_handler(void); void hv_setup_crash_handler(void (*handler)(struct pt_regs *regs)); diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 332d7c3..5857208 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -309,6 +309,7 @@ int hv_synic_init(unsigned int cpu) hv_set_siefp(siefp.as_uint64); /* Setup the shared SINT. */ + hv_enable_vmbus_irq(); hv_get_synint_state(VMBUS_MESSAGE_SINT, shared_sint.as_uint64); shared_sint.vector = HYPERVISOR_CALLBACK_VECTOR; @@ -438,6 +439,7 @@ int hv_synic_cleanup(unsigned int cpu) hv_get_synic_state(sctrl.as_uint64); sctrl.enable = 0; hv_set_synic_state(sctrl.as_uint64); + hv_disable_vmbus_irq(); return 0; }
Add hooks to enable/disable a per-CPU IRQ for VMbus. These hooks are in the architecture independent setup and shutdown paths for Hyper-V, and are needed by Linux guests on Hyper-V on ARM64. The x86/x64 implementation is null because VMbus interrupts on x86/x64 don't use an IRQ. Signed-off-by: Michael Kelley <mikelley@microsoft.com> --- arch/x86/include/asm/mshyperv.h | 4 ++++ drivers/hv/hv.c | 2 ++ 2 files changed, 6 insertions(+)