RE: [PATCH v5 1/2] drivers/hv: introduce vmbus_channel_set_cpu()

2025-01-16 Thread Michael Kelley
From: Hamza Mahfooz Sent: Thursday, January 16, 2025 3:07 PM > > The core functionality in target_cpu_store() is also needed in a > subsequent patch for automatically changing the CPU when taking > a CPU offline. As such, factor out the body of target_cpu_store() > into new function vmbus_channe

[PATCH] scsi: storvsc: Set correct data length for sending SCSI command without payload

2025-01-16 Thread longli
From: Long Li In StorVSC, payload->range.len is used to indicate if this SCSI command carries payload. This data is allocated as part of the private driver data by the upper layer and may get passed to lower driver uninitialized. If a SCSI command doesn't carry payload, the driver may use this v

[PATCH v5 2/2] drivers/hv: add CPU offlining support

2025-01-16 Thread Hamza Mahfooz
Currently, it is tedious to offline CPUs in a Hyper-V VM since CPUs may have VMBus channels attached to them that a user would have to manually rebind elsewhere. So, as made mention of in commit d570aec0f2154 ("Drivers: hv: vmbus: Synchronize init_vp_index() vs. CPU hotplug"), rebind channels assoc

[PATCH v5 1/2] drivers/hv: introduce vmbus_channel_set_cpu()

2025-01-16 Thread Hamza Mahfooz
The core functionality in target_cpu_store() is also needed in a subsequent patch for automatically changing the CPU when taking a CPU offline. As such, factor out the body of target_cpu_store() into new function vmbus_channel_set_cpu() that can also be used elsewhere. No functional change is inte

RE: [PATCH v4 2/2] drivers/hv: add CPU offlining support

2025-01-16 Thread Michael Kelley
From: Hamza Mahfooz Sent: Thursday, January 16, 2025 5:42 AM > > Currently, it is tedious to offline CPUs. Since, most CPUs will have > vmbus channels attached to them that a user would have to manually > rebind elsewhere. Cleaning up the punctuation and wording a bit: Currently, it is tediou

[PATCH v4 2/2] drivers/hv: add CPU offlining support

2025-01-16 Thread Hamza Mahfooz
Currently, it is tedious to offline CPUs. Since, most CPUs will have vmbus channels attached to them that a user would have to manually rebind elsewhere. So, as made mention of in commit d570aec0f2154 ("Drivers: hv: vmbus: Synchronize init_vp_index() vs. CPU hotplug"), rebind channels associated wi

[PATCH v4 1/2] drivers/hv: introduce vmbus_channel_set_cpu()

2025-01-16 Thread Hamza Mahfooz
The core functionality in target_cpu_store() is also needed in a subsequent patch for automatically changing the CPU when taking a CPU offline. As such, factor out the body of target_cpu_store() into new function vmbus_channel_set_cpu() that can also be used elsewhere. No functional change is inte