On Tue, Jun 03, 2025 at 06:50:13PM +0800, Xu Yilun wrote: > I see. But I'm not sure if it can be a better story than ioctl(VFIO_TSM_BIND). > You want VFIO unaware of TSM bind, e.g. try to hide pci_request/release_region(), > but make VFIO aware of TSM unbind, which seems odd ... request_region does not need to be done dynamically. It should be done once when the VFIO cdev is opened. If you need some new ioctl to put VFIO in a CC compatible mode then it should do all this stuff once. It doesn't need to be dynamic. I think all you want is to trigger VFIO to invalidate its MMIOs when bind/unbind happens. Jason