[PATCH V5 3/6] Tools: hv: Add an example script to configure an interface

2012-09-05 Thread K. Y. Srinivasan
enabled, this script can be based on NM APIs. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- tools/hv/hv_set_ifconfig.sh | 68 +++ 1 files changed, 68 insertions(+), 0 deletions(-) create mode 100755 tools/hv/hv_set_ifconfig.sh diff

[PATCH V5 5/6] Tools: hv: Rename the function kvp_get_ip_address()

2012-09-05 Thread K. Y. Srinivasan
Rename the function kvp_get_ip_address() to better reflect the functionality being implemented. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- tools/hv/hv_kvp_daemon.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/hv/hv_kvp_daemon.c b/tools

[PATCH V5 6/6] Tools: hv: Implement the KVP verb - KVP_OP_GET_IP_INFO

2012-09-05 Thread K. Y. Srinivasan
Now implement the KVP verb - KVP_OP_GET_IP_INFO. This operation retrieves IP information for the specified interface. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- tools/hv/hv_kvp_daemon.c | 93 - 1 files changed, 90 insertions

[PATCH 0/3] Tools: hv

2012-09-05 Thread K. Y. Srinivasan
This patchset fixes some bugs in the KVP daemon code. Ben Hutchings (3): tools/hv: Fix file handle leak tools/hv: Fix exit() error code tools/hv: Check for read/write errors tools/hv/hv_kvp_daemon.c | 45 +++-- 1 files changed, 31 insertions(+), 14

[PATCH 3/3] tools/hv: Check for read/write errors

2012-09-05 Thread K. Y. Srinivasan
From: Ben Hutchings hv_kvp_daemon currently does not check whether fread() or fwrite() succeed. Add the necessary checks. Also, remove the incorrect use of feof() before fread(). Signed-off-by: Ben Hutchings Signed-off-by: K. Y. Srinivasan Cc: sta...@vger.kernel.org --- tools/hv

[PATCH 2/3] tools/hv: Fix exit() error code

2012-09-05 Thread K. Y. Srinivasan
Hutchings Signed-off-by: K. Y. Srinivasan Cc: sta...@vger.kernel.org --- tools/hv/hv_kvp_daemon.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c index 4514fb4..01b3ca5 100644 --- a/tools/hv/hv_kv

[PATCH 1/3] tools/hv: Fix file handle leak

2012-09-05 Thread K. Y. Srinivasan
From: Ben Hutchings Match up each fopen() with an fclose(). Signed-off-by: Ben Hutchings Signed-off-by: K. Y. Srinivasan Cc: sta...@vger.kernel.org --- tools/hv/hv_kvp_daemon.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv

[PATCH 1/1] tools/hv: Parse /etc/os-release

2012-09-06 Thread K. Y. Srinivasan
From: Ben Hutchings There is a new convention, used by systemd and supported by most distributions, to put basic OS release information in /etc/os-release. Added some additional error checking on strdup() Signed-off-by: Ben Hutchings Signed-off-by: K. Y. Srinivasan --- tools/hv

[PATCH 0/2] Drivers: hv

2012-10-07 Thread K. Y. Srinivasan
exports this symbol. K. Y. Srinivasan (2): mm: Export vm_committed_as Drivers: hv: Add Hyper-V balloon driver drivers/hv/Kconfig |6 + drivers/hv/Makefile |1 + drivers/hv/hv_balloon.c | 1043 +++ mm/mmap.c |1 + mm

[PATCH 1/2] mm: Export vm_committed_as

2012-10-07 Thread K. Y. Srinivasan
The policy engine on the host expects the guest to report the committed_as. Since this variable is not exported, export this symbol. Signed-off-by: K. Y. Srinivasan --- mm/mmap.c |1 + mm/nommu.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c

[PATCH 2/2] Drivers: hv: Add Hyper-V balloon driver

2012-10-07 Thread K. Y. Srinivasan
a given host. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/Kconfig |6 + drivers/hv/Makefile |1 + drivers/hv/hv_balloon.c | 1043 +++ 3 files changed, 1050 insertions(+), 0 deletions(-) create mode

[PATCH V1 0/2] Drivers: hv

2012-10-10 Thread K. Y. Srinivasan
variable 5) Got rid of the code that manipulated totalram_pages 6) Cleaned up the allocation flags. K. Y. Srinivasan (2): mm: Export vm_committed_as Drivers: hv: Add Hyper-V balloon driver drivers/hv/Kconfig |6 + drivers/hv/Makefile |1 + drivers/hv/hv_balloon.c | 1041

[PATCH V1 2/2] Drivers: hv: Add Hyper-V balloon driver

2012-10-10 Thread K. Y. Srinivasan
a given host. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/Kconfig |6 + drivers/hv/Makefile |1 + drivers/hv/hv_balloon.c | 1041 +++ 3 files changed, 1048 insertions(+), 0 deletions(-) create mode

[PATCH V1 1/2] mm: Export vm_committed_as

2012-10-10 Thread K. Y. Srinivasan
The policy engine on the host expects the guest to report the committed_as. Since this variable is not exported, export this symbol. Signed-off-by: K. Y. Srinivasan --- mm/mmap.c |1 + mm/nommu.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/mm/mmap.c b/mm/mmap.c

[PATCH 00/28] Drivers: hv: Update the Vmbus protocol

2012-12-01 Thread K. Y. Srinivasan
) in the guest. 3. Per- channel interrupt binding (as part of item 2) 4. More efficient demultiplexing of incoming interrupts 5. Per-channel signaling mechanism for host to guest communication K. Y. Srinivasan (28): Drivers: hv: Implement routines for read side

[PATCH 03/28] Drivers: hv: Turn off batched reading for util drivers

2012-12-01 Thread K. Y. Srinivasan
Util driver is not a performance critical driver and furthermore some util services such as KVP can only handle one outstanding message from the host. Turn off batched reading for util drivers. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/hv_util.c | 10

[PATCH 02/28] Drivers: hv: Add state to manage batched reading

2012-12-01 Thread K. Y. Srinivasan
For the "read" side signaling optimization, the reader has to completely drain the queue before exiting. Add state to manage this "batched" reading. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel_mgmt.c |7 +++ include/linu

[PATCH 01/28] Drivers: hv: Implement routines for read side signaling optimization

2012-12-01 Thread K. Y. Srinivasan
for the "writer" to signal the "reader" as new items are put on the read queue. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/hyperv_vmbus.h |4 drivers/hv/ring_buffer.c | 24 2 files changed, 28 insertions(+),

[PATCH 21/28] Drivers: hv: Get rid of unnecessary request for offers

2012-12-01 Thread K. Y. Srinivasan
This call to seek offers is not necessary and just adds unnecessary delay. Get rid of it. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/vmbus_drv.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv

[PATCH 25/28] Drivers: hv: Enable protocol negotiation with win8 hosts

2012-12-01 Thread K. Y. Srinivasan
Now that we have implemented all of the Win8 (WS2012) functionality, negotiate Win8 protocol with the host. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/connection.c |2 +- include/linux/hyperv.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff

[PATCH 27/28] Drivers: hv: Capture the host build information

2012-12-01 Thread K. Y. Srinivasan
Capture the host build information so it can be presented along with the negotiated vmbus version information. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/hv.c |9 + drivers/hv/hyperv_vmbus.h |7 +++ 2 files changed, 16 insertions

[PATCH 22/28] Drivers: hv: Manage event tasklets on per-cpu basis

2012-12-01 Thread K. Y. Srinivasan
Now that we can potentially take vmbus interrupts on any CPU, make the tasklets per-CPU. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/hv.c | 12 drivers/hv/hyperv_vmbus.h |6 ++ drivers/hv/vmbus_drv.c|4 +--- 3 files changed

[PATCH 28/28] Drivers: hv: Cleanup and consolidate reporting of build/version info

2012-12-01 Thread K. Y. Srinivasan
Now, cleanup and consolidate reporting of host and vmbus version numbers. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/connection.c | 11 +++ drivers/hv/hv.c |7 --- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/drivers

[PATCH 26/28] Drivers: hv: Implement flow management on the send side

2012-12-01 Thread K. Y. Srinivasan
Implement flow management on the send side. When the sender is blocked, the reader can potentially signal the sender to indicate there is now room to send. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel.c | 12 - drivers/hv/hyperv_vmbus.h

[PATCH 16/28] Drivers: hv: Setup a mapping for Hyper-V's notion cpu ID

2012-12-01 Thread K. Y. Srinivasan
On win8 (ws2012), incoming vmbus interrupt load can be spread across all available VCPUs in the guest. On a per-channel basis, the interrupts can be bound to specific CPUs. The Linux notion of cpu ID may be different from that of the hypervisor's. Setup a mapping structure. Signed-off-by:

[PATCH 14/28] Drivers: hv: Manage signaling state on a per-connection basis

2012-12-01 Thread K. Y. Srinivasan
The current code has a global handle for supporting signaling of the host from guest. Make this a per-channel attribute as on some versions of the host we can signal on per-channel handle. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel_mgmt.c | 20

[PATCH 15/28] Drivers: hv: Cleanup vmbus_set_event() to support win7 and beyond

2012-12-01 Thread K. Y. Srinivasan
On win7 (ws2008 R2) and beyond, we have the notion of having dedicated interrupts on a per-channel basis. When a channel has a dedicated interrupt assigned, there is no need to set the interrupt bit in the shared page. Implement this optimization. Signed-off-by: K. Y. Srinivasan Reviewed-by

[PATCH 12/28] Drivers: hv: Change the signature of vmbus_set_event()

2012-12-01 Thread K. Y. Srinivasan
In preparation for supporting a per-connection signaling mechanism, change the signature of vmbus_set_event(). This change is also needed to implement other aspects of the signaling optimization. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel.c |2

[PATCH 10/28] Drivers: hv: Save and export negotiated vmbus version

2012-12-01 Thread K. Y. Srinivasan
Export the negotiated vmbus version as this may be useful for individual drivers. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/connection.c |9 + include/linux/hyperv.h |6 ++ 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a

[PATCH 17/28] Drivers: hv: Add state to manage incoming channel interrupt load

2012-12-01 Thread K. Y. Srinivasan
Add state to bind a channel to a specific VCPU. This will help us better distribute incoming interrupt load. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel.c |2 +- drivers/hv/channel_mgmt.c |2 ++ include/linux/hyperv.h| 21

[PATCH 19/28] Drivers: hv: Add code to distribute channel interrupt load

2012-12-01 Thread K. Y. Srinivasan
a round-robin basis. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel_mgmt.c | 85 - 1 files changed, 84 insertions(+), 1 deletions(-) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 56ed45c

[PATCH 06/28] Drivers: hv: Get rid of hv_get_ringbuffer_interrupt_mask()

2012-12-01 Thread K. Y. Srinivasan
This function is no longer used; get rid of it. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/hyperv_vmbus.h |1 - drivers/hv/ring_buffer.c | 13 - 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/drivers/hv/hyperv_vmbus.h b/drivers

[PATCH 07/28] Drivers: hv: Support handling multiple VMBUS versions

2012-12-01 Thread K. Y. Srinivasan
The current code hard coded the vmbus version independent of the host it was running on. Add code to dynamically negotiate the most appropriate version. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/connection.c | 165

[PATCH 05/28] Drivers: hv: Optimize the signaling on the write path

2012-12-01 Thread K. Y. Srinivasan
The host has already implemented the "read" side optimizations. Leverage that to optimize "write" side signaling. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel.c | 15 +-- drivers/hv/hyperv_vmbus.h |2 +- driv

[PATCH 08/28] Drivers: hv: Update the ring buffer structure to match win8 functionality

2012-12-01 Thread K. Y. Srinivasan
Update the ringbuffer structure to support win8 functionality. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- include/linux/hyperv.h | 28 +--- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/include/linux/hyperv.h b/include/linux

[PATCH 09/28] Drivers: hv: Extend/modify vmbus_channel_offer_channel for win7 and beyond

2012-12-01 Thread K. Y. Srinivasan
The "offfer" message sent by the host has been extended in win7 (ws2008 R2). Add/modify state to reflect this extension. All these changes are backward compatible. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- include/linux/hyper

[PATCH 04/28] Drivers: hv: Optimize signaling in the read path

2012-12-01 Thread K. Y. Srinivasan
Now that we have the infratructure for correctly determining when we should signal the host; optimize the signaling on the read side - signaling the guest from the host. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/connection.c | 28

[PATCH 13/28] Drivers: hv: Move vmbus version definitions to hyperv.h

2012-12-01 Thread K. Y. Srinivasan
To support version specific optimization in various vmbus drivers, move the vmbus definitions to the public header file. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/connection.c | 15 --- include/linux/hyperv.h | 15 +++ 2 files

[PATCH 24/28] Drivers: hv: Add a check to deal with spurious interrupts

2012-12-01 Thread K. Y. Srinivasan
We establish the handler before we have fully initialized the VMBUS state. Deal with spurious interrupts. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/vmbus_drv.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/hv

[PATCH 20/28] Drivers: hv: Get rid of the unused global signaling state

2012-12-01 Thread K. Y. Srinivasan
Now that we have implemented a per-connection signaling mechanism, get rid of the global signaling state. For hosts that don't support per-connection signaling handle, we have moved the global state to be a per-channel state. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang

[PATCH 18/28] Drivers: hv: Modify the interrupt handling code to support win8 and beyond

2012-12-01 Thread K. Y. Srinivasan
Starting with Win8 (WS2012), the event page can be used to directly get the channel ID that needs servicing. Modify the channel event handling code to take advantage of this feature. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/connection.c | 26

[PATCH 11/28] Drivers: hv: Change the signature for hv_signal_event()

2012-12-01 Thread K. Y. Srinivasan
In preparation for implementing a per-connection signaling framework, change the signature of the function hv_signal_event(). The current code uses a global handle for signaling the host. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/connection.c |2

[PATCH 23/28] Drivers: hv: Handle vmbus interrupts concurrently on all cpus

2012-12-01 Thread K. Y. Srinivasan
Vmbus interrupts are unique in that while the interrupt is delivered on a given vector, these can be handled concurrently on different CPUs. Handle the vmbus interrupts concurrently on all the CPUs. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/hv.c|2

[PATCH 1/1] Drivers: hv: balloon: Fix a bug in the definition of struct dm_info_msg

2012-12-06 Thread K. Y. Srinivasan
There is bug in the definition of struct dm_info_msg. This patch fixes the definition of this structure and makes the corresponding adjustments. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/hv_balloon.c | 12 1 files changed, 8 insertions(+), 4

[PATCH 1/1] Drivers: hv: balloon: Fix a memory leak

2012-12-11 Thread K. Y. Srinivasan
The send buffer was being leaked; fix it. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang Reported-by: Jason Wang --- drivers/hv/hv_balloon.c | 23 +-- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv

[PATCH 1/1] mm: Export a function to get vm committed memory

2012-11-13 Thread K. Y. Srinivasan
including the memory commitment reported by the guests. The balloon driver for Linux on Hyper-V will use this function to retrieve guest memory commitment. This function is also used in Xen self ballooning code. Signed-off-by: K. Y. Srinivasan --- drivers/xen/xen-selfballoon.c |2 +- include

[PATCH RESEND V2 0/1] Drivers: hv

2012-11-14 Thread K. Y. Srinivasan
API for accessing guest committed memory has been accepted by Andrew Morton. K. Y. Srinivasan (1): Drivers: hv: Add Hyper-V balloon driver drivers/hv/Kconfig |6 + drivers/hv/Makefile |1 + drivers/hv/hv_balloon.c | 1041 +++ 3

[PATCH V2 1/1] Drivers: hv: Add Hyper-V balloon driver

2012-11-14 Thread K. Y. Srinivasan
a given host. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/Kconfig |6 + drivers/hv/Makefile |1 + drivers/hv/hv_balloon.c | 1041 +++ 3 files changed, 1048 insertions(+), 0 deletions(-) create mode

[PATCH 1/1] mm: Export a function to read vm_committed_as

2012-11-10 Thread K. Y. Srinivasan
memory pressure reported by the guests. The balloon driver for Linux on Hyper-V uses this function to report memory pressure back to the host. Signed-off-by: K. Y. Srinivasan --- include/linux/mman.h |2 ++ mm/mmap.c| 11 +++ mm/nommu.c | 11 +++ 3

[PATCH 1/1] X86: Handle Xen emulation of Hyper-V more gracefully

2013-04-18 Thread K. Y. Srinivasan
Install the Hyper-V specific interrupt handler only when needed. This would permit us to get rid of the Xen check. Note that when the vmbus drivers invokes the call to register its handler, we are sure to be running on Hyper-V. Signed-off-by: K. Y. Srinivasan --- arch/x86/kernel/cpu/mshyperv.c

[PATCH 0/5] Tools: hv: snapshot

2013-04-23 Thread K. Y. Srinivasan
These five patches were sent by Olaf a while ago. Greg wanted these re-submitted. I have tested these patches. Olaf Hering (5): Tools: hv: fix warnings in hv_vss_daemon tools: hv: fix checks for origin of netlink message in hv_vss_daemon tools: hv: use getmntent in hv_vss_daemon tools: hv:

[PATCH 1/5] [PATCH 1/3] Tools: hv: fix warnings in hv_vss_daemon

2013-04-23 Thread K. Y. Srinivasan
x27;: hv_vss_daemon.c:47: warning: 'fs_op' may be used uninitialized in this function Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_vss_daemon.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/hv/hv_vss_daemon.c b

[PATCH 2/5] [PATCH 2/3] tools: hv: fix checks for origin of netlink message in hv_vss_daemon

2013-04-23 Thread K. Y. Srinivasan
From: Olaf Hering <[mailto:o...@aepfle.de]> Similar to what commit 95a69adab9acfc3981c504737a2b6578e4d846ef ("tools: hv: Netlink source address validation allows DoS") does in hv_kvp_daemon, improve checks for origin of netlink connector message. Signed-off-by: Olaf Hering Sig

[PATCH 5/5] [PATCH 2/2] tools: hv: skip iso9660 mounts in hv_vss_daemon

2013-04-23 Thread K. Y. Srinivasan
From: Olaf Hering <[mailto:o...@aepfle.de]> freeze does not work for iso9660 filesystems. A ENOSUPP may be caught in the freeze case, but the subsequent thaw call would fail and leads to a false error. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_vss_da

[PATCH 3/5] [PATCH 3/3] tools: hv: use getmntent in hv_vss_daemon

2013-04-23 Thread K. Y. Srinivasan
From: Olaf Hering <[mailto:o...@aepfle.de]> As suggested by Paolo Bonzini, use getmntent instead of parsing output of mount(1). Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_vss_daemon.c | 39 +-- 1 files chang

[PATCH 4/5] [PATCH 1/2] tools: hv: use FIFREEZE/FITHAW in hv_vss_daemon

2013-04-23 Thread K. Y. Srinivasan
From: Olaf Hering <[mailto:o...@aepfle.de]> As suggested by Paolo Bonzini, use ioctl instead of calling fsfreeze. Signed-off-by: Olaf Hering Signed-off-by: K. Y. Srinivasan --- tools/hv/hv_vss_daemon.c | 31 ++- 1 files changed, 22 insertions(+), 9 del

[PATCH V3 0/5] Drivers: scsi: storvsc

2013-06-04 Thread K. Y. Srinivasan
related changes. I have since separated the VMBUS chages and these have already been checked in. In this version, based on comments from James, the timeout is no longer a module parameter. K. Y. Srinivasan (5): Drivers: scsi: storvsc: Increase the value of scsi timeout for storvsc devices

[PATCH 3/5] Drivers: scsi: storvsc: Implement multi-channel support

2013-06-04 Thread K. Y. Srinivasan
Implement multi-channel support for the storage devices. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c | 131 ++- 1 files changed, 127 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b

[PATCH 4/5] Drivers: scsi: storvsc: Support FC devices

2013-06-04 Thread K. Y. Srinivasan
Add support for synthetic Fibre Channel devices. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 1d4d425

[PATCH 1/5] Drivers: scsi: storvsc: Increase the value of scsi timeout for storvsc devices

2013-06-04 Thread K. Y. Srinivasan
since (a) the host is already implementing a variety of recovery strategies and (b) implementing a recovery strategy at the VM level may be more appropriate in cases where storage latencies exceed a certain threshold. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi

[PATCH 5/5] Drivers: scsi: storvsc: Increase the value of STORVSC_MAX_IO_REQUESTS

2013-06-04 Thread K. Y. Srinivasan
Increase the value of STORVSC_MAX_IO_REQUESTS to 200 requests. The current ringbuffer size can support this higher value. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 2/5] Drivers: scsi: storvsc: Update the storage protocol to win8 level

2013-06-04 Thread K. Y. Srinivasan
Update the storage protocol to the win8 level. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c | 203 1 files changed, 168 insertions(+), 35 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers

[PATCH V2 0/5] Drivers: scsi: storvsc

2013-06-03 Thread K. Y. Srinivasan
related changes. I have since separated the VMBUS chages and these have already been checked in. K. Y. Srinivasan (5): Drivers: scsi: storvsc: Make the scsi timeout a module parameter Drivers: scsi: storvsc: Update the storage protocol to win8 level Drivers: scsi: storvsc: Implement multi

[PATCH 5/5] Drivers: scsi: storvsc: Increase the value of STORVSC_MAX_IO_REQUESTS

2013-06-03 Thread K. Y. Srinivasan
Increase the value of STORVSC_MAX_IO_REQUESTS to 200 requests. The current ringbuffer size can support this higher value. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 2/5] Drivers: scsi: storvsc: Update the storage protocol to win8 level

2013-06-03 Thread K. Y. Srinivasan
Update the storage protocol to the win8 level. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c | 203 1 files changed, 168 insertions(+), 35 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers

[PATCH 1/5] Drivers: scsi: storvsc: Make the scsi timeout a module parameter

2013-06-03 Thread K. Y. Srinivasan
The standard scsi timeout is not appropriate in some of the environments where Hyper-V is deployed. Set this timeout appropriately for all devices managed by this driver. Further make this a module parameter. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi

[PATCH 4/5] Drivers: scsi: storvsc: Support FC devices

2013-06-03 Thread K. Y. Srinivasan
Add support for synthetic Fiber Channel devices. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index c89acf5

[PATCH 3/5] Drivers: scsi: storvsc: Implement multi-channel support

2013-06-03 Thread K. Y. Srinivasan
Implement multi-channel support for the storage devices. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c | 131 ++- 1 files changed, 127 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b

[PATCH 1/1] Drivers: hv: util: Fix a bug in version negotiation code for util services

2013-07-02 Thread K. Y. Srinivasan
-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel_mgmt.c | 75 +++- drivers/hv/hv_kvp.c | 24 ++- drivers/hv/hv_snapshot.c | 18 +++--- drivers/hv/hv_util.c | 21 +++-- include/linux

IMPORTANT MESSAGE

2013-07-05 Thread Y. H. K
-- Congrats!! your email has won the Yahoo H.K Lotto Cash Prize valued at Three Million Five Hundred Thousand Dollars. Please Contact Fran Mayer on Tel: +447031909741 or email: promos_...@yahoo.com.hk to claim your prize money. -- To unsubscribe from this list: send the line "unsubscribe lin

[PATCH V2 0/2] Drivers: hv: balloon: Fix some issues in the balloon driver

2013-07-14 Thread K. Y. Srinivasan
additional comments to the patch: 0001-Drivers-hv-balloon-Fix-a-bug-in-the-hot-add-code.patch based on the comments from Ben Hutchings . K. Y. Srinivasan (2): Drivers: hv: balloon: Fix a bug in the hot-add code Drivers: hv: balloon: Do not post pressure status if interrupted drivers/hv/hv_balloon.c

[PATCH V2 2/2] Drivers: hv: balloon: Do not post pressure status if interrupted

2013-07-14 Thread K. Y. Srinivasan
When we are posting pressure status, we may get interrupted and handle the un-balloon operation. In this case just don't post the status as we know the pressure status is stale. Signed-off-by: K. Y. Srinivasan Cc: Stable --- drivers/hv/hv_balloon.c |8 1 files chang

[PATCH V2 1/2] Drivers: hv: balloon: Fix a bug in the hot-add code

2013-07-14 Thread K. Y. Srinivasan
the only failure is that the memory is not onlined within the allowed time, we should not be rolling back the state. Fix this bug. Signed-off-by: K. Y. Srinivasan Cc: Stable --- drivers/hv/hv_balloon.c | 13 + 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/hv

[PATCH 1/1] Drivers: hv: balloon: Initialize the transaction ID just before sending the packet

2013-07-17 Thread K. Y. Srinivasan
Each message sent from the guest carries with it a transaction ID. Assign the transaction ID just before putting the message on the VMBUS. This would help in debugging on the host side. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c |4 ++-- 1 files changed, 2 insertions(+), 2

RE: [RFC PATCH v2 3/7] dmaengine: enhance dmaengine to support DMA device hotplug

2013-08-08 Thread Wang, Rui Y
Hi Jiang, See my comments inline. > -Original Message- > From: Jiang Liu > Date: Mon, 14 May 2012 21:47:05 +0800 > Subject: [RFC PATCH v2 3/7] dmaengine: enhance dmaengine to support DMA > device hotplug > To: Dan Williams , Maciej Sosnowski > , Vinod Koul > Cc: Jiang Liu , Keping Chen ,

RE: [RFC PATCH v2 3/7] dmaengine: enhance dmaengine to support DMA device hotplug

2013-08-08 Thread Wang, Rui Y
(resend adding cc list) Hi Jiang, See my comments inline. > -Original Message- > From: Jiang Liu > Date: Mon, 14 May 2012 21:47:05 +0800 > Subject: [RFC PATCH v2 3/7] dmaengine: enhance dmaengine to support DMA > device hotplug > To: Dan Williams , Maciej Sosnowski > , Vinod Koul > Cc:

RE: [RFC PATCH v2 3/7] dmaengine: enhance dmaengine to support DMA device hotplug

2013-08-08 Thread Wang, Rui Y
> -Original Message- > From: Jon Mason [mailto:jdma...@kudzu.us] > Sent: Friday, August 09, 2013 8:04 AM > To: Wang, Rui Y > Cc: liu...@gmail.com; Sosnowski, Maciej; Koul, Vinod; > chenkep...@huawei.com; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org; Luck

[PATCH 1/1] Drivers: base: memory: Export symbols for onlining memory blocks

2013-07-19 Thread K. Y. Srinivasan
The current machinery for hot-adding memory requires having udev rules to bring the memory segments online. Export the necessary functionality to to bring the memory segment online without involving user space code. Signed-off-by: K. Y. Srinivasan --- drivers/base/memory.c |5

[PATCH 2/2] Drivers: hv: balloon: Online the hot-added memory "in context"

2013-07-24 Thread K. Y. Srinivasan
Leverage the newly exported functionality to bring memory online without involving user level code. Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 20 +++- 1 files changed, 3 insertions(+), 17 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv

[PATCH 1/2] Drivers: base: memory: Export functionality for "in kernel" onlining of memory

2013-07-24 Thread K. Y. Srinivasan
The current machinery for hot-adding memory requires having user level to bring the memory segments online. Export the necessary functionality to bring the memory segment online without involving user space code. Signed-off-by: K. Y. Srinivasan --- drivers/base/memory.c | 35

[PATCH 0/2] Drivers: hv: balloon: Online memory segments "in context"

2013-07-24 Thread K. Y. Srinivasan
within a driver. K. Y. Srinivasan (2): Drivers: base: memory: Export functionality for "in kernel" onlining of memory Drivers: hv: balloon: Online the hot-added memory "in context" drivers/base/memory.c | 35 +++ drivers/hv

IMPORTANT MESSAGE

2013-07-26 Thread Y H K
Congrats!! your Email has Won the Yahoo HK Lotto Cash Prize valued at Three Million Five Hundred Thousand Dollars. Please Contact Fran Mayer on Tel: +447031909741 or Email: promos_...@yahoo.com.hk to claim your prize Money. -- To unsubscribe from this list: send the line "unsubscribe linux-kern

[PATCH 1/1] mm: Export split_page().

2013-03-03 Thread K. Y. Srinivasan
. Export the split_page() function to let the guest allocations be in 2M chunks while the host is free to return this memory at arbitrary granularity. Signed-off-by: K. Y. Srinivasan --- mm/page_alloc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/mm/page_alloc.c b/mm

[PATCH 0/6] Drivers: hv/scsi: Implement multi-channel support

2013-05-15 Thread K. Y. Srinivasan
patches. K. Y. Srinivasan (6): Drivers: hv: vmbus: Implement multi-channel support Drivers: hv: Add the GUID fot synthetic fiber channel device Drivers: scsi: storvsc: Make the scsi timeout a module parameter Drivers: scsi: storvsc: Update the storage protocol to win8 level Drivers: scsi

[PATCH 5/6] Drivers: scsi: storvsc: Implement multi-channel support

2013-05-15 Thread K. Y. Srinivasan
Implement multi-channel support for the storage devices. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c | 124 ++-- 1 files changed, 120 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b

[PATCH 2/6] Drivers: hv: Add the GUID fot synthetic fiber channel device

2013-05-15 Thread K. Y. Srinivasan
In preparation for supporting synthetic Fiber Channel device, add the GUID for this service. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- include/linux/hyperv.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/linux/hyperv.h b/include

[PATCH 1/6] Drivers: hv: vmbus: Implement multi-channel support

2013-05-15 Thread K. Y. Srinivasan
of a given device across all available CPUs. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel.c | 41 ++-- drivers/hv/channel_mgmt.c | 117 +++-- include/linux/hyperv.h| 62

[PATCH 3/6] Drivers: scsi: storvsc: Make the scsi timeout a module parameter

2013-05-15 Thread K. Y. Srinivasan
The standard scsi timeout is not appropriate in some of the environments where Hyper-V is deployed. Set this timeout appropriately for all devices managed by this driver. Further make this a module parameter. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi

[PATCH 4/6] Drivers: scsi: storvsc: Update the storage protocol to win8 level

2013-05-15 Thread K. Y. Srinivasan
Update the storage protocol to the win8 level. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c | 203 1 files changed, 168 insertions(+), 35 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers

[PATCH 6/6] Drivers: scsi: storvsc: Support FC devices

2013-05-15 Thread K. Y. Srinivasan
Add support for synthetic Fiber Channel devices. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index bed8d23

[PATCH V1 0/7] Drivers: hv/scsi: Implement multi-channel support

2013-05-16 Thread K. Y. Srinivasan
scsi patches. In this version, based on Greg's comments, I have fixed the names of the exported symbols from the vmbus driver. K. Y. Srinivasan (7): Drivers: hv: vmbus: Implement multi-channel support Drivers: hv: Add the GUID fot synthetic fiber channel device Drivers: scsi: storvsc:

[PATCH V1 1/7] Drivers: hv: vmbus: Implement multi-channel support

2013-05-16 Thread K. Y. Srinivasan
of a given device across all available CPUs. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/hv/channel.c | 41 ++-- drivers/hv/channel_mgmt.c | 116 +++-- include/linux/hyperv.h| 62

[PATCH V1 2/7] Drivers: hv: Add the GUID fot synthetic fiber channel device

2013-05-16 Thread K. Y. Srinivasan
In preparation for supporting synthetic Fiber Channel device, add the GUID for this service. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- include/linux/hyperv.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/include/linux/hyperv.h b/include

[PATCH V1 3/7] Drivers: scsi: storvsc: Make the scsi timeout a module parameter

2013-05-16 Thread K. Y. Srinivasan
The standard scsi timeout is not appropriate in some of the environments where Hyper-V is deployed. Set this timeout appropriately for all devices managed by this driver. Further make this a module parameter. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi

[PATCH V1 4/7] Drivers: scsi: storvsc: Update the storage protocol to win8 level

2013-05-16 Thread K. Y. Srinivasan
Update the storage protocol to the win8 level. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c | 203 1 files changed, 168 insertions(+), 35 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers

[PATCH V1 5/7] Drivers: scsi: storvsc: Implement multi-channel support

2013-05-16 Thread K. Y. Srinivasan
Implement multi-channel support for the storage devices. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c | 124 ++-- 1 files changed, 120 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b

[PATCH V1 6/7] Drivers: scsi: storvsc: Support FC devices

2013-05-16 Thread K. Y. Srinivasan
Add support for synthetic Fiber Channel devices. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 6bc4e3b

[PATCH V1 7/7] Drivers: scsi: storvsc: Increase the value of STORVSC_MAX_IO_REQUESTS

2013-05-16 Thread K. Y. Srinivasan
Increase the value of STORVSC_MAX_IO_REQUESTS to 200 requests. The current ringbuffer size can support this higher value. Signed-off-by: K. Y. Srinivasan Reviewed-by: Haiyang Zhang --- drivers/scsi/storvsc_drv.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers

[PATCH 1/1] Drivers: hv: vmbus: Add additional distro specific Kconfig options

2013-04-10 Thread K. Y. Srinivasan
The guest ID captures information about the guest and has room for distributions to add distro specific information. Add Kconfig options to support distro specific information to be managed easily. Signed-off-by: K. Y. Srinivasan --- drivers/hv/Kconfig| 14 ++ drivers/hv

[PATCH 1/1] Staging: hv: Fix a bug in get_vp_index()

2013-05-10 Thread K. Y. Srinivasan
Linux' notion of cpuid is different from the Host's notion of CPUID. In the call to bind the channel interrupts, we should use the host's notion of CPU Ids. Fix this bug. Signed-off-by: K. Y. Srinivasan Cc: Stable (V3.9) --- drivers/hv/channel_mgmt.c |2 +- 1 files change

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