On Mon, Jul 27, 2020 at 02:18:29PM +0100, Stefan Hajnoczi wrote: > I suggest dropping multi-device support for now. It will be implemented > differently with VFIO-over-socket anyway, so it's not worth investing > much time into.
I'm not sure I buy the VFIO-over-socket yet. It seems a weirdly QEMU specific IPC mechanism. However ... > The main socket approach needs authentication support if multiple guests > share a remote device emulation process. Otherwise guest A can access > guest B's devices. > > It's simpler if each device has a separate UNIX domain socket. It is not > necessary to modify lsi53c895a in order to do this. Either the socket > can be associated with the remote PCIe port (although I think the > current code implements the older PCI Local Bus instead of PCIe) or a > separate -object mpqlink,device=lsi1,fd=4 object can be defined (I think > that's the syntax I've shared in the past). > > For now though, just using the -machine remote,fd=4 approach is fine - > but limited to 1 device. > > Stefan I agree to all of the above. Starting with a single fd is a good idea. -- MST