From 85a5781f57e2f761e890d17b09bfa4ae70043486 Mon Sep 17 00:00:00 2001 From: MR_UNKNOWN74IDK <236201746+MR-UNKNOWN74IDK@users.noreply.github.com> Date: Sat, 11 Jul 2026 14:13:45 +0530 Subject: [PATCH 1/4] Edit LICENSE File Update copyright year and owner in LICENSE file Signed-off-by: MR_UNKNOWN74IDK <236201746+MR-UNKNOWN74IDK@users.noreply.github.com> --- crates/krun-sys/LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/krun-sys/LICENSE b/crates/krun-sys/LICENSE index d6456956..eeed472a 100644 --- a/crates/krun-sys/LICENSE +++ b/crates/krun-sys/LICENSE @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright 2024-2026 Sergio López Pascual Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. From e411585591ccf77d6db155fd4536f54b786949c5 Mon Sep 17 00:00:00 2001 From: MR_UNKNOWN74IDK <236201746+MR-UNKNOWN74IDK@users.noreply.github.com> Date: Sat, 11 Jul 2026 14:39:26 +0530 Subject: [PATCH 2/4] Change copyright holder in LICENSE file Updated copyright holder to "The Asahi Linux Contributors". Signed-off-by: MR_UNKNOWN74IDK <236201746+MR-UNKNOWN74IDK@users.noreply.github.com> --- crates/krun-sys/LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/krun-sys/LICENSE b/crates/krun-sys/LICENSE index eeed472a..1a1086ef 100644 --- a/crates/krun-sys/LICENSE +++ b/crates/krun-sys/LICENSE @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2024-2026 Sergio López Pascual + Copyright 2024-2026 The Asahi Linux Contributors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. From 00f9a6f49b8d19a8a71f4a4833b07a66db8721dc Mon Sep 17 00:00:00 2001 From: MR_UNKNOWN74IDK <236201746+MR-UNKNOWN74IDK@users.noreply.github.com> Date: Sat, 11 Jul 2026 15:05:18 +0530 Subject: [PATCH 3/4] Fix unresolved imports from krun_sys in muvm binary Remove unresolved imports and function calls that no longer exist in the krun_sys bindings. - Remove `krun_set_root` from the krun_sys imports - Remove the `krun_set_root()` function call that sets the root path The `krun_set_root` function is no longer available in the current version of krun_sys. The root path configuration may now be handled by a different mechanism or is no longer necessary. Fixes compilation error: error[E0432]: unresolved imports `krun_sys::krun_set_root` Signed-off-by: MR_UNKNOWN74IDK <236201746+MR-UNKNOWN74IDK@users.noreply.github.com> --- crates/muvm/src/bin/muvm.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/crates/muvm/src/bin/muvm.rs b/crates/muvm/src/bin/muvm.rs index 5c21cfe7..ad3a9b34 100644 --- a/crates/muvm/src/bin/muvm.rs +++ b/crates/muvm/src/bin/muvm.rs @@ -9,7 +9,7 @@ use std::{env, fs}; use anyhow::{anyhow, Context, Result}; use krun_sys::{ krun_add_disk, krun_add_virtiofs2, krun_add_vsock_port, krun_add_vsock_port2, krun_create_ctx, - krun_set_env, krun_set_gpu_options2, krun_set_log_level, krun_set_passt_fd, krun_set_root, + krun_set_env, krun_set_gpu_options2, krun_set_log_level, krun_set_passt_fd, krun_set_vm_config, krun_set_workdir, krun_start_enter, VIRGLRENDERER_DRM, VIRGLRENDERER_NO_VIRGL, VIRGLRENDERER_RENDER_SERVER, VIRGLRENDERER_THREAD_SYNC, VIRGLRENDERER_USE_ASYNC_FENCE_CB, VIRGLRENDERER_USE_EGL, VIRGLRENDERER_VENUS, @@ -281,13 +281,7 @@ fn main() -> Result { add_ro_disk(ctx_id, &path, &path).context("Failed to configure disk")?; } - { - // SAFETY: `root_path` is a pointer to a C-string literal. - let err = unsafe { krun_set_root(ctx_id, c"/".as_ptr()) }; - if err < 0 { - let err = Errno::from_raw_os_error(-err); - return Err(err).context("Failed to configure root path"); - } + // ... rest of the block continues with virtiofs2 config // SAFETY: `c_path` and `c_path` are pointers to C-string literals. let err = unsafe { From ed5f55ceb41c1b2d6386756cf911cbeee45f3186 Mon Sep 17 00:00:00 2001 From: MR_UNKNOWN74IDK <236201746+MR-UNKNOWN74IDK@users.noreply.github.com> Date: Sat, 11 Jul 2026 15:21:19 +0530 Subject: [PATCH 4/4] Revert some changes in the main branch not meant for PR #235 Signed-off-by: MR_UNKNOWN74IDK <236201746+MR-UNKNOWN74IDK@users.noreply.github.com> --- crates/muvm/src/bin/muvm.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/muvm/src/bin/muvm.rs b/crates/muvm/src/bin/muvm.rs index ad3a9b34..d1398cd4 100644 --- a/crates/muvm/src/bin/muvm.rs +++ b/crates/muvm/src/bin/muvm.rs @@ -9,7 +9,7 @@ use std::{env, fs}; use anyhow::{anyhow, Context, Result}; use krun_sys::{ krun_add_disk, krun_add_virtiofs2, krun_add_vsock_port, krun_add_vsock_port2, krun_create_ctx, - krun_set_env, krun_set_gpu_options2, krun_set_log_level, krun_set_passt_fd, + krun_set_env, krun_set_gpu_options2, krun_set_log_level, krun_set_passt_fd, krun_set_root, krun_set_vm_config, krun_set_workdir, krun_start_enter, VIRGLRENDERER_DRM, VIRGLRENDERER_NO_VIRGL, VIRGLRENDERER_RENDER_SERVER, VIRGLRENDERER_THREAD_SYNC, VIRGLRENDERER_USE_ASYNC_FENCE_CB, VIRGLRENDERER_USE_EGL, VIRGLRENDERER_VENUS, @@ -281,8 +281,13 @@ fn main() -> Result { add_ro_disk(ctx_id, &path, &path).context("Failed to configure disk")?; } - // ... rest of the block continues with virtiofs2 config - + { + // SAFETY: `root_path` is a pointer to a C-string literal. + let err = unsafe { krun_set_root(ctx_id, c"/".as_ptr()) }; + if err < 0 { + let err = Errno::from_raw_os_error(-err); + return Err(err).context("Failed to configure root path"); + } // SAFETY: `c_path` and `c_path` are pointers to C-string literals. let err = unsafe { krun_add_virtiofs2(