🐛 Name the arm64 guest mouse's HID transport

On arm64 the guest's mouse is a child of display 0's framebuffer, which
carries IOMobileFramebuffer's "Transport" as a dictionary. The mouse named no
transport of its own, so the HID event system's lookup through its parents
found that dictionary, and macOS 26.6.2's ReportIntervalServiceFilter sent it
isEqualToString:. WindowServer died of the exception at each start, and a
guest that took POINTER_MOTION (the library's window) got no desktop (potluck
job m3-max-35949).

What changes for the guest: on arm64 the mouse's IOHIDDevice publishes
"Transport" = "Virtual" (kIOHIDTransportVirtualValue). The x86-64 kext is
unchanged: its framebuffer has no "Transport".
This commit is contained in:
Anees Iqbal committed 2026-11-16 03:02:35 -08:00
1 parent 6bd35b8bc5
commit 8277faa32a
2 files changed
+18

No files matched your search

+8
View File
@@ -5,6 +5,7 @@
#include "RgfxPointerDevice.hpp"
#include <IOKit/IOLib.h>
#include <IOKit/hid/IOHIDKeys.h>
#include <IOKit/hid/IOHIDUsageTables.h>
OSDefineMetaClassAndFinalStructors(RgfxPointerDevice, IOHIDDevice);
@@ -84,6 +85,13 @@ OSNumber *RgfxPointerDevice::newPrimaryUsagePageNumber() const
return OSNumber::withNumber(static_cast<unsigned long long>(kHIDPage_GenericDesktop), 32);
}
#if defined(__arm64e__)
OSString *RgfxPointerDevice::newTransportString() const
{
return OSString::withCString(kIOHIDTransportVirtualValue);
}
#endif
bool RgfxPointerDevice::willTerminate(IOService *provider, IOOptionBits options)
{
return IOHIDDevice::willTerminate(provider, options);
+10
View File
@@ -48,6 +48,16 @@ public:
OSNumber *newProductIDNumber() const override;
OSNumber *newPrimaryUsageNumber() const override;
OSNumber *newPrimaryUsagePageNumber() const override;
#if defined(__arm64e__)
// Its HID transport, "Virtual" (kIOHIDTransportVirtualValue), on arm64 alone. There display
// 0's framebuffer, its provider, carries IOMobileFramebuffer's own "Transport", a dictionary
// (ReimsGraphicsMobile.cpp), which a lookup of the mouse's transport through its parents finds
// where the mouse names none: macOS 26.6.2's ReportIntervalServiceFilter took it for a string,
// and WindowServer died of the exception at each start, so no desktop came (lane a64ptr,
// potluck job m3-max-35949). The x86-64 kext's framebuffer has no "Transport", so its mouse
// names none, as before.
OSString *newTransportString() const override;
#endif
// IOHIDDevice's own methods that an older release's IOHIDDevice does not define, each called
// through IOHIDDevice's vtable (above). willTerminate and didTerminate are IOService's slots: