Signed-off-by: Zhao Liu <zhao1....@intel.com>
---
 rust/Cargo.lock | 1 -
 rust/Cargo.toml | 3 +++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 7aedae239f66..f1bb2457e133 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -200,7 +200,6 @@ checksum = 
"49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
 [[package]]
 name = "vm-memory"
 version = "0.16.1"
-source = 
"git+https://github.com/rust-vmm/vm-memory.git?rev=5eb996a060d7ca3844cbd2f10b1d048c0c91942f#5eb996a060d7ca3844cbd2f10b1d048c0c91942f";
 dependencies = [
  "thiserror",
  "winapi",
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 0868e1b42680..ecb31647f93b 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -15,6 +15,9 @@ license = "GPL-2.0-or-later"
 repository = "https://gitlab.com/qemu-project/qemu/";
 rust-version = "1.77.0"
 
+[patch."https://github.com/rust-vmm/vm-memory.git";]
+vm-memory = { path = "./../subprojects/vm-memory-0.16" }
+
 [workspace.lints.rust]
 unexpected_cfgs = { level = "deny", check-cfg = [
     'cfg(MESON)', 'cfg(HAVE_GLIB_WITH_ALIGNED_ALLOC)',
-- 
2.34.1


Reply via email to