Does PCIDriverKit support PCI Device PNP?

I am woriking on SCSIControllerDriverKit IOUserSCSIParallelInterfaceController

When I hot-plug my PCIe SCSI controller, the controller works normally, but when I hot remove the PCIe SCSI controller, the driverkit crashes.

Thread 3 Crashed:: Dispatch queue: MyUserSpaceDriver-Default

I found out that the cause of the kernel panic is from my code "OSSafeReleaseNULL(ivars->pciDevice);" But after removing it, the system is still not as expected. After a hot unplug, the Thunderbolt cable was plugged in again and the PCIe Device Controller never came back. My DEXT user space driver is never loaded again. Only reboot the system once.

PCIDriverKit support PCI Device PNP is ready for Intel x86 base. But Not yet Ready for M1 (arm64)

Does PCIDriverKit support PCI Device PNP?
 
 
Q