[PATCH 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-10 Thread K. Y. Srinivasan
On the interrupt path, we repeatedly establish the pointer to the storvsc_device. Fix this. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c | 23 --- 1 files changed, 8 insertions(+), 15 deletions(-) diff --git a

[PATCH 0/4] scsi: storvsc: Properly support FC hosts

2015-12-10 Thread K. Y. Srinivasan
Properly support FC hosts. Additional cleanup patches are also included. K. Y. Srinivasan (4): scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet scsi: storvsc: Properly support Fibre Channel devices scsi: storvsc: Refactor the code in storvsc_channel_init() scsi: storvsc

[PATCH 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-10 Thread K. Y. Srinivasan
For FC devices managed by this driver, atttach the appropriate transport template. This will allow us to create the appropriate sysfs files for these devices. With this we can publish the wwn for both the port and the node. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng

[PATCH 3/4] scsi: storvsc: Refactor the code in storvsc_channel_init()

2015-12-10 Thread K. Y. Srinivasan
The function storvsc_channel_init() repeatedly interacts with the host to extract various channel properties. Refactor this code to eliminate code repetition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c | 155

[PATCH 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet

2015-12-10 Thread K. Y. Srinivasan
The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in Linux match the Window's definition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dr

[PATCH RESEND 00/27] Drivers: hv: Miscellaneous fixes.

2015-12-11 Thread K. Y. Srinivasan
-through drivers:hv: Allow for MMIO claims that span ACPI _CRS records K. Y. Srinivasan (8): Drivers: hv: util: Increase the timeout for util services Drivers: hv: vmbus: Use uuid_le type consistently Drivers: hv: vmbus: Use uuid_le_cmp() for comparing GUIDs Drivers: hv: vmbus: Get rid of th

[PATCH RESEND 01/27] Drivers: hv: util: Increase the timeout for util services

2015-12-11 Thread K. Y. Srinivasan
s out. Set the guest timeout at 30 seconds. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c |3 ++- drivers/hv/hv_kvp.c |3 ++- drivers/hv/hyperv_vmbus.h |5 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/hv/hv_fcopy.c b/drivers/hv/

[PATCH RESEND 03/27] tools: hv: report ENOSPC errors in hv_fcopy_daemon

2015-12-11 Thread K. Y. Srinivasan
From: Olaf Hering Currently some "Unspecified error 0x80004005" is reported on the Windows side if something fails. Handle the ENOSPC case and return ERROR_DISK_FULL, which allows at least Copy-VMFile to report a meaning full error. Signed-off-by: Olaf Hering Signed-off-by: K. Y.

[PATCH RESEND 15/27] Drivers: hv: vmbus: Get rid of the unused irq variable

2015-12-11 Thread K. Y. Srinivasan
The irq we extract from ACPI is not used - we deliver hypervisor interrupts on a special vector. Make the necessary adjustments. Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 16 +++- 1 files changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/hv

[PATCH RESEND 04/27] tools: hv: remove repeated HV_FCOPY string

2015-12-11 Thread K. Y. Srinivasan
From: Olaf Hering HV_FCOPY is already used as identifier in syslog. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_fcopy_daemon.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c

[PATCH RESEND 05/27] Drivers: hv: util: catch allocation errors

2015-12-11 Thread K. Y. Srinivasan
From: Olaf Hering Catch allocation errors in hvutil_transport_send. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 ++--- 1 files

[PATCH RESEND 17/27] Drivers: hv: vmbus: do sanity check of channel state in vmbus_close_internal()

2015-12-11 Thread K. Y. Srinivasan
From: Dexuan Cui This fixes an incorrect assumption of channel state in the function. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv

[PATCH RESEND 02/27] Drivers: hv: utils: run polling callback always in interrupt context

2015-12-11 Thread K. Y. Srinivasan
the same as recv_channel. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c | 34 -- drivers/hv/hv_kvp.c | 28 ++-- drivers/hv/hv_snapshot.c | 29 +++-- drivers

[PATCH RESEND 06/27] Drivers: hv: utils: use memdup_user in hvt_op_write

2015-12-11 Thread K. Y. Srinivasan
From: Olaf Hering Use memdup_user to handle OOM. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 - 1 files changed, 4 insert

[PATCH RESEND 14/27] Drivers: hv: vmbus: Get rid of the unused macro

2015-12-11 Thread K. Y. Srinivasan
The macro VMBUS_DEVICE() is unused; get rid of it. Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 13 - 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index b9f3bb2..f773a68 100644 --- a/include/linux

[PATCH 27/27] tools: hv: vss: fix the write()'s argument: error -> vss_msg

2015-12-11 Thread K. Y. Srinivasan
From: Dexuan Cui Fix the write()'s argument in the daemon code. Cc: Vitaly Kuznetsov Cc: "K. Y. Srinivasan" Signed-off-by: Dexuan Cui Cc: sta...@vger.kernel.org Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_vss_daemon.c |2 +- 1 files changed, 1 insertions(+), 1 del

[PATCH RESEND 19/27] Drivers: hv: vmbus: release relid on error in vmbus_process_offer()

2015-12-11 Thread K. Y. Srinivasan
From: Dexuan Cui We want to simplify vmbus_onoffer_rescind() by not invoking hv_process_channel_removal(NULL, ...). Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff

[PATCH RESEND 12/27] Drivers: hv: vmbus: Use uuid_le type consistently

2015-12-11 Thread K. Y. Srinivasan
Consistently use uuid_le type in the Hyper-V driver code. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |2 +- drivers/hv/vmbus_drv.c | 10 ++-- include/linux/hyperv.h | 92 +- include/linux/mod_devicetable.h

[PATCH RESEND 23/27] Drivers: hv: vmbus: Fix a Host signaling bug

2015-12-11 Thread K. Y. Srinivasan
signaling, we will not be able to signal the host subsequently when the client does want to signal since the ring buffer state will prevent the signaling. Implement logic to have only one signaling policy in force for a given channel. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang

[PATCH RESEND 10/27] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-12-11 Thread K. Y. Srinivasan
From: Jake Oshins This defines the channel type for PCI front-ends in Hyper-V VMs. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3 +++ include/linux/hyperv.h| 11 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git

[PATCH 25/27] Drivers: hv: vmbus: Force all channel messages to be delivered on CPU 0

2015-12-11 Thread K. Y. Srinivasan
Force all channel messages to be delivered on CPU0. These messages are not performance critical and are used during the setup and teardown of the channel. Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git

[PATCH 26/27] Drivers: hv: utils: Invoke the poll function after handshake

2015-12-11 Thread K. Y. Srinivasan
When the handshake with daemon is complete, we should poll the channel since during the handshake, we will not be processing any messages. This is a potential bug if the host is waiting for a response from the guest. I would like to thank Dexuan for pointing this out. Signed-off-by: K. Y

[PATCH RESEND 21/27] drivers:hv: Allow for MMIO claims that span ACPI _CRS records

2015-12-11 Thread K. Y. Srinivasan
From: Jake Oshins This patch makes 16GB GPUs work in Hyper-V VMs, since, for compatibility reasons, the Hyper-V BIOS lists MMIO ranges in 2GB chunks in its root bus's _CRS object. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 16 ++

[PATCH RESEND 18/27] Drivers: hv: vmbus: fix rescind-offer handling for device without a driver

2015-12-11 Thread K. Y. Srinivasan
the issue by moving hv_process_channel_removal() from vmbus_close_internal() to vmbus_device_release(), since the latter is always invoked on device_unregister(), whether or not the dev has a driver loaded. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.

[PATCH RESEND 24/27] drivers/hv: correct tsc page sequence invalid value

2015-12-11 Thread K. Y. Srinivasan
patch aligns Tsc page invalid sequence value with Windows Hyper-V guest implementation which is more compatible with both Hyper-V hypervisor and KVM hypervisor. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev CC: "K. Y. Srinivasan" CC: Haiyang Zhang CC: Vitaly Kuznetsov

[PATCH RESEND 11/27] Drivers: hv: vss: run only on supported host versions

2015-12-11 Thread K. Y. Srinivasan
: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/hv/hv_snapshot.c b/drivers/hv/hv_snapshot.c index a548ae4..81882d4 100644 --- a/drivers/hv/hv_snapshot.c +++ b/drivers/hv/hv_snapshot.c

[PATCH RESEND 16/27] Drivers: hv: vmbus: serialize process_chn_event() and vmbus_close_internal()

2015-12-11 Thread K. Y. Srinivasan
by disabling the tasklet when the latter is running here. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index c4dcab0..f7f3

[PATCH RESEND 13/27] Drivers: hv: vmbus: Use uuid_le_cmp() for comparing GUIDs

2015-12-11 Thread K. Y. Srinivasan
Use uuid_le_cmp() for comparing GUIDs. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3 +-- drivers/hv/vmbus_drv.c|4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 38470aa..dc4fb0b

[PATCH RESEND 08/27] drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

2015-12-11 Thread K. Y. Srinivasan
Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 17 + include/linux/hyperv.h |2 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 3297731..c01b689 100644 --- a/drivers/hv/vmbus_drv.c

[PATCH RESEND 22/27] tools/hv: Use include/uapi with __EXPORTED_HEADERS__

2015-12-11 Thread K. Y. Srinivasan
From: Kamal Mostafa Use the local uapi headers to keep in sync with "recently" added #define's (e.g. VSS_OP_REGISTER1). Fixes: 3eb2094c59e89db2bedd401e23c7a870081c9edb Signed-off-by: Kamal Mostafa Signed-off-by: K. Y. Srinivasan --- tools/hv/Makefile |2 ++ 1 files change

[PATCH RESEND 20/27] Drivers: hv: vmbus: channge vmbus_connection.channel_lock to mutex

2015-12-11 Thread K. Y. Srinivasan
From: Dexuan Cui spinlock is unnecessary here. mutex is enough. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 12 ++-- drivers/hv/connection.c |7 +++ drivers/hv/hyperv_vmbus.h |2 +- 3 files changed, 10 insertions(+), 11

[PATCH RESEND 09/27] drivers:hv: Export the API to invoke a hypercall on Hyper-V

2015-12-11 Thread K. Y. Srinivasan
Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c | 20 ++-- drivers/hv/hyperv_vmbus.h |2 +- include/linux/hyperv.h|1 + 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 6341be8..7a06933 100644 --- a

[PATCH RESEND 07/27] drivers/hv: cleanup synic msrs if vmbus connect failed

2015-12-11 Thread K. Y. Srinivasan
eanup() at each vcpu to get a chance to free allocated resources by hypervisor per synic. This patch does appropriate cleanup in case of vmbus_connect() failure. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev Reviewed-by: Vitaly Kuznetsov CC: "K. Y. Srinivasan" CC: Haiya

[PATCH V2 0/4] scsi: storvsc: Properly support FC hosts

2015-12-12 Thread K. Y. Srinivasan
Properly support FC hosts. Additional cleanup patches are also included. In this version I have adddressed comments from Dan Carpenter and from Johannes Thumshirn . K. Y. Srinivasan (4): scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet scsi: storvsc: Properly support Fibre

[PATCH V2 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-12 Thread K. Y. Srinivasan
For FC devices managed by this driver, atttach the appropriate transport template. This will allow us to create the appropriate sysfs files for these devices. With this we can publish the wwn for both the port and the node. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng

[PATCH V2 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-12 Thread K. Y. Srinivasan
On the interrupt path, we repeatedly establish the pointer to the storvsc_device. Fix this. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c | 23 --- 1 files changed, 8 insertions

[PATCH V2 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet

2015-12-12 Thread K. Y. Srinivasan
The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in Linux match the Window's definition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Johannes Thumshirn Reviewed-by: Long Li Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c |5 ++--- 1 files changed, 2 insertions(

[PATCH V2 3/4] scsi: storvsc: Refactor the code in storvsc_channel_init()

2015-12-12 Thread K. Y. Srinivasan
The function storvsc_channel_init() repeatedly interacts with the host to extract various channel properties. Refactor this code to eliminate code repetition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Tested-by: Alex Ng --- V2: Fixed error

[PATCH V3 0/4] scsi: storvsc: Properly support FC hosts

2015-12-13 Thread K. Y. Srinivasan
Properly support FC hosts. Additional cleanup patches are also included. V2: Comments from Dan Carpenter and from Johannes Thumshirn addressed. V3: Fixed build issues reported by kbuild test robot K. Y. Srinivasan (4): scsi: storvsc: Fix a bug in the layout

[PATCH V3 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet

2015-12-13 Thread K. Y. Srinivasan
The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in Linux match the Window's definition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Johannes Thumshirn Reviewed-by: Long Li Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c |5 ++--- 1 files changed, 2 insertions(

[PATCH V3 3/4] scsi: storvsc: Refactor the code in storvsc_channel_init()

2015-12-13 Thread K. Y. Srinivasan
The function storvsc_channel_init() repeatedly interacts with the host to extract various channel properties. Refactor this code to eliminate code repetition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Tested-by: Alex Ng --- V2: Fixed error

[PATCH V3 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-13 Thread K. Y. Srinivasan
For FC devices managed by this driver, atttach the appropriate transport template. This will allow us to create the appropriate sysfs files for these devices. With this we can publish the wwn for both the port and the node. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng

[PATCH V3 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-13 Thread K. Y. Srinivasan
On the interrupt path, we repeatedly establish the pointer to the storvsc_device. Fix this. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c | 23 --- 1 files changed, 8 insertions

[PATCH RESEND 00/27] Drivers: hv: Miscellaneous fixes.

2015-12-14 Thread K. Y. Srinivasan
ivers:hv: Allow for MMIO claims that span ACPI _CRS records K. Y. Srinivasan (8): Drivers: hv: util: Increase the timeout for util services Drivers: hv: vmbus: Use uuid_le type consistently Drivers: hv: vmbus: Use uuid_le_cmp() for comparing GUIDs Drivers: hv: vmbus: Get rid of the unused macro

[PATCH RESEND 17/27] Drivers: hv: vmbus: do sanity check of channel state in vmbus_close_internal()

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui This fixes an incorrect assumption of channel state in the function. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv

[PATCH RESEND 01/27] Drivers: hv: util: Increase the timeout for util services

2015-12-14 Thread K. Y. Srinivasan
s out. Set the guest timeout at 30 seconds. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c |3 ++- drivers/hv/hv_kvp.c |3 ++- drivers/hv/hyperv_vmbus.h |5 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/hv/hv_fcopy.c b/drivers/hv/

[PATCH RESEND 06/27] Drivers: hv: utils: use memdup_user in hvt_op_write

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering Use memdup_user to handle OOM. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 - 1 files changed, 4 insert

[PATCH RESEND 24/27] drivers/hv: correct tsc page sequence invalid value

2015-12-14 Thread K. Y. Srinivasan
patch aligns Tsc page invalid sequence value with Windows Hyper-V guest implementation which is more compatible with both Hyper-V hypervisor and KVM hypervisor. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev CC: "K. Y. Srinivasan" CC: Haiyang Zhang CC: Vitaly Kuznetsov

[PATCH RESEND 25/27] Drivers: hv: vmbus: Force all channel messages to be delivered on CPU 0

2015-12-14 Thread K. Y. Srinivasan
Force all channel messages to be delivered on CPU0. These messages are not performance critical and are used during the setup and teardown of the channel. Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c | 11 +++ 1 files changed, 7 insertions(+), 4 deletions(-) diff --git

[PATCH RESEND 23/27] Drivers: hv: vmbus: Fix a Host signaling bug

2015-12-14 Thread K. Y. Srinivasan
signaling, we will not be able to signal the host subsequently when the client does want to signal since the ring buffer state will prevent the signaling. Implement logic to have only one signaling policy in force for a given channel. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang

[PATCH RESEND 09/27] drivers:hv: Export the API to invoke a hypercall on Hyper-V

2015-12-14 Thread K. Y. Srinivasan
Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv.c | 20 ++-- drivers/hv/hyperv_vmbus.h |2 +- include/linux/hyperv.h|1 + 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 6341be8..7a06933 100644 --- a

[PATCH RESEND 08/27] drivers:hv: Export a function that maps Linux CPU num onto Hyper-V proc num

2015-12-14 Thread K. Y. Srinivasan
Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 17 + include/linux/hyperv.h |2 ++ 2 files changed, 19 insertions(+), 0 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 3297731..c01b689 100644 --- a/drivers/hv/vmbus_drv.c

[PATCH RESEND 11/27] Drivers: hv: vss: run only on supported host versions

2015-12-14 Thread K. Y. Srinivasan
: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_snapshot.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/hv/hv_snapshot.c b/drivers/hv/hv_snapshot.c index a548ae4..81882d4 100644 --- a/drivers/hv/hv_snapshot.c +++ b/drivers/hv/hv_snapshot.c

[PATCH RESEND 14/27] Drivers: hv: vmbus: Get rid of the unused macro

2015-12-14 Thread K. Y. Srinivasan
The macro VMBUS_DEVICE() is unused; get rid of it. Signed-off-by: K. Y. Srinivasan --- include/linux/hyperv.h | 13 - 1 files changed, 0 insertions(+), 13 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index b9f3bb2..f773a68 100644 --- a/include/linux

[PATCH RESEND 27/27] tools: hv: vss: fix the write()'s argument: error -> vss_msg

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui Fix the write()'s argument in the daemon code. Cc: Vitaly Kuznetsov Cc: "K. Y. Srinivasan" Signed-off-by: Dexuan Cui Cc: sta...@vger.kernel.org Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_vss_daemon.c |2 +- 1 files changed, 1 insertions(+), 1 del

[PATCH RESEND 12/27] Drivers: hv: vmbus: Use uuid_le type consistently

2015-12-14 Thread K. Y. Srinivasan
Consistently use uuid_le type in the Hyper-V driver code. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |2 +- drivers/hv/vmbus_drv.c | 10 ++-- include/linux/hyperv.h | 92 +- include/linux/mod_devicetable.h

[PATCH RESEND 13/27] Drivers: hv: vmbus: Use uuid_le_cmp() for comparing GUIDs

2015-12-14 Thread K. Y. Srinivasan
Use uuid_le_cmp() for comparing GUIDs. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3 +-- drivers/hv/vmbus_drv.c|4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 38470aa..dc4fb0b

[PATCH RESEND 20/27] Drivers: hv: vmbus: channge vmbus_connection.channel_lock to mutex

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui spinlock is unnecessary here. mutex is enough. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 12 ++-- drivers/hv/connection.c |7 +++ drivers/hv/hyperv_vmbus.h |2 +- 3 files changed, 10 insertions(+), 11

[PATCH RESEND 07/27] drivers/hv: cleanup synic msrs if vmbus connect failed

2015-12-14 Thread K. Y. Srinivasan
eanup() at each vcpu to get a chance to free allocated resources by hypervisor per synic. This patch does appropriate cleanup in case of vmbus_connect() failure. Signed-off-by: Andrey Smetanin Signed-off-by: Denis V. Lunev Reviewed-by: Vitaly Kuznetsov CC: "K. Y. Srinivasan" CC: Haiya

[PATCH RESEND 05/27] Drivers: hv: util: catch allocation errors

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering Catch allocation errors in hvutil_transport_send. Fixes: 14b50f80c32d ('Drivers: hv: util: introduce hv_utils_transport abstraction') Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |9 ++--- 1 files

[PATCH RESEND 03/27] tools: hv: report ENOSPC errors in hv_fcopy_daemon

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering Currently some "Unspecified error 0x80004005" is reported on the Windows side if something fails. Handle the ENOSPC case and return ERROR_DISK_FULL, which allows at least Copy-VMFile to report a meaning full error. Signed-off-by: Olaf Hering Signed-off-by: K. Y.

[PATCH RESEND 26/27] Drivers: hv: utils: Invoke the poll function after handshake

2015-12-14 Thread K. Y. Srinivasan
When the handshake with daemon is complete, we should poll the channel since during the handshake, we will not be processing any messages. This is a potential bug if the host is waiting for a response from the guest. I would like to thank Dexuan for pointing this out. Signed-off-by: K. Y

[PATCH RESEND 15/27] Drivers: hv: vmbus: Get rid of the unused irq variable

2015-12-14 Thread K. Y. Srinivasan
The irq we extract from ACPI is not used - we deliver hypervisor interrupts on a special vector. Make the necessary adjustments. Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 16 +++- 1 files changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/hv

[PATCH RESEND 18/27] Drivers: hv: vmbus: fix rescind-offer handling for device without a driver

2015-12-14 Thread K. Y. Srinivasan
the issue by moving hv_process_channel_removal() from vmbus_close_internal() to vmbus_device_release(), since the latter is always invoked on device_unregister(), whether or not the dev has a driver loaded. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.

[PATCH RESEND 22/27] tools/hv: Use include/uapi with __EXPORTED_HEADERS__

2015-12-14 Thread K. Y. Srinivasan
From: Kamal Mostafa Use the local uapi headers to keep in sync with "recently" added #define's (e.g. VSS_OP_REGISTER1). Fixes: 3eb2094c59e89db2bedd401e23c7a870081c9edb Signed-off-by: Kamal Mostafa Signed-off-by: K. Y. Srinivasan --- tools/hv/Makefile |2 ++ 1 files change

[PATCH RESEND 19/27] Drivers: hv: vmbus: release relid on error in vmbus_process_offer()

2015-12-14 Thread K. Y. Srinivasan
From: Dexuan Cui We want to simplify vmbus_onoffer_rescind() by not invoking hv_process_channel_removal(NULL, ...). Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c | 21 +++-- 1 files changed, 15 insertions(+), 6 deletions(-) diff

[PATCH RESEND 21/27] drivers:hv: Allow for MMIO claims that span ACPI _CRS records

2015-12-14 Thread K. Y. Srinivasan
From: Jake Oshins This patch makes 16GB GPUs work in Hyper-V VMs, since, for compatibility reasons, the Hyper-V BIOS lists MMIO ranges in 2GB chunks in its root bus's _CRS object. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/vmbus_drv.c | 16 ++

[PATCH RESEND 04/27] tools: hv: remove repeated HV_FCOPY string

2015-12-14 Thread K. Y. Srinivasan
From: Olaf Hering HV_FCOPY is already used as identifier in syslog. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_fcopy_daemon.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_daemon.c

[PATCH RESEND 10/27] drivers:hv: Define the channel type for Hyper-V PCI Express pass-through

2015-12-14 Thread K. Y. Srinivasan
From: Jake Oshins This defines the channel type for PCI front-ends in Hyper-V VMs. Signed-off-by: Jake Oshins Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3 +++ include/linux/hyperv.h| 11 +++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git

[PATCH RESEND 16/27] Drivers: hv: vmbus: serialize process_chn_event() and vmbus_close_internal()

2015-12-14 Thread K. Y. Srinivasan
by disabling the tasklet when the latter is running here. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 21 +++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c index c4dcab0..f7f3

[PATCH RESEND 02/27] Drivers: hv: utils: run polling callback always in interrupt context

2015-12-14 Thread K. Y. Srinivasan
the same as recv_channel. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_fcopy.c | 34 -- drivers/hv/hv_kvp.c | 28 ++-- drivers/hv/hv_snapshot.c | 29 +++-- drivers

[PATCH 0/9] Drivers: hv: Cleanup ringbuffer code

2015-12-14 Thread K. Y. Srinivasan
Cleanup ringbuffer code also fix some issues in the util services. Vitaly Kuznetsov (9): Drivers: hv: utils: fix memory leak on on_msg() failure Drivers: hv: utils: rename outmsg_lock Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode Drivers: hv: utils: fix crash when device is r

[PATCH 1/9] Drivers: hv: utils: fix memory leak on on_msg() failure

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov inmsg should be freed in case of on_msg() failure to avoid memory leak. Preserve the error code from on_msg(). Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |7 --- 1 files changed, 4 insertions(+), 3

[PATCH 3/9] Drivers: hv: utils: introduce HVUTIL_TRANSPORT_DESTROY mode

2015-12-14 Thread K. Y. Srinivasan
g hvt->mode from two separate contexts now we need to use a proper locking. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c | 71 ++ drivers/hv/hv_utils_transport.h |1 + 2 files changed, 57 insertion

[PATCH 4/9] Drivers: hv: utils: fix crash when device is removed from host side

2015-12-14 Thread K. Y. Srinivasan
from all users so the only way to solve the issue is to defer freeing the hvutil_transport structure. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c | 26 +++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff

[PATCH 2/9] Drivers: hv: utils: rename outmsg_lock

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov As a preparation to reusing outmsg_lock to protect test-and-set openrations on 'mode' rename it the more general 'lock'. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c | 14 ++

[PATCH 7/9] Drivers: hv: ring_buffer: remove code duplication from hv_ringbuffer_peek/read()

2015-12-14 Thread K. Y. Srinivasan
: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 68 +- 1 files changed, 25 insertions(+), 43 deletions(-) diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index 7bca513..07f9408 100644 --- a/drivers/hv

[PATCH 5/9] Drivers: hv: ring_buffer.c: fix comment style

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov Convert 6+-string comments repeating function names to normal kernel-style comments and fix a couple of other comment style issues. No textual or functional changes intended. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c

[PATCH 9/9] Drivers: hv: ring_buffer: eliminate hv_ringbuffer_peek()

2015-12-14 Thread K. Y. Srinivasan
things (acquire/release the above mentioned lock, calculate available space on the ring, ...) twice and this path is performance-critical. Remove hv_ringbuffer_peek() moving the logic from __vmbus_recvpacket() to hv_ringbuffer_read(). Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan

[PATCH 6/9] Drivers: hv: ring_buffer: remove stray smp_read_barrier_depends()

2015-12-14 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov smp_read_barrier_depends() does nothing on almost all arcitectures including x86 and having it in the beginning of hv_get_ringbuffer_availbytes() does not provide any guarantees anyway. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- include/linux

[PATCH 8/9] Drivers: hv: remove code duplication between vmbus_recvpacket()/vmbus_recvpacket_raw()

2015-12-14 Thread K. Y. Srinivasan
ufferlen case in vmbus_recvpacket(). I'm removing it as it is usless for users to see such messages and /vmbus_recvpacket_raw() doesn't have it. Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel.c | 65 +--

[PATCH 0/3] Drivers: hv: Fix CPU assignment for FC devices

2015-12-15 Thread K. Y. Srinivasan
. K. Y. Srinivasan (2): Drivers: hv: vmbus: Treat Fibre Channel devices as performance critical Drivers: hv: vmbus: Cleanup vmbus_set_event() Vitaly Kuznetsov (1): Drivers: hv: utils: fix hvt_op_poll() return value on transport destroy drivers/hv/channel_mgmt.c |3

[PATCH 1/3] Drivers: hv: utils: fix hvt_op_poll() return value on transport destroy

2015-12-15 Thread K. Y. Srinivasan
From: Vitaly Kuznetsov The return type of hvt_op_poll() is unsigned int and -EBADF is inappropriate, poll functions return POLL* statuses. Reported-by: Dexuan Cui Signed-off-by: Vitaly Kuznetsov Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_utils_transport.c |2 +- 1 files changed

[PATCH 3/3] Drivers: hv: vmbus: Cleanup vmbus_set_event()

2015-12-15 Thread K. Y. Srinivasan
Signed-off-by: K. Y. Srinivasan --- drivers/hv/connection.c |4 ++-- drivers/hv/hv.c | 16 drivers/hv/hyperv_vmbus.h |4 +--- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/drivers/hv/connection.c b/drivers/hv/connection.c index 3dc5a9c

[PATCH 2/3] Drivers: hv: vmbus: Treat Fibre Channel devices as performance critical

2015-12-15 Thread K. Y. Srinivasan
For performance critical devices, we distribute the incoming channel interrupt load across available CPUs in the guest. Include Fibre channel devices in the set of devices for which we would distribute the interrupt load. Signed-off-by: K. Y. Srinivasan --- drivers/hv/channel_mgmt.c |3

[PATCH 1/1] Drivers: hv: vmbus: Add vendor and device atttributes

2015-12-17 Thread K. Y. Srinivasan
Add vendor and device attributes to VMBUS devices. These will be used by Hyper-V tools as well user-level RDMA libraries that will use the vendor/device tuple to discover the RDMA device. Signed-off-by: K. Y. Srinivasan --- Documentation/ABI/stable/sysfs-bus-vmbus | 14 ++ drivers

[PATCH 1/1] Drivers: hv: vmbus: fix the building warning with hyperv-keyboard

2015-12-21 Thread K. Y. Srinivasan
initializer [-Wmissing-braces] { HV_KBD_GUID, }, ^ drivers/input/serio/hyperv-keyboard.c:427:2: warning: (near initialization for .id_table[0].guid.b.) [-Wmissing-braces] The patch fixes the warning. Signed-off-by: Dexuan Cui Signed-off-by: K. Y. Srinivasan --- drivers/input/serio

[PATCH 1/1] Drivers: hv: vmbus: Cleanup vmbus_set_event()

2015-12-21 Thread K. Y. Srinivasan
Cleanup vmbus_set_event() by inlining the hypercall to post the event and since the return value of vmbus_set_event() is not checked, make it void. As part of this cleanup, get rid of the function hv_signal_event() as it is only callled from vmbus_set_event(). Signed-off-by: K. Y. Srinivasan

[PATCH V4 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-23 Thread K. Y. Srinivasan
For FC devices managed by this driver, atttach the appropriate transport template. This will allow us to create the appropriate sysfs files for these devices. With this we can publish the wwn for both the port and the node. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng

[PATCH V4 3/4] scsi: storvsc: Refactor the code in storvsc_channel_init()

2015-12-23 Thread K. Y. Srinivasan
The function storvsc_channel_init() repeatedly interacts with the host to extract various channel properties. Refactor this code to eliminate code repetition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Tested-by: Alex Ng

[PATCH V4 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet

2015-12-23 Thread K. Y. Srinivasan
The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in Linux match the Window's definition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Johannes Thumshirn Reviewed-by: Long Li Reviewed-by: Hannes Reinecke Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c |5 ++--- 1

[PATCH V4 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-23 Thread K. Y. Srinivasan
storvsc_device and passing it as an argument. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Reviewed-by: Hannes Reinecke Tested-by: Alex Ng --- Added Reviewed-by: Hannes Reinecke Added additional details to the commit log - James Bottomley

[PATCH V4 0/4] scsi: storvsc: Properly support FC hosts

2015-12-23 Thread K. Y. Srinivasan
Properly support FC hosts. Additional cleanup patches are also included. V2: Comments from Dan Carpenter and from Johannes Thumshirn addressed. V3: Fixed build issues reported by kbuild test robot V4: Addressed comments from Hannes and James. K. Y

[PATCH V2 1/1] Drivers: hv: vmbus: Add vendor and device atttributes

2015-12-25 Thread K. Y. Srinivasan
Add vendor and device attributes to VMBUS devices. These will be used by Hyper-V tools as well user-level RDMA libraries that will use the vendor/device tuple to discover the RDMA device. Signed-off-by: K. Y. Srinivasan --- V2: Addressed comments from Greg KH Documentation/ABI/stable

[PATCH 1/1] scsi: scsi_transport_fc: Fix a bug in the error handling function

2016-01-07 Thread K. Y. Srinivasan
The macro startget_to_rport() can return NULL; handle that case properly. Signed-off-by: K. Y. Srinivasan Cc: --- drivers/scsi/scsi_transport_fc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index

[PATCH 0/2] scsi: storvsc: Miscellaneous fixes

2016-01-08 Thread K. Y. Srinivasan
Some miscellaneous fixes. K. Y. Srinivasan (2): scsi: storvsc: Install the storvsc specific timeout handler for FC devices scsi: storvsc: Use the specified target ID in device lookup drivers/scsi/storvsc_drv.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions

[PATCH 1/2] scsi: storvsc: Install the storvsc specific timeout handler for FC devices

2016-01-08 Thread K. Y. Srinivasan
The default timeout routine used for FC transport is not suitable for FC devices managed by storvsc since FC devices managed by storvsc driver do not have an rport associated with them. Use the time out handler used for SCSI devices for FC devices as well. Signed-off-by: K. Y. Srinivasan

[PATCH 2/2] scsi: storvsc: Use the specified target ID in device lookup

2016-01-08 Thread K. Y. Srinivasan
The current code assumes that there is only one target in device lookup. Fix this bug. This will alow us to correctly handle hot reomoval of LUNs. Signed-off-by: K. Y. Srinivasan --- drivers/scsi/storvsc_drv.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 1/1] Drivers: hv: vmbus: Fix a bug in hv_need_to_signal_on_read()

2016-03-11 Thread K. Y. Srinivasan
-by: K. Y. Srinivasan Tested-by: Dexuan Cui Cc: --- drivers/hv/ring_buffer.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index 5613e2b..085003a 100644 --- a/drivers/hv/ring_buffer.c +++ b/drivers/hv

[PATCH 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V

2016-03-12 Thread K. Y. Srinivasan
The default user scan function associated with FC (fc_user_scan) is not suitable for FC hosts on Hyper-V since we don't have an rport associated with FC host on Hyper-V . Set it to NULL so we can support manual scan of FC targets on Hyper-V. Signed-off-by: K. Y. Srinivasan Tested-by: Lo

<    1   2   3   4   5   6   7   8   9   10   >