From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB6D726D4DD; Mon, 16 Mar 2026 12:13:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773663218; cv=none; b=lMNuEi0HUR4PGpbIS7CrcFI8MhJ+M5K+WoNpd8sS9selhLtnG/rgRv1IO05eGZNHncsxb0foK9e3ozMRAImlOQBTHJB+M7IZNIqhMZzxPYCPxSI4if4tQujnAIEC4HIXgaXcSNoWgCb5qv81Q2gN4fqT4QZ6IKcCDbXWzB1A5Co= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773663218; c=relaxed/simple; bh=qCyY3pKjxPVQikljorU7QNeL/LYi64ZDGCIxpmrYkuc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EZoeBeT+TmtfOVYgG/w0/VpIutoo4TrZEX4gwqpo4J1SN46WYrYz1RXGLAIBxlfZSkLW2BBvIf5YPh5Qj4cb5wNIWZCgHK0I+iKgp5RCP8wHI64n++frsMyxFrQflccEC3ng/R9s2u6SBM8pkMfwYewO6mEd+2ib3Q5yOZSa2Mo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=kCmKGzvY; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="kCmKGzvY" 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> Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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