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 A2974F589B0 for ; Thu, 23 Apr 2026 12:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xYrsyIoC51W4Qe8bosyyU9xMtVV38HlYUTBKJNuSgig=; b=FL/t7NrdcCYuhTu8tYGpWMn8Wz bdg1CBE7lMblICb+eskn3W1FhdyeyMyoKWqWRBorZ8K0eMzelHx0xSuzsnLrnN8lMxtrgO0EVZifa Kbao46ra5ZvYdGj9dZsA6X7H5kdBQbitHTuVKOoR1hZMeVjmrE/rMZNOVh89hhzbFopwHIQiA5qWC epAL0FUL49QWozOULfhrShEH/qnxAVGvWrTJrTAtFM/oMB7e7Fm0z4Td725PHS6+pJOBTY/oQEmoD acjPF+Gf80H3ISik88g7c4yARscQ77gLLge0LDPd8nLuOL1teRsou9IX7AKFu+IE8fSoMZ9Q7l1DT SSm0qlhw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wFtOr-0000000Be7x-32ML; Thu, 23 Apr 2026 12:43:21 +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 1wFtOi-0000000Bdyf-1VJ6; Thu, 23 Apr 2026 12:43:19 +0000 Received: from CPC-namja-026ON.redmond.corp.microsoft.com (unknown [4.213.232.18]) by linux.microsoft.com (Postfix) with ESMTPSA id 4315E20B716A; Thu, 23 Apr 2026 05:43:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4315E20B716A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1776948190; bh=xYrsyIoC51W4Qe8bosyyU9xMtVV38HlYUTBKJNuSgig=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q+rLxbyvnffxyuNo7mQNSV1jDnHtH+MsGn2tqlrxeqczaIVyO9o9XxHTxfZYPivTj IlWMlNYJBS65wirhfC6MYZYo470rxfD5FcIRjgLk/a3YENQESPYAlJHYYI/zpIJ0qL YIZqDaeCfud83sBftDNVa/ckgxRBUqNnkc8Qs3/U= 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 , Michael Kelley Cc: Marc Zyngier , Timothy Hayes , Lorenzo Pieralisi , Sascha Bischoff , mrigendrachaubey , Naman Jain , 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, vdso@mailbox.org, ssengar@linux.microsoft.com Subject: [PATCH v2 06/15] mshv_vtl: Make sint vector architecture neutral Date: Thu, 23 Apr 2026 12:41:56 +0000 Message-ID: <20260423124206.2410879-7-namjain@linux.microsoft.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260423124206.2410879-1-namjain@linux.microsoft.com> References: <20260423124206.2410879-1-namjain@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260423_054312_431719_5B6AED99 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 Reviewed-by: Michael Kelley Reviewed-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