Date: Thu, 23 May 2019 10:04:15 +0000 From: "Bennett, Ciunas" <ciunas.bennett@intel.com> To: "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org> Subject: PCI express hotplug in FreeBSD11.2 VM Message-ID: <770FD3608C9E864796AB46CB37B561B1C938E3CF@IRSMSX101.ger.corp.intel.com>
next in thread | raw e-mail | index | archive | help
Hi, I am working on a driver for a PCI express device. And have been trying to get hotplug feature working on a FreeBSD 11.2 VM us= ing both PFs and VFs. (host is Fedora 26) But I am having many issues in relation to this. I am encountering issues with both scenarios, For PF -> 1. Create a VM with FreeBSD11.2 2. Attach 1PF to the guest 1. Issue 'devctl rescan pci0' - Scans the PCI bus and the device becomes= visible in the guest. 4. Install driver, at some point of loading the driver/bringing up the= pci device -- Error =3D kernel panics and reboots. -- FOR VF -> 1. Create a VM with FreeBSD11.2 1. Attach 1VF to the guest 2. Issue 'devctl rescan pci0' - Scans the PCI bus and the device becomes= visible in the guest. 3. Detach the device from the guest. 4. Issue 'devctl rescan pci0' -- Error =3D Expecting VF should be removed from the guest but it is not -- Is the support in FreeBSD at a stage where we should not be using hotplug f= eature? Could someone give me a better idea of the support that is in FreeBSD for h= otplug. The documentation is very limited. Thank you. Ciunas Bennett Dromore House, East Park, Shannon, Co. Clare, V14 AN23, Ireland [Untitled] -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the s= ole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact = the sender and delete all copies.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?770FD3608C9E864796AB46CB37B561B1C938E3CF>