Skip to content

Commit

Permalink
vfio-ioctls: Bump mshv crates to latest version
Browse files Browse the repository at this point in the history
Move mshv crates from v0.3.1 to v0.3.2

Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
  • Loading branch information
jinankjain authored and liuw committed Dec 3, 2024
1 parent b135b83 commit e71efe4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/vfio-ioctls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ thiserror = "1.0"
vfio-bindings = { version = "0.4.0", path = "../vfio-bindings" }
vm-memory = { version = "0.16.0", features = ["backend-mmap"] }
vmm-sys-util = "0.12.1"
mshv-bindings = { version = "0.3.1", features = ["with-serde", "fam-wrappers"], optional = true }
mshv-ioctls = { version = "0.3.1", optional = true }
mshv-bindings = { version = "0.3.2", features = ["with-serde", "fam-wrappers"], optional = true }
mshv-ioctls = { version = "0.3.2", optional = true }
8 changes: 4 additions & 4 deletions crates/vfio-ioctls/src/vfio_device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use kvm_bindings::{
use kvm_ioctls::DeviceFd as KvmDeviceFd;
#[cfg(all(feature = "mshv", not(test)))]
use mshv_bindings::{
mshv_device_attr, MSHV_DEV_VFIO_GROUP, MSHV_DEV_VFIO_GROUP_ADD, MSHV_DEV_VFIO_GROUP_DEL,
mshv_device_attr, MSHV_DEV_VFIO_FILE, MSHV_DEV_VFIO_FILE_ADD, MSHV_DEV_VFIO_FILE_DEL,
};
#[cfg(all(feature = "mshv", not(test)))]
use mshv_ioctls::DeviceFd as MshvDeviceFd;
Expand Down Expand Up @@ -368,13 +368,13 @@ impl VfioContainer {
#[cfg(feature = "mshv")]
DeviceFdInner::Mshv(fd) => {
let flag = if add {
MSHV_DEV_VFIO_GROUP_ADD
MSHV_DEV_VFIO_FILE_ADD
} else {
MSHV_DEV_VFIO_GROUP_DEL
MSHV_DEV_VFIO_FILE_DEL
};
let dev_attr = mshv_device_attr {
flags: 0,
group: MSHV_DEV_VFIO_GROUP,
group: MSHV_DEV_VFIO_FILE,
attr: u64::from(flag),
addr: group_fd_ptr as u64,
};
Expand Down

0 comments on commit e71efe4

Please sign in to comment.