Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F141004221
D6412.id16510.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.id16510.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
Wed, Dec 31, 3:46 PM (12 h, 53 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27415547
Default Alt Text
D6412.id16510.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