Skip to contentSkip to conversation

Drivers: hv: Remove leftover support for old Hyper-V versions

PATCH Applied Michael Kelley 3 participants 3 messages Oct 23 – Oct 25

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Drivers: hv: Remove leftover support for old Hyper-V versions

When removing support for running Linux guests on Windows Server 2008/2008R2 and Windows 7, one area was missed due to the code comment spelling "2012" incorrectly. Remove that functionality now.

---
 drivers/hv/ring_buffer.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/hv/ring_buffer.c +0 -8
index 72f30ab23d1d..d8b085dfdb46 100644
@@ -561,14 +561,6 @@ void hv_pkt_iter_close(struct vmbus_channel *channel)
 	start_read_index = READ_ONCE(rbi->ring_buffer->read_index);
 	WRITE_ONCE(rbi->ring_buffer->read_index, rbi->priv_read_index);
 
-	/*
-	 * Older versions of Hyper-V (before WS2102 and Win8) do not
-	 * implement pending_send_sz and simply poll if the host->guest
-	 * ring buffer is full.  No signaling is needed or expected.
-	 */
-	if (!rbi->ring_buffer->feature_bits.feat_pending_send_sz)
-		return;
-
 	/*
 	 * Issue a full memory barrier before making the signaling decision.
 	 * If reading pending_send_sz were to be reordered and happen
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Michael Kelley

When removing support for running Linux guests on Windows Server 2008/2008R2 and Windows 7, one area was missed due to the code comment spelling "2012" incorrectly. Remove that functionality now.

Quoted 26 lines
---
 drivers/hv/ring_buffer.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/hv/ring_buffer.c +0 -8
index 72f30ab23d1d..d8b085dfdb46 100644
@@ -561,14 +561,6 @@ void hv_pkt_iter_close(struct vmbus_channel *channel)
 	start_read_index = READ_ONCE(rbi->ring_buffer->read_index);
 	WRITE_ONCE(rbi->ring_buffer->read_index, rbi->priv_read_index);
 
-	/*
-	 * Older versions of Hyper-V (before WS2102 and Win8) do not
-	 * implement pending_send_sz and simply poll if the host->guest
-	 * ring buffer is full.  No signaling is needed or expected.
-	 */
-	if (!rbi->ring_buffer->feature_bits.feat_pending_send_sz)
-		return;
-
 	/*
 	 * Issue a full memory barrier before making the signaling decision.
 	 * If reading pending_send_sz were to be reordered and happen
Signature · 1 line
2.25.1
maintainer Applied
#2 lore raw
Quoted 8 lines · Hamza Mahfooz
Quoted 5 lines · Michael Kelley

When removing support for running Linux guests on Windows Server 2008/2008R2 and Windows 7, one area was missed due to the code comment spelling "2012" incorrectly. Remove that functionality now.

Applied. Thanks.