Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150674861
D6530.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
527 B
Referenced Files
None
Subscribers
None
D6530.id.diff
View Options
Index: head/sys/dev/hyperv/vmbus/hv_hv.c
===================================================================
--- head/sys/dev/hyperv/vmbus/hv_hv.c
+++ head/sys/dev/hyperv/vmbus/hv_hv.c
@@ -390,11 +390,14 @@
static void
hypercall_destroy(void *arg __unused)
{
+ uint64_t hc;
+
if (hypercall_context.hc_addr == NULL)
return;
/* Disable Hypercall */
- wrmsr(MSR_HV_HYPERCALL, 0);
+ hc = rdmsr(MSR_HV_HYPERCALL);
+ wrmsr(MSR_HV_HYPERCALL, (hc & MSR_HV_HYPERCALL_RSVD_MASK));
hypercall_memfree();
if (bootverbose)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 6:59 AM (18 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30804647
Default Alt Text
D6530.id.diff (527 B)
Attached To
Mode
D6530: hyperv: Preserve required bits when disable Hypercall
Attached
Detach File
Event Timeline
Log In to Comment