From nobody Sun Dec 14 19:23:18 2025 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07FE140BF5; Fri, 18 Apr 2025 00:43:21 +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=1744937003; cv=none; b=IJR+GRLr+DL7FdH3sDKNePPXQDU1V91MwgQT6Nbe4PRER5QmxkDWp9qzLxOw6+SMRWSNf155E60ydtGc5l+9krWoXR7y08Y1E1gheLkojyxSlu3q0c1kiTV/SQvTyA7Nl4GI2ny3UqjOuU2Vku7779VWEUFsHBoPhYJIaE3pjiM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744937003; c=relaxed/simple; bh=ZmeHa/eLY/2hqMCCompH7uxOi3TbVn1s/vd0kwInBNU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=qE0VnocBQaxZ8KCwQ11gvmsvlFUK/K8KPEi9pSpsxsFS2kHXu5Q/ic1RJB5tiRFl2/zWiFhCoDDYqmAhUWRomq+k6PR3SQjItl4vNB2aRnnyNJSXxQmJuS9ExqYzBdFmCccezwlCBRQc4Y1w1CjwXtdNlHwrypGNM2huUlxD7NA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxonhyperv.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linuxonhyperv.com header.i=@linuxonhyperv.com header.b=iMl3HJCE; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxonhyperv.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=linuxonhyperv.com header.i=@linuxonhyperv.com header.b="iMl3HJCE" Received: by linux.microsoft.com (Postfix, from userid 1202) id 9C61B205251C; Thu, 17 Apr 2025 17:43:21 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 9C61B205251C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1744937001; bh=mNvIVtrs1E3+/vYev9vOXbdbYKPz8ifiqQUnVtJsDDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iMl3HJCELH+e0LQIwLEQOrF/pAdWIs+Hq5XC58tSDDgT4rsaydSVZHr3iijyG96G4 Xepbzin2iUEB1aKYyaviVx+jWkXsJHfiL7bqOOS+qHf4rrbYfD1A3jmHbzOvMOeAEL afZQmH+86ER4B3WPonsbAwpyQu3ZAw8ZJ/eYMelg= From: longli@linuxonhyperv.com To: "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Greg Kroah-Hartman , linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Long Li , stable@vger.kernel.org Subject: [PATCH 2/2] uio_hv_generic: Use correct size for interrupt and monitor pages Date: Thu, 17 Apr 2025 17:43:17 -0700 Message-Id: <1744936997-7844-3-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1744936997-7844-1-git-send-email-longli@linuxonhyperv.com> References: <1744936997-7844-1-git-send-email-longli@linuxonhyperv.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Long Li Interrupt and monitor pages should be in Hyper-V page size (4k bytes). This can be different to the system page size. Cc: stable@vger.kernel.org Fixes: 95096f2fbd10 ("uio-hv-generic: new userspace i/o driver for VMBus") Signed-off-by: Long Li --- drivers/uio/uio_hv_generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c index 1b19b5647495..08385b04c4ab 100644 --- a/drivers/uio/uio_hv_generic.c +++ b/drivers/uio/uio_hv_generic.c @@ -287,13 +287,13 @@ hv_uio_probe(struct hv_device *dev, pdata->info.mem[INT_PAGE_MAP].name =3D "int_page"; pdata->info.mem[INT_PAGE_MAP].addr =3D (uintptr_t)vmbus_connection.int_page; - pdata->info.mem[INT_PAGE_MAP].size =3D PAGE_SIZE; + pdata->info.mem[INT_PAGE_MAP].size =3D HV_HYP_PAGE_SIZE; pdata->info.mem[INT_PAGE_MAP].memtype =3D UIO_MEM_LOGICAL; =20 pdata->info.mem[MON_PAGE_MAP].name =3D "monitor_page"; pdata->info.mem[MON_PAGE_MAP].addr =3D (uintptr_t)vmbus_connection.monitor_pages[1]; - pdata->info.mem[MON_PAGE_MAP].size =3D PAGE_SIZE; + pdata->info.mem[MON_PAGE_MAP].size =3D HV_HYP_PAGE_SIZE; pdata->info.mem[MON_PAGE_MAP].memtype =3D UIO_MEM_LOGICAL; =20 if (channel->device_id =3D=3D HV_NIC) { --=20 2.34.1