Skip to content

Commit 8f844d6

Browse files
committed
VMBus: Attach VMBus device nubs in IODeviceTree
1 parent ac9e08c commit 8f844d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

MacHyperVSupport/VMBus/HyperVVMBus.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "HyperVVMBus.hpp"
99

1010
#include "HyperVVMBusDevice.hpp"
11+
#include <IOKit/IODeviceTreeSupport.h>
1112

1213
OSDefineMetaClassAndStructors(HyperVVMBus, super);
1314

@@ -448,6 +449,12 @@ bool HyperVVMBus::registerVMBusDevice(VMBusChannel *channel) {
448449
return false;
449450
}
450451

452+
result = childDevice->attachToParent(hvController->getProvider(), gIODTPlane);
453+
if (!result) {
454+
HVSYSLOG("Failed to attach to IODT");
455+
childDevice->release();
456+
return false;
457+
}
451458
childDevice->registerService();
452459
channel->deviceNub = childDevice;
453460

0 commit comments

Comments
 (0)