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

Basic x112virtgpu support #72

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

asahilina
Copy link
Member

Replace the trivial X11 socket passthrough with x112virtgpu, if it is installed and DAX is enabled. This lives alongside the existing sommelier solution, so we can test both options for now.

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]>
This lets us easily test this alternative to sommelier+XWayland without
committing to making it the default.
Copy link
Collaborator

@slp slp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small change requested. Also, please add a SoB to the second commit.

@@ -144,5 +145,21 @@ pub fn mount_filesystems() -> Result<()> {
make_tmpfs("/tmp/.X11-unix")?;
}

// Check for DAX active on the root filesystem (first line of /proc/mounts should be the root FS)
let has_dax = std::fs::read_to_string("/proc/mounts")?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should either move this check to muvm-guest.rs or have this method return has_dax so we can avoid doing the same check again in setup_x11_forwarding.

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.

3 participants