> On Mar 24, 2021, at 12:53 PM, Christopher Clark > <christopher.w.cl...@gmail.com> wrote: > > Do you know if there is a need to perform work to support the > assignment of PCI devices at the point of domain creation (ie. in > domain_create), rather than handling it in a later step of domain > configuration, prior to the domain being started?
AIUI, libxl actually does the latter: That is, PCI devices are added to the domain after the domain and qemu have been set up, but before they have been unpaused. One advantage of this is that it’s the same codepath for adding PCI devices at domain creation as for hotplug. -George