Skip to content

Commit

Permalink
Add additional debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldfish64 committed Aug 14, 2021
1 parent df0ccca commit 45ec967
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions MacHyperVSupport/IntegrationComponents/HyperVShutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,8 @@ bool HyperVShutdown::handleShutdown(VMBusICMessageShutdownData *shutdownData) {
}

shutdownData->header.status = result ? kHyperVStatusSuccess : kHyperVStatusFail;
if (!result) {
SYSLOG("Platform does not support shutdown");
}
return result;
}
4 changes: 1 addition & 3 deletions MacHyperVSupport/PlatformProvider/HyperVPlatformProvider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,14 @@ void HyperVPlatformProvider::init() {
//
// Lilu is used for certain functions of child devices, register patcher callback.
//
lilu.onPatcherLoad([](void *user, KernelPatcher &patcher) {
lilu.onPatcherLoadForce([](void *user, KernelPatcher &patcher) {
static_cast<HyperVPlatformProvider *>(user)->onLiluPatcherLoad(patcher);
}, this);

//
// Patch setConsoleInfo to call our wrapper function instead.
// 10.6 to 10.12 may pass garbage data to setConsoleInfo from IOPCIConfigurator::configure().
//
// FIXME: This will need to be adapted for 32-bit support.
//
KernelVersion kernelVersion = getKernelVersion();
if (kernelVersion >= KernelVersion::SnowLeopard && kernelVersion <= KernelVersion::Sierra) {
setConsoleInfoAddr = OSMemberFunctionCast(mach_vm_address_t, IOService::getPlatform(), &IOPlatformExpert::setConsoleInfo);
Expand Down
1 change: 1 addition & 0 deletions MacHyperVSupport/VMBusDevice/HyperVVMBusDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ bool HyperVVMBusDevice::openChannel(UInt32 txSize, UInt32 rxSize, OSObject *owne
}

channelIsOpen = true;
DBGLOG("Opened channel for %u", channelId);
return true;
}

Expand Down

0 comments on commit 45ec967

Please sign in to comment.