Date: Wed, 13 Dec 2017 13:31:37 +0100 From: Florian Florensa <florian.florensa@gmail.com> To: freebsd-drivers@freebsd.org Subject: Virtual HBA SIM Message-ID: <CACkk1yRdBmKEUF9HWT8v0OGcOLbLn3pMK=jEvdkv60%2BW1-%2Bf9w@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello everyone, I've been working on a FreeBSD sim that would emulate a SCSI HBA and a few attached SCSI devices. For now, i have been struggling with the device creation in the system. Here is what happens inside the code: the driver setup a new 'fake' device and call online_device with the needed parameter. Online device call the 'vhba_cam_init' which create the sim for the fake device (along with its devq, mtx, path and bus registering). Afterwords it setups a CCB with the func code XPT_GDEV_TYPE, call xpt_action, and finally xpt_async is called with code AC_FOUND_DEVICE. Here you can find the relevant code in a pastebin for readability: https://pastebin.com/e50bYHiQ Unfortunately the device never gets created, and I seem unable to understand either why it is not created, neither how I can fix it. If anyone can shed some lights on this, i would really appreciate it. Regards, Florian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACkk1yRdBmKEUF9HWT8v0OGcOLbLn3pMK=jEvdkv60%2BW1-%2Bf9w>