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

Share /dev/shm if DAX is enabled #46

Closed
wants to merge 5 commits into from

Conversation

asahilina
Copy link
Member

Depends on #44.

asahilina added 5 commits July 6, 2024 23:57
This allows us to access or bind mount parts of the host filesystem that
are overlaid by other mounts in the guest.

Signed-off-by: Asahi Lina <[email protected]>
Otherwise, sommelier clobbers the host's X11 socket for display :0.

Signed-off-by: Asahi Lina <[email protected]>
We want to reuse the socket forwarding code for X11, so make this into a
generic thing.

Signed-off-by: Asahi Lina <[email protected]>
If the host has DISPLAY set, parse it and forward that UNIX socket to
the guest via vsock, then forward :1 on the guest to this vsock, and
finally set HOST_DISPLAY=:1 on the guest.

Apps that want to directly talk to X11 on the host (instead of going
through sommelier) should set DISPLAY=$HOST_DISPLAY and
LIBGL_ALWAYS_SOFTWARE=true. This setup allows X11 apps in the host and
the guest to cooperate (e.g. XEmbed) but requires software rendering
inside the guest.

TODO: Figure out why things hang without LIBGL_ALWAYS_SOFTWARE=true.
Ideally DRI3 should fail and fall back to software automatically.

Signed-off-by: Asahi Lina <[email protected]>
With DAX, we have coherent mmap with the host. Sharing /dev/shm means
that POSIX shared memory will work across the VM boundary.

Signed-off-by: Asahi Lina <[email protected]>
@asahilina
Copy link
Member Author

Superseded by #96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant