[PATCH 19/25] Staging: hv: netvsc: Get rid of the usage of the ext field in struct hv_device

2011-09-08 Thread K. Y. Srinivasan
access to the driver specific data is through the vmbus wrapper functions. As part of this cleanup, we also get rid of some unnecessary debug print statements. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_net.h |2 + drivers/staging/hv/netvsc.c

[PATCH 01/25] Staging: hv: vmbus: Rename vmbus_child_device_create

2011-09-08 Thread K. Y. Srinivasan
The vmbus devices are NOT child devices; rename vmbus_child_device_create to reflect this. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/channel_mgmt.c |2 +- drivers/staging/hv/hyperv_vmbus.h |2 +- drivers/staging/hv/vmbus_drv.c|4 ++-- 3

[PATCH 11/25] Staging: hv: util: Properly handle util services in the util driver

2011-09-08 Thread K. Y. Srinivasan
standard Linux driver Model. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/channel_mgmt.c | 39 +-- drivers/staging/hv/hv_kvp.c |7 drivers/staging/hv/hv_util.c | 63 3 files

[PATCH 06/25] Staging: hv: storvsc: Use the driver_data to identify ide

2011-09-08 Thread K. Y. Srinivasan
Use the driver_data to identify ide devices in storvsc_probe(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 13 + 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers

[PATCH 25/25] Staging: hv: netvsc: Rename deviceInfo as device_info

2011-09-08 Thread K. Y. Srinivasan
Rename deviceInfo as device_info. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/rndis_filter.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index

[PATCH 24/25] Staging: hv: netvsc: Rename rndisDevice to rndis_device

2011-09-08 Thread K. Y. Srinivasan
Rename rndisDevice to rndis_device. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/rndis_filter.c | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv

[PATCH 10/25] Staging: hv: vmbus: Return proper error code in vmbus_remove()

2011-09-08 Thread K. Y. Srinivasan
Return proper error code in vmbus_remove(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index b9aeb76

[PATCH 13/25] Staging: hv: vmbus: Get rid of the module dependency

2011-09-08 Thread K. Y. Srinivasan
Hyper-V modules can be built as part of the kernel (not just as modules). Get rid of the module dependency in Kconfig. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 23/25] Staging: hv: netvsc: Rename netDevice as net_device

2011-09-08 Thread K. Y. Srinivasan
Rename netDevice as net_device. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc.c |5 - drivers/staging/hv/rndis_filter.c | 20 ++-- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/staging/hv

[PATCH 20/25] Staging: hv: mousevsc: Get rid of the usage of the ext field in struct hv_device

2011-09-08 Thread K. Y. Srinivasan
Get rid of the usage of the ext field in struct hv_device for the mouse driver. We do this by using the newly introduced functions to set and and get driver specific data. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_mouse.c | 18

[PATCH 15/25] Staging: hv: storvsc: Get rid of storvsc_dev_add() by inlining the code

2011-09-08 Thread K. Y. Srinivasan
Get rid of storvsc_dev_add() by inlining the code. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 58 + 1 files changed, 14 insertions(+), 44 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b

[PATCH 21/25] Staging: hv: vmbus: Get rid of the ext field in struct hv_device

2011-09-08 Thread K. Y. Srinivasan
Now that we have eliminated all uses of the ext field in struct hv_device, get rid of the ext field. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv.h |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/staging/hv

[PATCH 22/25] Staging: hv: vmbus: Do not allocate struct hv_device_info on the stack

2011-09-08 Thread K. Y. Srinivasan
struct hv_device_info is about 101 bytes in size. Do not allocate this structure on the stack. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c | 134 --- 1 files changed, 69 insertions(+), 65 deletions

[PATCH 14/25] Staging: hv: vmbus: Introduce functions for setting and getting driver data

2011-09-08 Thread K. Y. Srinivasan
In preparation for getting rid of the ext field in the struct hv_device, introduce vmbus specific wrapper functions to set/get driver specific data. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv.h |9 + 1 files changed, 9 insertions

[PATCH 07/25] Staging: hv: vmbus: Change the signature of struct hv_driver remove() function

2011-09-08 Thread K. Y. Srinivasan
In preparation for leveraging the driver_data in struct hv_vmbus_device_id, change the signature of struct hv_driver remove() function. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_mouse.c|3 ++- drivers/staging/hv/hv_util.c |3

[PATCH 04/25] Staging: hv: vmbus: Cleanup dated comments in channel_mgmt.c

2011-09-08 Thread K. Y. Srinivasan
Cleanup dated comments in channel_mgmt.c. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/channel_mgmt.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/staging/hv/channel_mgmt.c b/drivers/staging/hv/channel_mgmt.c index

[PATCH 12/25] Staging: hv: vmbus: Get rid of hv_cb_utils[] and other unneeded code

2011-09-08 Thread K. Y. Srinivasan
Now that the transformation of the util driver is complete, get rid of hv_cb_utils[] and other unneeded code Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/channel_mgmt.c | 94 - drivers/staging/hv/hyperv.h |8

[PATCH 02/25] Staging: hv: vmbus: Rename vmbus_child_device_register

2011-09-08 Thread K. Y. Srinivasan
The vmbus devices are NOT child devices; rename vmbus_child_device_register to reflect this. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/channel_mgmt.c |2 +- drivers/staging/hv/hyperv_vmbus.h |2 +- drivers/staging/hv/vmbus_drv.c|4

[PATCH 18/25] Staging: hv: storvsc: Eliminate the usage of ext field in struct hv_device

2011-09-08 Thread K. Y. Srinivasan
access to the driver specific data is through the vmbus wrapper functions. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 24 +++- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/staging/hv

[PATCH 03/25] Staging: hv: vmbus: Rename vmbus_child_device_unregister

2011-09-08 Thread K. Y. Srinivasan
The vmbus devices are NOT child devices; rename vmbus_child_device_unregister to reflect this. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/channel_mgmt.c |2 +- drivers/staging/hv/hyperv_vmbus.h |2 +- drivers/staging/hv/vmbus_drv.c|4

[PATCH 17/25] Staging: hv: storvsc: Get rid of some unnecessary state and definitions

2011-09-08 Thread K. Y. Srinivasan
Now, get rid of some unnecessary state and definitions. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c |9 - 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv

[PATCH 08/25] Staging: hv: util: Perform some service specific initialization in util_probe()

2011-09-08 Thread K. Y. Srinivasan
In preparation for modifying the util driver to fully conform to the Linux Driver Model, perform some service specific initialization in util_probe() as opposed to in init_hyperv_utils() as is currently done. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv

[PATCH 09/25] Staging: hv: util: Perform some service specific de-initialization in util_remove()

2011-09-08 Thread K. Y. Srinivasan
In preparation for modifying the util driver to fully conform to the Linux Driver Model, perform some service specific de-initialization in util_remove() as opposed to in exit_hyperv_utils() as is currently done. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging

[PATCH 05/25] Staging: hv: vmbus: Change the signature of struct hv_driver probe function

2011-09-08 Thread K. Y. Srinivasan
In preparation to leveraging the driver_data field in struct hv_vmbus_device_id, change the signature of struct hv_driver probe function. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_mouse.c|3 ++- drivers/staging/hv/hv_util.c |3

[PATCH 16/25] Staging: hv: storvsc: Get rid of alloc_stor_device() by inlining the code

2011-09-08 Thread K. Y. Srinivasan
Get rid of alloc_stor_device() by inlining the code. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 24 ++-- 1 files changed, 6 insertions(+), 18 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers

[PATCH 0000/0025] Staging: hv: Driver cleanup

2011-09-08 Thread K. Y. Srinivasan
Address Greg's VmBus audit comments: 1) Leverage driver_data field in struct hv_vmbus_device_id to simplify driver code. 2) Make the util driver conform to the Linux Driver Model. 3) Get rid of the ext field in struct hv_device by using the driver sp

[PATCH 1/1] Staging: hv: Integrate the time source driver with Hyper-V detection code

2011-09-07 Thread K. Y. Srinivasan
The Hyper-V timesource driver is best integrated with Hyper-V detection code since: (a) Linux guests running on Hyper-V need this timesource and (b) by integrating with Hyper-V detection, we could significantly minimize the code in the timesource driver. Signed-off-by: K. Y. Srinivasan Signed

[PATCH 1/1] Staging: hv: Update TODO file

2011-09-02 Thread K. Y. Srinivasan
Based on input from Greg, update the TODO file. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/TODO |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/hv/TODO b/drivers/staging/hv/TODO index 582fd4a..7c9a93f

Hyper-V TODO file

2011-09-01 Thread K. Y. Srinivasan
Greg, The TODO file for Hyper-V drivers has not been updated in a while and does not reflect the current state of these drivers: 1) There are no more checkpatch warnings/errors in this code. One of the TODO work items is "fix remaining checkpatch warnings and errors". 2) With your help, we have

[PATCH 4/4] Staging: hv: vmbus: Cleanup the code in process_chn_event()

2011-09-01 Thread K. Y. Srinivasan
deal with racing driver unloads since an unloading driver sets the callback to NULL under the protection of this inbound_lock. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/connection.c | 18 -- 1 files changed, 16 insertions(+), 2 deletions

[PATCH 1/4] Staging: hv: util: Deal with driver register failures

2011-09-01 Thread K. Y. Srinivasan
Properly deal with vmbus_driver_register() failures. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_util.c | 21 - 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/staging/hv/hv_util.c b/drivers/staging/hv

[PATCH 2/4] Staging: hv: vmbus: Fix a bug in error handling in vmbus_bus_init()

2011-09-01 Thread K. Y. Srinivasan
Fix a bug in error handling in vmbus_bus_init(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c | 26 +++--- 1 files changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging

[PATCH 0000/0004] Staging: hv: Driver cleanup

2011-09-01 Thread K. Y. Srinivasan
Address the comments on the last couple of patch sets. Regards, K. Y ___ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/virtualization

[PATCH 3/4] Staging: hv: vmbus: Check for events before messages

2011-09-01 Thread K. Y. Srinivasan
The Windows team has informed us that on Windows guests on Hyper-V, they check for events before messages. They also recommended that we do the same. This patch addresses this. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c | 22

[PATCH 0000/0046] Staging: hv: Driver cleanup

2011-08-27 Thread K. Y. Srinivasan
Further cleanup of the hv drivers. 1) Cleanup reference counting. 2) Handle all block devices using the storvsc driver. I have modified the implementation here based on Christoph's feedback on my earlier implementation. 3) Fix bugs. 4) Acco

[PATCH 16/46] Staging: hv: netvsc: Get rid of release_inbound_net_device() by inlining the code

2011-08-27 Thread K. Y. Srinivasan
Get rid of release_inbound_net_device() by inlining the code. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc.c | 24 ++-- 1 files changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers

[PATCH 34/46] Staging: hv: vmbus: Properly deal with de-registering channel callback

2011-08-27 Thread K. Y. Srinivasan
Ensure that we correctly handle racing invocations of the channel callback when the channel is being closed. We do this using the channel's inbound_lock. A side-effect of this strategy is that we avoid repeatedly picking up this lock as we drain the inbound ring-buffer. Signed-off-by:

[PATCH 30/46] Staging: hv: storvsc: No need to copy from bounce buffer in case of a failure

2011-08-27 Thread K. Y. Srinivasan
No need to copy from bounce buffer in case of a failure; cleanup the code accordingly. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 12 ++-- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/staging/hv

[PATCH 33/46] Staging: hv: vmbus: Check before invoking the channel callback

2011-08-27 Thread K. Y. Srinivasan
When we close a channel, we set the corresponding callback function to NULL. Check before invoking the channel callback. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/connection.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a

[PATCH 29/46] Staging: hv: storvsc: In case of scsi errors offline the device

2011-08-27 Thread K. Y. Srinivasan
When we do get fatal errors from the host, offline the device since the host has already tried all possible recovery actions. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions

[PATCH 35/46] Staging: hv: Fix a bug in vmbus_match()

2011-08-27 Thread K. Y. Srinivasan
The recent checkin that add a private pointer to hv_vmbus_device_id introduced this bug in vmbus_match; fix it. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 02/46] Staging: hv: storvsc: Do not aquire an unnecessary reference on stor_device

2011-08-27 Thread K. Y. Srinivasan
On entry into storvsc_on_io_completion() we have already acquired a reference on the stor_device; there is no need to acquire an additional reference here. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc.c |5 + 1 files changed, 1 insertions

[PATCH 25/46] Staging: hv: storvsc: Add the contents of hyperv_storage.h to storvsc_drv.c

2011-08-27 Thread K. Y. Srinivasan
As part of further cleanup of storvsc, add the contents of hyperv_storage.h to storvsc_drv.c and do the necessary adjustments. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_storage.h | 322 --- drivers/staging/hv

[PATCH 43/46] Staging: hv: vmbus: Fix a checkpatch warning in ring_buffer.c

2011-08-27 Thread K. Y. Srinivasan
Fix a checkpatch warning in ring_buffer.c Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/ring_buffer.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/ring_buffer.c b/drivers/staging/hv/ring_buffer.c index

[PATCH 42/46] Staging: hv: vmbus: Get rid of an unnecessary check in vmbus_connect()

2011-08-27 Thread K. Y. Srinivasan
Get rid of an unnecessary check in vmbus_connect(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/connection.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/staging/hv/connection.c b/drivers/staging/hv/connection.c

[PATCH 44/46] Staging: hv: vmbus: Fix checkpatch warnings in connection.c

2011-08-27 Thread K. Y. Srinivasan
Fix checkpatch warnings in connection.c. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/connection.c | 13 +++-- 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/staging/hv/connection.c b/drivers/staging/hv/connection.c index

[PATCH 20/46] Staging: hv: blkvsc: Get rid of blkvsc_drv.c as this code is not used

2011-08-27 Thread K. Y. Srinivasan
Now that blkvsc driver is no longer needed, remove blkvsc_drv.c Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/blkvsc_drv.c | 1014 --- 1 files changed, 0 insertions(+), 1014 deletions(-) delete mode 100644 drivers

[PATCH 23/46] Staging: hv: storvsc: Include storvsc.c in storvsc_drv.c

2011-08-27 Thread K. Y. Srinivasan
As part of further cleanup of our storage drivers, include the content of storvsc.c into storvsc_drv.c and delete storvsc.c and do the necessary adjustments. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/Makefile |2 +- drivers/staging/hv

[PATCH 26/46] Staging: hv: storvsc: Cleanup storvsc_drv.c after adding the contents of hyperv_storage.h

2011-08-27 Thread K. Y. Srinivasan
Cleanup storvsc_drv.c after adding the contents of hyperv_storage.h. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 62 -- 1 files changed, 26 insertions(+), 36 deletions(-) diff --git a/drivers/staging

[PATCH 38/46] Staging: hv: vmbus: Do not enable auto eoi

2011-08-27 Thread K. Y. Srinivasan
Linux interrupt handling code generates the eoi; don't enable auto eoi. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/hv.c b/drivers/staging/hv/hv.c

[PATCH 39/46] Staging: hv: vmbus: Fixup indentation in vmbus_acpi_add()

2011-08-27 Thread K. Y. Srinivasan
Fixup indentation in vmbus_acpi_add(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index 4e07d4f

[PATCH 45/46] Staging: hv: mousevsc: Fix checkpatch errors and warnings

2011-08-27 Thread K. Y. Srinivasan
Fix checkpatch errors and warnings. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_mouse.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index 090736a

[PATCH 36/46] Staging: hv: vmbus: Get rid of vmbus_on_isr() by inlining the code

2011-08-27 Thread K. Y. Srinivasan
Get rid of vmbus_on_isr() by inlining the code. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c | 41 +++ 1 files changed, 12 insertions(+), 29 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b

[PATCH 46/46] Staging: hv: Update the TODO file

2011-08-27 Thread K. Y. Srinivasan
Update the TODO file. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/TODO | 24 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/staging/hv/TODO b/drivers/staging/hv/TODO index 582fd4a..23c74ed 100644 --- a

[PATCH 32/46] Staging: hv: util: Adjust guest time in a process context

2011-08-27 Thread K. Y. Srinivasan
The current code was adjusting guest time in interrupt context; do this in process context since we may have to initiate cross-processor interrupts as part of setting time. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_util.c | 33

[PATCH 40/46] Staging: hv: vmbus: Get rid of some dated/redundant comments

2011-08-27 Thread K. Y. Srinivasan
Get rid of some dated/redundant comments in vmbus_drv.c Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c | 11 +-- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv

[PATCH 37/46] Staging: hv: vmbus: Check for events before messages

2011-08-27 Thread K. Y. Srinivasan
Conform to Windows specification by checking for events before messages. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b

[PATCH 17/46] Staging: hv: netvsc: Get rid of the refcnt field in struct netvsc_device

2011-08-27 Thread K. Y. Srinivasan
traffic. Note that the driver may send some book keeping messages to the host not known to upper level Linux code. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_net.h |1 - drivers/staging/hv/netvsc.c | 62

[PATCH 41/46] Staging: hv: vmbus: Fix a bug in error handling in vmbus_bus_init()

2011-08-27 Thread K. Y. Srinivasan
Fix a bug in error handling in vmbus_bus_init(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c | 21 ++--- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv

[PATCH 08/46] Staging: hv: storvsc: Get rid of release_stor_device() by inlining the code

2011-08-27 Thread K. Y. Srinivasan
Get rid of release_stor_device() by inlining the code. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc.c | 19 ++- 1 files changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv

[PATCH 10/46] Staging: hv: storvsc: Get rid of the reference counting in struct storvsc_device

2011-08-27 Thread K. Y. Srinivasan
level code in Linux deals with outstanding I/Os, we may have situations on Hyper-V where some book keeping messages are sent out that the upper level Linux code may not be aware of. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_storage.h | 18

[PATCH 31/46] Staging: hv: util: Forcefully shutdown when shutdown is requested

2011-08-27 Thread K. Y. Srinivasan
When the host requests a "shutdown", make sure we shutdown! Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_util.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/hv_util.c b/drivers/staging/hv/hv_ut

[PATCH 18/46] Staging: hv: storvsc: Add code to handle IDE devices using the storvsc driver

2011-08-27 Thread K. Y. Srinivasan
Add code to handle IDE devices using the storvsc driver. The storvsc_probe() is modified so that the storvsc driver can surface all disks presented to the guest as scsi devices using generic upper level Linux scsi drivers. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang

[PATCH 28/46] Staging: hv: storvsc: Fix a typo

2011-08-27 Thread K. Y. Srinivasan
Fix a typo in a function name. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 72ca25c

[PATCH 24/46] Staging: hv: storvsc: Cleanup storvsc_drv.c after adding the contents of storvsc.c

2011-08-27 Thread K. Y. Srinivasan
Cleanup storvsc_drv.c after adding the contents of storvsc.c. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 147 +++--- 1 files changed, 27 insertions(+), 120 deletions(-) diff --git a/drivers/staging/hv

[PATCH 21/46] Staging: hv: storvsc: Optimize bounce buffer handling for the "write" case

2011-08-27 Thread K. Y. Srinivasan
Optimize bounce buffer handling for the "write" case. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/

[PATCH 06/46] Staging: hv: storvsc: Introduce state to manage the lifecycle of stor device

2011-08-27 Thread K. Y. Srinivasan
Introduce state to manage the lifecycle of stor device. This would be the basis for managing the references on the stor object. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_storage.h |2 +- drivers/staging/hv/storvsc.c|8 +++- 2

[PATCH 15/46] Staging: hv: netvsc: Get rid of release_outbound_net_device() by inlining the code

2011-08-27 Thread K. Y. Srinivasan
Get rid of release_outbound_net_device() by inlining the code. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc.c | 38 ++ 1 files changed, 14 insertions(+), 24 deletions(-) diff --git a/drivers/staging/hv

[PATCH 11/46] Staging: hv: netvsc: Inline the code for free_net_device()

2011-08-27 Thread K. Y. Srinivasan
Inline the code for free_net_device(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc.c | 12 ++-- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index b6e1fb9

[PATCH 22/46] Staging: hv: storvsc: Optimize the bounce buffer handling in the "read" case

2011-08-27 Thread K. Y. Srinivasan
Optimize the bounce buffer handling in the "read" case. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/

[PATCH 19/46] Staging: hv: storvsc: Handle IDE devices using the storvsc driver

2011-08-27 Thread K. Y. Srinivasan
Now, enable handling of all IDE devices by extending the storvsc device id table to handle IDE guid. As part of this cleanup Kconfig and Hyper-V Makefile to not build the IDE driver (blkvsc). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/Kconfig

[PATCH 27/46] Staging: hv: storvsc: Fixup srb and scsi status for INQUIRY and MODE_SENSE

2011-08-27 Thread K. Y. Srinivasan
The current VHD handler on the Windows Host does not correctly handle INQUIRY and MODE_SENSE commands with some options. Fixup srb_status in these cases since the failure is not fatal. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c | 17

[PATCH 07/46] Staging: hv: storvsc: Prevent outgoing traffic when stor dev is being destroyed

2011-08-27 Thread K. Y. Srinivasan
Prevent outgoing traffic when stor dev is destroyed. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_storage.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/hyperv_storage.h b/drivers/staging/hv

[PATCH 13/46] Staging: hv: netvsc: Introduce state to manage the lifecycle of net device

2011-08-27 Thread K. Y. Srinivasan
Introduce state to manage the lifecycle of net device. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_net.h |1 + drivers/staging/hv/netvsc.c |6 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/staging/hv

[PATCH 12/46] Staging: hv: netvsc: Cleanup alloc_net_device()

2011-08-27 Thread K. Y. Srinivasan
Cleanup alloc_net_device(); we can directly set the refcnt. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index

[PATCH 05/46] Staging: hv: storvsc: Cleanup alloc_stor_device()

2011-08-27 Thread K. Y. Srinivasan
Cleanup alloc_stor_device(), we can set the ref_count directly. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c

[PATCH 01/46] Staging: hv: storvsc: Inline free_stor_device()

2011-08-27 Thread K. Y. Srinivasan
Inline the code for free_stor_device() and get rid of the function. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv

[PATCH 09/46] Staging: hv: storvsc: Get rid of final_release_stor_device() by inlining code

2011-08-27 Thread K. Y. Srinivasan
Get rid of final_release_stor_device() by inlining code. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc.c | 23 ++- 1 files changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging

[PATCH 14/46] Staging: hv: netvsc: Prevent outgoing traffic when netvsc dev is destroyed

2011-08-27 Thread K. Y. Srinivasan
Prevent outgoing traffic when netvsc dev is destroyed. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 8eb4039

[PATCH 04/46] Staging: hv: storvsc: Rename get_stor_device()

2011-08-27 Thread K. Y. Srinivasan
In preparation for cleaning up how we manage reference counts on the stor device, clearly distinguish why we are attempting to acquire a reference. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_storage.h |3 ++- drivers/staging/hv/storvsc.c

[PATCH 03/46] Staging: hv: storvsc: Rename must_get_stor_device()

2011-08-27 Thread K. Y. Srinivasan
In preparation for cleaning up how we manage reference counts on the stor device, clearly distinguish why we are attempting to acquire a reference. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc.c |6 +++--- 1 files changed, 3 insertions(+), 3

[PATCH 11/59] Staging: hv: vmbus: Cleanup vmbus_match()

2011-08-25 Thread K. Y. Srinivasan
Use the preferred mechanism to compare guids in vmbus_match(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv

[PATCH 17/59] Staging: hv: netvsc: Get rid of the DMI signature in netvsc_drv.c

2011-08-25 Thread K. Y. Srinivasan
Now that we have implemented a vmbus specific mechanism for auto-loading, get rid of the DMI signature. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc_drv.c | 19 --- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a

[PATCH 10/59] Staging: hv: util: Make hv_utils a vmbus device driver

2011-08-25 Thread K. Y. Srinivasan
In preperation for supporting auto-loading the util driver, make the util driver a vmbus driver. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_util.c | 64 +- 1 files changed, 63 insertions(+), 1 deletions

[PATCH 38/59] Staging: hv: storvsc: Cleanup error handling in storvsc_connect_to_vsp()

2011-08-25 Thread K. Y. Srinivasan
Cleanup error handling in storvsc_connect_to_vsp(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c index 22ac6f2

[PATCH 23/59] Staging: hv: vmbus: Get rid of some unnecessary comments

2011-08-25 Thread K. Y. Srinivasan
Get rid of some unnecessary comments. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index dbb51b0..e467c56

[PATCH 51/59] Staging: hv: netvsc: Cleanup error codes in rndis_filter_receive()

2011-08-25 Thread K. Y. Srinivasan
Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/rndis_filter.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index dbb5201

[PATCH 42/59] Staging: hv: storvsc: Cleanup returned error code in storvsc_host_reset()

2011-08-25 Thread K. Y. Srinivasan
Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index 1e49879..c245698

[PATCH 14/59] Staging: hv: vmbus: Get rid of an unnecessary include line in vmbus_drv.c

2011-08-25 Thread K. Y. Srinivasan
Get rid of an unnecessary include line in vmbus_drv.c. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/vmbus_drv.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c index

[PATCH 59/59] Staging: hv: netvsc: Change the jump label Exit to exit

2011-08-25 Thread K. Y. Srinivasan
Change the jump lable "Exit" to "exit". Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/rndis_filter.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/

[PATCH 37/59] Staging: hv: storvsc: Cleanup error handling in storvsc_channel_init()

2011-08-25 Thread K. Y. Srinivasan
Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c index 915aeee..22ac6f2 100644

[PATCH 52/59] Staging: hv: netvsc: Cleanup error code in rndis_filter_query_device()

2011-08-25 Thread K. Y. Srinivasan
Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/rndis_filter.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c index 8e1ef00

[PATCH 47/59] Staging: hv: netvsc: Cleanup error return values in netvsc_init_recv_buf()

2011-08-25 Thread K. Y. Srinivasan
Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index baa0c8d..5703fd7 100644

[PATCH 43/59] Staging: hv: storvsc: Cleanup error code returned in storvsc_probe()

2011-08-25 Thread K. Y. Srinivasan
Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/storvsc_drv.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c index c245698

[PATCH 53/59] Staging: hv: netvsc: Cleanup error return values in rndis_filter_set_packet_filter()

2011-08-25 Thread K. Y. Srinivasan
Use standard Linux error codes and cleanup some error paths. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/rndis_filter.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv

[PATCH 58/59] Staging: hv: netvsc: Change the jump label Cleanup to cleanup

2011-08-25 Thread K. Y. Srinivasan
Change the jump label "Cleanup" to "cleanup". Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/rndis_filter.c | 28 ++-- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/hv/rndis

[PATCH 34/59] Staging: hv: netvsc: Get rid of an unnecessary print statement in netvsc_probe()

2011-08-25 Thread K. Y. Srinivasan
Get rid of an unnecessary print statement in netvsc_probe(). Furthermore, this fixes a bug since netdev_err is being invoked after the device has been freed. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc_drv.c |2 -- 1 files changed, 0

[PATCH 48/59] Staging: hv: netvsc: Cleanup error returns in netvsc_connect_vsp()

2011-08-25 Thread K. Y. Srinivasan
Use standard Linux error codes. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/netvsc.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c index 5703fd7..9cc126b 100644

[PATCH 21/59] Staging: hv: netvsc: Get rid of the empty function netvsc_initialize()

2011-08-25 Thread K. Y. Srinivasan
Now, get rid of the empty function netvsc_initialize(). Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hyperv_net.h |1 - drivers/staging/hv/netvsc.c |9 - drivers/staging/hv/netvsc_drv.c |3 --- 3 files changed, 0 insertions(+), 13

[PATCH 57/59] Staging: hv: mouse: Get rid of the unused PCI signature

2011-08-25 Thread K. Y. Srinivasan
Get rid of the unused PCI signature in the mouse driver. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang --- drivers/staging/hv/hv_mouse.c | 22 -- 1 files changed, 0 insertions(+), 22 deletions(-) diff --git a/drivers/staging/hv/hv_mouse.c b/drivers

  1   2   3   4   5   6   7   8   9   10   >