Page MenuHomeFreeBSD

D6412.id16510.diff
No OneTemporary

D6412.id16510.diff

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

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)

Event Timeline