From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 3BC97F4645C for ; Mon, 16 Mar 2026 12:13:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QWdopn5c980g+AlKE33GtunlaalEfzfl6OYrrpEa6OM=; b=faALTX1G+IwnEs 5wgwnzDkrQEmYziJyTwYilgU/ZH4bFoUuJzJZL6tC3cL0Vz7X8lq3QAgyK1u0pxoFoHvFA/IhgTbd fan3Xn0yTHCnvhDq04zE8a6qw7v5m5ktsv0Gzj1Pm43iKRXvZ72mxmKgdDE5Y9X6sfIFRiutua9Tv zE5ymUakuteKSIDVtxuu6rV9hPSFkLlSCLoEzhm3Ova3QmnyrMTuIh+zb3UlDalptWGe2oRlRc/C0 GITQ3EsjDMCgBRD1tt4asty1RAGUv53Dxlz8dQ6V8dHNzD+mOOOSYIV3Thg+nC9w/I/9TCv9jBxve AOZfTOBXZQa1BaTp3LfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w26pJ-00000003uwH-3YC6; Mon, 16 Mar 2026 12:13:41 +0000 Received: from linux.microsoft.com ([13.77.154.182]) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w26pG-00000003utF-2N3B; Mon, 16 Mar 2026 12:13:39 +0000 Received: from CPC-namja-026ON.redmond.corp.microsoft.com (unknown [4.213.232.19]) by linux.microsoft.com (Postfix) with ESMTPSA id AE44A20B700D; Mon, 16 Mar 2026 05:13:30 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com AE44A20B700D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1773663217; bh=qxNzXROiVNr7+UUfLEumcf/CNbcQ/TPD3rd4fIb/4jg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kCmKGzvYncQUiJWqt/Z+9Vj+di6RNMWorU0zQ9qy98ppbIh3yfCTkOqXutmuqfRuQ OoH54gVCHkASeGsnZT/6YU3F/B9laj8xfw9AUZW00PHzw1Qk8Fp19j9waS1QC/2cKz Y4hKnRWh7cuVVoAHR6tNkmU20pZZ+K6ceIejoD4g= From: Naman Jain To: "K . Y . Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Catalin Marinas , Will Deacon , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Arnd Bergmann , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: Marc Zyngier , Timothy Hayes , Lorenzo Pieralisi , mrigendrachaubey , Naman Jain , ssengar@linux.microsoft.com, Michael Kelley , linux-hyperv@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 06/11] Drivers: hv: Make sint vector architecture neutral in MSHV_VTL Date: Mon, 16 Mar 2026 12:12:36 +0000 Message-ID: <20260316121241.910764-7-namjain@linux.microsoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260316121241.910764-1-namjain@linux.microsoft.com> References: <20260316121241.910764-1-namjain@linux.microsoft.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260316_051338_650280_2F0A9556 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Generalize Synthetic interrupt source vector (sint) to use vmbus_interrupt variable instead, which automatically takes care of architectures where HYPERVISOR_CALLBACK_VECTOR is not present (arm64). Signed-off-by: Roman Kisel Signed-off-by: Naman Jain --- drivers/hv/mshv_vtl_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hv/mshv_vtl_main.c b/drivers/hv/mshv_vtl_main.c index b607b6e7e121..91517b45d526 100644 --- a/drivers/hv/mshv_vtl_main.c +++ b/drivers/hv/mshv_vtl_main.c @@ -234,7 +234,7 @@ static void mshv_vtl_synic_enable_regs(unsigned int cpu) union hv_synic_sint sint; sint.as_uint64 = 0; - sint.vector = HYPERVISOR_CALLBACK_VECTOR; + sint.vector = vmbus_interrupt; sint.masked = false; sint.auto_eoi = hv_recommend_using_aeoi(); @@ -753,7 +753,7 @@ static void mshv_vtl_synic_mask_vmbus_sint(void *info) const u8 *mask = info; sint.as_uint64 = 0; - sint.vector = HYPERVISOR_CALLBACK_VECTOR; + sint.vector = vmbus_interrupt; sint.masked = (*mask != 0); sint.auto_eoi = hv_recommend_using_aeoi(); -- 2.43.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv