Skip to content

Staging: hv: Cleanup vmbus driver code

K. Y. Srinivasan lkml virtualization 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/218 patches 0 repliesNew
  2. v1 posting 1/225 patches 51 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18Staging: hv: vmbus_driver cannot be unloaded; cleanup accordinglydrivers/staging/hv/vmbus_drv.c+0 -320 replies
2/18Staging: hv: Get rid of vmbus_release_unattached_channels() as it is not useddrivers/staging/hv/channel_mgmt.c drivers/staging/hv/channel_mgmt.h+0 -350 replies
3/18Staging: hv: Get rid of the drv field in struct hv_devicedrivers/staging/hv/vmbus_api.h+0 -30 replies
4/18Staging: hv: Cleanup error handling in vmbus_child_device_register()drivers/staging/hv/vmbus_drv.c+0 -30 replies
5/18Staging: hv: Cleanup vmbus_probe() functiondrivers/staging/hv/vmbus_api.h drivers/staging/hv/vmbus_drv.c+2 -330 replies
6/18Staging: hv: Properly handle errors in hv_pci_probe()drivers/staging/hv/vmbus_drv.c+25 -90 replies
7/18Staging: hv: Make hv_pci_dev a static variabledrivers/staging/hv/vmbus_drv.c+1 -10 replies
8/18Staging: hv: Make msg_dpc a stand alone variabledrivers/staging/hv/vmbus_drv.c+4 -30 replies
9/18Staging: hv: Make event_dpc a stand alone variabledrivers/staging/hv/vmbus_drv.c+3 -30 replies
10/18Staging: hv: Get rid of struct hv_busdrivers/staging/hv/vmbus_drv.c+13 -200 replies
11/18Staging: hv: Add probe function to struct hv_driverdrivers/staging/hv/vmbus_api.h+3 -00 replies
12/18Staging: hv: Use the probe function in struct hv_driverdrivers/staging/hv/blkvsc_drv.c drivers/staging/hv/hv_mouse.c drivers/staging/hv/netvsc_drv.c +2 more+37 -410 replies
13/18Staging: hv: Add remove() function to struct hv_driverdrivers/staging/hv/vmbus_api.h+1 -00 replies
14/18Staging: hv: Use the remove() function in struct hv_driverdrivers/staging/hv/blkvsc_drv.c drivers/staging/hv/hv_mouse.c drivers/staging/hv/netvsc_drv.c +2 more+25 -320 replies
15/18Staging: hv: Add shutdown() function to struct hv_driverdrivers/staging/hv/vmbus_api.h+1 -00 replies
16/18Staging: hv: Use the shutdown() function in struct hv_driverdrivers/staging/hv/blkvsc_drv.c drivers/staging/hv/vmbus_drv.c+6 -60 replies
17/18Staging: hv: VMBUS is a acpi enumerated device; get irq value from biosdrivers/staging/hv/vmbus_drv.c+100 -10 replies
18/18Staging: hv: Get rid of an unused variable from struct hv_driverdrivers/staging/hv/vmbus_api.h+0 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RESEND] [PATCH 00/18] Staging: hv: Cleanup vmbus driver code

This is a resend of the patches yet to be applied.
This patch-set addresses some of the bus/driver model cleanup that Greg sugested over the last couple of days. In this patch-set we deal with the following issues:

1) Cleanup error handling in the vmbus_probe() and vmbus_child_device_register() functions. Fixed a bug in the probe failure path as part of this cleanup.

2) The Windows host cannot handle the vmbus_driver being unloaded and subsequently loaded. Cleanup the driver with this in mind.

3) Get rid of struct hv_bus that embedded struct bus_type to conform with the LDM.

4) Add probe/remove/shutdown functions to struct hv_driver to conform to LDM.

5) On some older Hyper-V hosts, the Linux PCI sub-sytem is not able to allocate irq resources to the vmbus driver. I recently learnt that the vmbus driver is an acpi enumerated device on the Hyper-V platform. Added code to retrieve irq information from DSDT.

Regards,

K. Y