Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150626639
D6412.id16461.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
520 B
Referenced Files
None
Subscribers
None
D6412.id16461.diff
View Options
Index: sys/dev/hyperv/vmbus/hv_hv.c
===================================================================
--- sys/dev/hyperv/vmbus/hv_hv.c
+++ sys/dev/hyperv/vmbus/hv_hv.c
@@ -501,8 +501,12 @@
static void
hyperv_init(void *dummy __unused)
{
- if (!hyperv_identify())
+ if (!hyperv_identify()) {
+ /* Not Hyper-V; reset guest id to the generic one. */
+ if (vm_guest == VM_GUEST_HV)
+ vm_guest = VM_GUEST_VM;
return;
+ }
if (hyperv_features & HV_FEATURE_MSR_TIME_REFCNT) {
/* Register virtual timecount */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 10:21 PM (7 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30782452
Default Alt Text
D6412.id16461.diff (520 B)
Attached To
Mode
D6412: hyperv: Set vm_guest to VM_GUEST_VM, if hypervisor is not Hyper-V
Attached
Detach File
Event Timeline
Log In to Comment