diff options
author | K. Y. Srinivasan <kys@microsoft.com> | 2011-12-12 09:29:17 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-12-12 14:26:50 -0800 |
commit | 93e5bd06a95343c701361fa009cdc5a653d6ec8e (patch) | |
tree | fe28f7a5ad3c009fbf8e197c94c74b444015630f /drivers/hv/hv.c | |
parent | 8b8ee6753154dd6cfe397e0d29fe7f90a8adb50b (diff) | |
download | blackbird-obmc-linux-93e5bd06a95343c701361fa009cdc5a653d6ec8e.tar.gz blackbird-obmc-linux-93e5bd06a95343c701361fa009cdc5a653d6ec8e.zip |
Drivers: hv: Make the vmbus driver unloadable
It turns out that the vmbus driver can be made unloadable. Make it
unloadable.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/hv/hv.c')
-rw-r--r-- | drivers/hv/hv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index 0fb100ed91a3..f8a77d01a516 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -237,6 +237,9 @@ void hv_cleanup(void) { union hv_x64_msr_hypercall_contents hypercall_msr; + /* Reset our OS id */ + wrmsrl(HV_X64_MSR_GUEST_OS_ID, 0); + kfree(hv_context.signal_event_buffer); hv_context.signal_event_buffer = NULL; hv_context.signal_event_param = NULL; |