Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tpuproxy: resolve FIXMEs added by cl/723723714 #11453

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

tpuproxy: resolve FIXMEs added by cl/723723714

  • Remove the ability to mmap VFIO group FDs. As mentioned by the deleted FIXME,
    this is consistent with Linux.

  • Use MemoryTypeUncached for VFIO_GROUP_GET_DEVICE_FD FDs. On the KVM platform,
    this ensures that e.g. writes to memory-mapped device registers occur in
    program order and without combining, and no reads are cached or issued
    speculatively. On other platforms, this has no effect since application page
    table entries are controlled by the host Linux kernel. (Technically, on the
    KVM platform, this also has no effect on Intel CPUs for reasons described in
    gvisor.dev/issue/11436.)

- Remove the ability to mmap VFIO group FDs. As mentioned by the deleted FIXME,
  this is consistent with Linux.

- Use MemoryTypeUncached for VFIO_GROUP_GET_DEVICE_FD FDs. On the KVM platform,
  this ensures that e.g. writes to memory-mapped device registers occur in
  program order and without combining, and no reads are cached or issued
  speculatively. On other platforms, this has no effect since application page
  table entries are controlled by the host Linux kernel. (Technically, on the
  KVM platform, this also has no effect on Intel CPUs for reasons described in
  gvisor.dev/issue/11436.)

PiperOrigin-RevId: 724512151
@copybara-service copybara-service bot added the exported Issue was exported automatically label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Issue was exported automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant