package vfio
import "gvisor.dev/gvisor/pkg/sentry/devices/tpuproxy/vfio"
Package vfio implements a proxy for VFIO devices.
Index ¶
- Constants
- func GetTPUDeviceMajor(vfsObj *vfs.VirtualFilesystem) (uint32, error)
- func RegisterTPUDevice(vfsObj *vfs.VirtualFilesystem, minor, deviceNum uint32, useDevGofer bool) error
- func RegisterVFIODevice(vfsObj *vfs.VirtualFilesystem, useDevGofer bool) error
Constants ¶
const ( // VFIO_MINOR is the VFIO minor number from include/linux/miscdevice.h. VFIO_MINOR = 196 // VFIOPath is the valid path to a VFIO device. VFIOPath = "/dev/vfio/vfio" )
Functions ¶
func GetTPUDeviceMajor ¶
func GetTPUDeviceMajor(vfsObj *vfs.VirtualFilesystem) (uint32, error)
GetTPUDeviceMajor returns the dynamically allocated major number for the vfio device.
func RegisterTPUDevice ¶
func RegisterTPUDevice(vfsObj *vfs.VirtualFilesystem, minor, deviceNum uint32, useDevGofer bool) error
RegisterTPUDevice registers devices implemented by this package in vfsObj.
func RegisterVFIODevice ¶
func RegisterVFIODevice(vfsObj *vfs.VirtualFilesystem, useDevGofer bool) error
RegisterVFIODevice registers VFIO devices that are implemented by this package in vfsObj.
Source Files ¶
pci_device_fd.go pci_device_fd_mmap.go save_restore.go tpu_fd.go tpu_fd_mmap.go vfio.go vfio_fd.go vfio_fd_mmap.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 27 packages
- Last checked
- 8 minutes ago –
Tools for package owners.