[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-83527ef7abf7c02c33a90b00f0954db35415adbd@git.kernel.org>
Date: Mon, 22 Jul 2019 02:11:36 -0700
From: tip-bot for Maya Nakamura <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: m.maya.nakamura@...il.com, mikelley@...rosoft.com,
linux-kernel@...r.kernel.org, tglx@...utronix.de, hpa@...or.com,
sashal@...nel.org, vkuznets@...hat.com, mingo@...nel.org
Subject: [tip:x86/hyperv] drivers: hv: vmbus: Replace page definition with
Hyper-V specific one
Commit-ID: 83527ef7abf7c02c33a90b00f0954db35415adbd
Gitweb: https://git.kernel.org/tip/83527ef7abf7c02c33a90b00f0954db35415adbd
Author: Maya Nakamura <m.maya.nakamura@...il.com>
AuthorDate: Fri, 12 Jul 2019 08:25:18 +0000
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Mon, 22 Jul 2019 11:06:45 +0200
drivers: hv: vmbus: Replace page definition with Hyper-V specific one
Replace PAGE_SIZE with HV_HYP_PAGE_SIZE because the guest page size may not
be 4096 on all architectures and Hyper-V always runs with a page size of
4096.
Signed-off-by: Maya Nakamura <m.maya.nakamura@...il.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: Michael Kelley <mikelley@...rosoft.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@...hat.com>
Acked-by: Sasha Levin <sashal@...nel.org>
Link: https://lkml.kernel.org/r/0d9e80ecabcc950dc279fdd2e39bea4060123ba4.1562916939.git.m.maya.nakamura@gmail.com
---
drivers/hv/hyperv_vmbus.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/hv/hyperv_vmbus.h b/drivers/hv/hyperv_vmbus.h
index 362e70e9d145..6bf64cb6e31a 100644
--- a/drivers/hv/hyperv_vmbus.h
+++ b/drivers/hv/hyperv_vmbus.h
@@ -192,11 +192,11 @@ int hv_ringbuffer_read(struct vmbus_channel *channel,
u64 *requestid, bool raw);
/*
- * Maximum channels is determined by the size of the interrupt page
- * which is PAGE_SIZE. 1/2 of PAGE_SIZE is for send endpoint interrupt
- * and the other is receive endpoint interrupt
+ * The Maximum number of channels (16348) is determined by the size of the
+ * interrupt page, which is HV_HYP_PAGE_SIZE. 1/2 of HV_HYP_PAGE_SIZE is to
+ * send endpoint interrupts, and the other is to receive endpoint interrupts.
*/
-#define MAX_NUM_CHANNELS ((PAGE_SIZE >> 1) << 3) /* 16348 channels */
+#define MAX_NUM_CHANNELS ((HV_HYP_PAGE_SIZE >> 1) << 3)
/* The value here must be in multiple of 32 */
/* TODO: Need to make this configurable */
Powered by blists - more mailing lists