1. 07 3月, 2018 1 次提交
    • M
      Drivers: hv: vmbus: Fix ring buffer signaling · 655296c8
      Michael Kelley 提交于
      Fix bugs in signaling the Hyper-V host when freeing space in the
      host->guest ring buffer:
      
      1. The interrupt_mask must not be used to determine whether to signal
         on the host->guest ring buffer
      2. The ring buffer write_index must be read (via hv_get_bytes_to_write)
         *after* pending_send_sz is read in order to avoid a race condition
      3. Comparisons with pending_send_sz must treat the "equals" case as
         not-enough-space
      4. Don't signal if the pending_send_sz feature is not present. Older
         versions of Hyper-V that don't implement this feature will poll.
      
      Fixes: 03bad714 ("vmbus: more host signalling avoidance")
      
      Cc: Stable <stable@vger.kernel.org> # 4.14 and above
      Signed-off-by: NMichael Kelley <mhkelley@outlook.com>
      Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      655296c8
  2. 03 12月, 2017 1 次提交
  3. 17 7月, 2017 5 次提交
  4. 17 3月, 2017 4 次提交
  5. 07 3月, 2017 1 次提交
  6. 15 2月, 2017 4 次提交
  7. 10 2月, 2017 1 次提交
  8. 31 1月, 2017 1 次提交
  9. 11 1月, 2017 1 次提交
  10. 07 11月, 2016 3 次提交
  11. 02 9月, 2016 2 次提交
  12. 31 8月, 2016 1 次提交
  13. 01 5月, 2016 7 次提交
  14. 08 2月, 2016 2 次提交
  15. 15 12月, 2015 3 次提交
  16. 06 8月, 2015 1 次提交
  17. 24 9月, 2014 1 次提交
    • K
      Drivers: hv: vmbus: Enable interrupt driven flow control · 046c7911
      K. Y. Srinivasan 提交于
      In win8 we have a feature that allows for interrupt driven flow management
      for host/guest communication. For instance, if the host were blocked because
      there was no space available in the ringbuffer, the host could request that the
      guest send an interrupt when space becomes available in the ringbuffer (when
      the guest drains the ringbuffer).
      
      While this feature was implemented in the guest a while ago, we had not
      advertised that the guest supported this feature. This patch advertises
      the support to the host.
      
      For pre-win8 hosts, this has no effect since the size of the ringbuffer
      control structure has not changed and all changes have been backward
      compatible - unused/reserved space has been used to implement this
      feature.
      
      In this version of the patch I have cleaned up the commit log based on
      feedback from Greg KH.
      Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      046c7911
  18. 08 2月, 2014 1 次提交