Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170895351
D6412.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
535 B
Referenced Files
None
Subscribers
None
D6412.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
@@ -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
Tue, Sep 8, 9:44 AM (3 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38510464
Default Alt Text
D6412.diff (535 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