From 6c630f4908a27add38848bb4af1c106be78a2002 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Wed, 7 Jun 2023 10:21:03 -0700 Subject: [PATCH] build: Use upstream vhost for vDPA regression fix The latest vhost release v0.7.0 has a vDPA regression [1]. It has been fixed in the vhost upstream [2], but no new releases are available [3]. To unblock the bulk upgrades on rust-vmm depdencies, let's use the upstream vhost for now. [1] https://github.com/rust-vmm/vhost/issues/164 [2] https://github.com/rust-vmm/vhost/pull/165 [3] https://github.com/rust-vmm/vhost/issues/166 Signed-off-by: Bo Chen --- Cargo.lock | 3 +-- Cargo.toml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4da62b9a9..2d8d7c165 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2065,8 +2065,7 @@ dependencies = [ [[package]] name = "vhost" version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84f81f436bca4541f4d33172e1202882c9d437db34ed17fc6d84c8ff2bde21f5" +source = "git+https://github.com/rust-vmm/vhost?branch=main#bdc6f2ab2b3dbd3b9574100ac641a2f8e9667400" dependencies = [ "bitflags", "libc", diff --git a/Cargo.toml b/Cargo.toml index 8da4f40b8..9894e187d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,6 +55,7 @@ zbus = { version = "3.11.1", optional = true } kvm-bindings = { git = "https://github.com/cloud-hypervisor/kvm-bindings", branch = "ch-v0.6.0-tdx" } kvm-ioctls = { git = "https://github.com/rust-vmm/kvm-ioctls", branch = "main" } versionize_derive = { git = "https://github.com/cloud-hypervisor/versionize_derive", branch = "ch" } +vhost = { git = "https://github.com/rust-vmm/vhost", branch = "main" } [dev-dependencies] dirs = "5.0.0"