1. 25 5月, 2015 4 次提交
  2. 03 4月, 2015 2 次提交
  3. 25 3月, 2015 2 次提交
  4. 02 3月, 2015 3 次提交
    • N
      Drivers: hv: vmbus: Add support for VMBus panic notifier handler · 96c1d058
      Nick Meier 提交于
      Hyper-V allows a guest to notify the Hyper-V host that a panic
      condition occured.  This notification can include up to five 64
      bit values.  These 64 bit values are written into crash MSRs.
      Once the data has been written into the crash MSRs, the host is
      then notified by writing into a Crash Control MSR.  On the Hyper-V
      host, the panic notification data is captured in the Windows Event
      log as a 18590 event.
      
      Crash MSRs are defined in appendix H of the Hypervisor Top Level
      Functional Specification.  At the time of this patch, v4.0 is the
      current functional spec.  The URL for the v4.0 document is:
      
      http://download.microsoft.com/download/A/B/4/AB43A34E-BDD0-4FA6-BDEF-79EEF16E880B/Hypervisor Top Level Functional Specification v4.0.docx
      Signed-off-by: NNick Meier <nmeier@microsoft.com>
      Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      96c1d058
    • V
      Drivers: hv: vmbus: Teardown clockevent devices on module unload · e086748c
      Vitaly Kuznetsov 提交于
      Newly introduced clockevent devices made it impossible to unload hv_vmbus
      module as clockevents_config_and_register() takes additional reverence to
      the module. To make it possible again we do the following:
      - avoid setting dev->owner for clockevent devices;
      - implement hv_synic_clockevents_cleanup() doing clockevents_unbind_device();
      - call it from vmbus_exit().
      
      In theory hv_synic_clockevents_cleanup() can be merged with hv_synic_cleanup(),
      however, we call hv_synic_cleanup() from smp_call_function_single() and this
      doesn't work for clockevents_unbind_device() as it does such call on its own. I
      opted for a separate function.
      Signed-off-by: NVitaly Kuznetsov <vkuznets@redhat.com>
      Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e086748c
    • V
      Drivers: hv: vmbus: teardown hv_vmbus_con workqueue and vmbus_connection pages on shutdown · 09a19628
      Vitaly Kuznetsov 提交于
      We need to destroy hv_vmbus_con on module shutdown, otherwise the following
      crash is sometimes observed:
      
      [   76.569845] hv_vmbus: Hyper-V Host Build:9600-6.3-17-0.17039; Vmbus version:3.0
      [   82.598859] BUG: unable to handle kernel paging request at ffffffffa0003480
      [   82.599287] IP: [<ffffffffa0003480>] 0xffffffffa0003480
      [   82.599287] PGD 1f34067 PUD 1f35063 PMD 3f72d067 PTE 0
      [   82.599287] Oops: 0010 [#1] SMP
      [   82.599287] Modules linked in: [last unloaded: hv_vmbus]
      [   82.599287] CPU: 0 PID: 26 Comm: kworker/0:1 Not tainted 3.19.0-rc5_bug923184+ #488
      [   82.599287] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v1.0 11/26/2012
      [   82.599287] Workqueue: hv_vmbus_con 0xffffffffa0003480
      [   82.599287] task: ffff88007b6ddfa0 ti: ffff88007f8f8000 task.ti: ffff88007f8f8000
      [   82.599287] RIP: 0010:[<ffffffffa0003480>]  [<ffffffffa0003480>] 0xffffffffa0003480
      [   82.599287] RSP: 0018:ffff88007f8fbe00  EFLAGS: 00010202
      ...
      
      To avoid memory leaks we need to free monitor_pages and int_page for
      vmbus_connection. Implement vmbus_disconnect() function by separating cleanup
      path from vmbus_connect().
      
      As we use hv_vmbus_con to release channels (see free_channel() in channel_mgmt.c)
      we need to make sure the work was done before we remove the queue, do that with
      drain_workqueue(). We also need to avoid handling messages  which can (potentially)
      create new channels, so set vmbus_connection.conn_state = DISCONNECTED at the very
      beginning of vmbus_exit() and check for that in vmbus_onmessage_work().
      Signed-off-by: NVitaly Kuznetsov <vkuznets@redhat.com>
      Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      09a19628
  5. 26 1月, 2015 1 次提交
  6. 24 9月, 2014 1 次提交
  7. 04 6月, 2014 1 次提交
  8. 04 5月, 2014 1 次提交
  9. 19 2月, 2014 1 次提交
    • K
      Drivers: hv: Implement the file copy service · 01325476
      K. Y. Srinivasan 提交于
      Implement the file copy service for Linux guests on Hyper-V. This permits the
      host to copy a file (over VMBUS) into the guest. This facility is part of
      "guest integration services" supported on the Windows platform.
      Here is a link that provides additional details on this functionality:
      
      http://technet.microsoft.com/en-us/library/dn464282.aspx
      
      In V1 version of the patch I have addressed comments from
      Olaf Hering <olaf@aepfle.de> and Dan Carpenter <dan.carpenter@oracle.com>
      
      In V2 version of this patch I did some minor cleanup (making some globals
      static). In V4 version of the patch I have addressed all of Olaf's
      most recent set of comments/concerns.
      
      In V5 version of the patch I had addressed Greg's most recent comments.
      I would like to thank Greg for suggesting that I use misc device; it has
      significantly simplified the code.
      
      In V6 version of the patch I have cleaned up error message based on Olaf's
      comments. I have also rebased the patch based on the current tip.
      
      In this version of the patch, I have addressed the latest comments from Greg.
      Signed-off-by: NK. Y. Srinivasan <kys@microsoft.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      01325476
  10. 08 2月, 2014 1 次提交
  11. 27 9月, 2013 2 次提交
  12. 25 6月, 2013 1 次提交
  13. 18 1月, 2013 11 次提交
  14. 14 8月, 2012 1 次提交
  15. 20 7月, 2012 1 次提交
  16. 10 4月, 2012 1 次提交
  17. 10 2月, 2012 1 次提交
  18. 13 12月, 2011 1 次提交
  19. 11 10月, 2011 2 次提交
  20. 10 9月, 2011 2 次提交