Lucas Manning and gVisor bot
290789bab8
Refactor tpu chroot operations.
...
Ubuntu TPU images do not have the vfio-dev directories that COS images do,
so we need a more robust way of setting up the sandbox chroot to handle this
case. This change implements a way to get devices and minor numbers into the
sandbox with minimal support from the host filesystem and cleans up a few
methods to reflect their current usage.
Addresses #10795
PiperOrigin-RevId: 674363342
2024-09-13 11:15:28 -07:00
Lucas Manning and gVisor bot
e29e270730
Reorganize tpuproxy code.
...
Now there is a main tpuproxy directory and two subdirs for each of the
different proxy implementations.
PiperOrigin-RevId: 667688748
2024-08-26 13:17:41 -07:00
Jing Chen and gVisor bot
79dd2520ff
Implement ioctl command VFIO_IOMMU_MAP_DMA.
...
PiperOrigin-RevId: 619691808
2024-03-27 16:10:41 -07:00
Jing Chen and gVisor bot
e902007771
Make vfio-pci devices mmappable backed by a host FD.
...
PiperOrigin-RevId: 619265846
2024-03-26 12:00:42 -07:00
Jing Chen and gVisor bot
628f1bad34
Implement the ioctl command VFIO_DEVICE_SET_IRQS.
...
PiperOrigin-RevId: 618047305
2024-03-21 20:43:12 -07:00
Jing Chen and gVisor bot
9d2a513de1
Add more generic Ioctl helper functions for TPU pass through IOCTLs.
...
PiperOrigin-RevId: 617378718
2024-03-19 20:27:56 -07:00
Jing Chen and gVisor bot
73f7d3d3f7
Implement ioctl command VFIO_GROUP_SET_CONTAINER.
...
PiperOrigin-RevId: 615514857
2024-03-13 12:57:32 -07:00
Jing Chen and gVisor bot
26e0e5df83
Implement memmap.Mappable and memmap.File for vfioFd.
...
PiperOrigin-RevId: 615472230
2024-03-13 10:51:52 -07:00
Jing Chen and gVisor bot
5fd40fc0be
Implement memmap.Mappable and memmap.File for tpuFd.
...
PiperOrigin-RevId: 615250135
2024-03-12 19:19:44 -07:00
Jing Chen and gVisor bot
eb62843a8d
Add VFIO device for VFIO container.
...
PiperOrigin-RevId: 612606195
2024-03-04 15:28:38 -08:00
Jing Chen and gVisor bot
d5fc150056
Add seccomp filters for TPU v5e.
...
Other rules like ioctl will be added as they are implemented.
PiperOrigin-RevId: 586437297
2023-11-29 13:31:48 -08:00
Jing Chen and gVisor bot
77eff46290
Add an initial implementation for vfioDevice Open, which implements vfs.Device interface.
...
PiperOrigin-RevId: 586047954
2023-11-28 11:23:48 -08:00
Jing Chen and gVisor bot
815dade355
Add vfioFD skeleton code for TPU v5e.
...
PiperOrigin-RevId: 585215723
2023-11-25 00:39:53 -08:00